buildr-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Antoine Toulme (JIRA)" <j...@apache.org>
Subject [jira] Resolved: (BUILDR-374) upload tasks can attempt to upload artifacts multiple times
Date Sat, 05 Jun 2010 06:54:27 GMT

     [ https://issues.apache.org/jira/browse/BUILDR-374?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]

Antoine Toulme resolved BUILDR-374.
-----------------------------------

    Resolution: Fixed

Well, I wrote a spec for it, and it looks like I cannot reproduce it with it.

Marking this as fixed, thanks Pepijn!

23:52:57~/w/buildr>svn ci spec/packaging/packaging_spec.rb lib/buildr/packaging/artifact.rb
CHANGELOG -m "BUILDR-374 upload tasks can attempt to upload artifacts multiple times (Pepijn
Van Eeckhoudt)"
Sending        CHANGELOG
Sending        lib/buildr/packaging/artifact.rb
Sending        spec/packaging/packaging_spec.rb
Transmitting file data ...
Committed revision 951662.

> upload tasks can attempt to upload artifacts multiple times
> -----------------------------------------------------------
>
>                 Key: BUILDR-374
>                 URL: https://issues.apache.org/jira/browse/BUILDR-374
>             Project: Buildr
>          Issue Type: Bug
>          Components: Packaging
>    Affects Versions: 1.3.5
>            Reporter: Pepijn Van Eeckhoudt
>            Assignee: Alex Boisvert
>             Fix For: 1.4
>
>         Attachments: uploadtask.patch, uploadtask2.patch
>
>
> 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

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


Mime
View raw message