Maven version with a property

后端 未结 8 1012
不思量自难忘°
不思量自难忘° 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:26

    I have two recommendation for you

    1. Use CI Friendly Revision for all your artifacts. You can add -Drevision=2.0.1 in .mvn/maven.config file. So basically you define your version only at one location.
    2. For all external dependency create a property in parent file. You can use Apache Camel Parent Pom as reference

提交回复
热议问题