Details
Description
Using the standard maven config (packaging=pom) for features-maven-plugin:create-kar, the build number for the kar artifact is 35 instead of 34 used for the POM and features.xml artifacts. This wreaks havoc with other projects that depend on this snapshot because they attempt to download the POM of version 35 and fail.
Maven 2.2.1 excerpt:
[INFO] [deploy:deploy {execution: default-deploy}] [INFO] Retrieving previous build number from snapshots Uploading: http://[nexus]/[artifact]/1.0.0-SNAPSHOT/[artifact]-1.0.0-20120921.172953-34.pom 3K uploaded ([artifact]-1.0.0-20120921.172953-34.pom) [INFO] Retrieving previous metadata from snapshots [INFO] Uploading repository metadata for: 'artifact [group]:[artifact]' [INFO] Retrieving previous metadata from snapshots [INFO] Uploading repository metadata for: 'snapshot [group]:[artifact]:1.0.0-SNAPSHOT' [INFO] Retrieving previous build number from snapshots Uploading: http://[nexus]/[artifact]/1.0.0-SNAPSHOT/[artifact]-1.0.0-20120921.172953-34-features.xml 10K uploaded ([artifact]-1.0.0-20120921.172953-34-features.xml) [INFO] Retrieving previous build number from snapshots Uploading: http://[nexus]/[artifact]/1.0.0-SNAPSHOT/[artifact]-1.0.0-20120921.172953-35.kar 25753K uploaded ([artifact]-1.0.0-20120921.172953-35.kar)