Maven 本地项目依赖跑到在线仓库去找,并提示 revision 版本不存在,pom:${revision} (absent)

解决方案:直接添加一个 maven flatten 插件即可。

然后将这个插件添加到构建部分。

<properties>
    <flatten-maven-plugin.version>1.3.0</flatten-maven-plugin.version>
</properties>

<!-- 统一版本号管理 -->
            <plugin>
                <groupId>org.codehaus.mojo</groupId>
                <artifactId>flatten-maven-plugin</artifactId>
                <version>${flatten-maven-plugin.version}</version>
                <configuration>
                    <updatePomFile>true</updatePomFile>
                    <flattenMode>resolveCiFriendliesOnly</flattenMode>
                </configuration>
                <executions>
                    <execution>
                        <id>flatten</id>
                        <phase>process-resources</phase>
                        <goals>
                            <goal>flatten</goal>
                        </goals>
                    </execution>
                    <execution>
                        <id>flatten.clean</id>
                        <phase>clean</phase>
                        <goals>
                            <goal>clean</goal>
                        </goals>
                    </execution>
                </executions>
            </plugin>

本文标题:《Maven 本地项目依赖跑到在线仓库去找,并提示 revision 版本不存在,pom:${revision} (absent)》作者:Scar
原文链接:https://cxk.me/post/97.html
特别注明外均为原创,转载请注明。

分享到微信

扫描二维码

可在微信查看或分享至朋友圈。

上一篇: 未命名

相关文章

发表评论:

◎欢迎参与讨论,请在这里发表您的看法、交流您的观点。