Description
When executing 'buildr upload' on a simple java project with the following buildfile, the pom gets uploaded twice; once for each package
define 'attachedartifacts' do
project.group = "attached"
project.version = "1.0"
package(:jar)
package(:sources)
end
This doesn't work when uploading to a 'release' maven2 repository as these often don't allow updating of files. In practice I'm trying to upload to a release repository on a Nexus server.
The attached patch wraps the upload logic in a task with the remote uri as name. This ensures the upload logic is executed at most once for each artifact. The patch is against svn revision 883432