DEV Community

Discussion on: Continuous Delivery With Apache Maven

Collapse
 
helpermethod profile image
Oliver Weiler • Edited

CI systems like Jenkins normally create a Build Number on each Build, which is automatically incremented with each build. The Build Number is normally exposed a a environment variable.

mvn -Drevision=$BUILD_NUMBER clean deploy

Collapse
 
rootik profile image
Ihor Indyk

This will not work for MyGet maven feeds. MyGet analyses pom.xml and gets confused by ${revision} in version field, giving you 400 on attempt to upload the package.