Maven Plugin for Download and Build

Is there anyone who combined both maven plugins along with Cargo and Buildnumber? I can create the 'buildNumber' property from the BuildNumber plugin, but this property does not extend to the Cargo plugin. As mentioned here, this problem was raised back in 2008/2009, but is still not completely fixed.

my pom.xml

<version>0.1</version> ... <finalName>webapp-${project.version}.${buildNumber}</finalName> 

The build string was correctly extracted from SCM. The war file packaged by the maven-war plugin has the correct file name (for example, webapp-0.1.460.war) But the Cargo plugin knows nothing about $ {buildNumber}

 FileNotFoundException: target/webapp-0.1.${buildNumber}.war (No such file or directory) 
+4
source share

Source: https://habr.com/ru/post/1379612/


All Articles