In Hudson / Jenkins, you can use ${BUILD_NUMBER}
as a parameter in your assemblies. Pass this into your maven structure as mvn clean package -Dbuild.number=${BUILD_NUMBER}
or use it in the steps after the build, as you like.
This may help you answer, but I don't know Nexus enough to provide a complete solution.
source
share