Maven version with a property

后端 未结 8 982
不思量自难忘°
不思量自难忘° 2020-12-03 00:21

I have big Maven (Tycho) project witch about 400 plug-ins.

We have specified version of application in each POM file.

Is there a way how to specify the versi

8条回答
  •  失恋的感觉
    2020-12-03 01:03

    If you're using Maven 3, one option to work around this problem is to use the versions plugin http://www.mojohaus.org/versions-maven-plugin/

    Specifically the commands,

    mvn versions:set -DnewVersion=2.0-RELEASE
    mvn versions:commit
    

    This will update the parent and child poms to 2.0-RELEASE. You can run this as a build step before.

    Unlike the release plugin, it doesn't try to talk to your source control

提交回复
热议问题