admin管理员组文章数量:1405295
I am building a AMS project from Adobe cloud manager pipeline.
This pipeline uses below command to build the project
mvn --batch-mode .codehaus.mojo:versions-maven-plugin:2.6:set -DnewVersion=5.10.0 -DprocessAllModules=true
This project has submodules and since the pipeline uses -DnewVersion
command to set the version , artifacts for all submodules are created with the version given in this command in this case 5.10.0
(This version is of parent module).
But what i want is the build should create artifacts with version same as given in pom.xml.
Since these pipelines are standard i cannot change this command and I am looking for way to somehow override this.
I am not sure if we can so something in pom.xml to override this or there is any other way.
I am building a AMS project from Adobe cloud manager pipeline.
This pipeline uses below command to build the project
mvn --batch-mode .codehaus.mojo:versions-maven-plugin:2.6:set -DnewVersion=5.10.0 -DprocessAllModules=true
This project has submodules and since the pipeline uses -DnewVersion
command to set the version , artifacts for all submodules are created with the version given in this command in this case 5.10.0
(This version is of parent module).
But what i want is the build should create artifacts with version same as given in pom.xml.
Since these pipelines are standard i cannot change this command and I am looking for way to somehow override this.
I am not sure if we can so something in pom.xml to override this or there is any other way.
Share Improve this question asked Mar 23 at 12:18 AWS_BeginnerAWS_Beginner 47612 silver badges23 bronze badges 1- The used version of the versions-maven-plugin is very old (2018!) (mojohaus./versions/versions-maven-plugin/index.html current versioon 2.18.0) I strongly recommend to upgrade that... also it might be a better way to use ci-friendly maven.apache./guides/mini/guide-maven-ci-friendly.html – khmarbaise Commented Apr 4 at 17:47
1 Answer
Reset to default 0You talk to whoever wrote the pipeline and ask them to change this step or make it optional.
Overriding this will not work, and is also not a good idea.
本文标签: buildOverride effect of maven DnewVersionStack Overflow
版权声明:本文标题:build - Override effect of maven DnewVersion - Stack Overflow 内容由网友自发贡献,该文观点仅代表作者本人, 转载请联系作者并注明出处:http://www.betaflare.com/web/1744287103a2598931.html, 本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌抄袭侵权/违法违规的内容,一经查实,本站将立刻删除。
发表评论