Maven version with a property

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

    The version of the pom.xml should be valid

    <groupId>com.amazonaws.lambda</groupId>
    <artifactId>lambda</artifactId>
    <version>2.2.4 SNAPSHOT</version>
    <packaging>jar</packaging>
    

    This version should not be like 2.2.4. etc

    0 讨论(0)
  • 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
    0 讨论(0)
提交回复
热议问题