Uploaded image for project: 'Buildr (Retired)'
  1. Buildr (Retired)
  2. BUILDR-374

upload tasks can attempt to upload artifacts multiple times

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 1.3.5
    • 1.4
    • Packaging
    • None

    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

      Attachments

        1. uploadtask.patch
          3 kB
          Pepijn Van Eeckhoudt
        2. uploadtask2.patch
          3 kB
          Antoine Toulme

        Activity

          People

            boisvert Alex Boisvert
            pepijnve Pepijn Van Eeckhoudt
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: