Uploaded image for project: 'Solr'
  1. Solr
  2. SOLR-11181

Deploying Maven artifacts (generate-maven-artifacts) pushes the same artifacts multiple times

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: 6.6, 7.1, master (8.0)
    • Fix Version/s: 7.1, master (8.0)
    • Component/s: Build
    • Security Level: Public (Default Security Level. Issues are Public)
    • Labels:
      None

      Description

      When following the instructions in the README.maven file, and watching the wire traffic, the build system issues HTTP PUT operations for the same artifacts multiple times. For example, issuing this command:

      ant -Dm2.repository.id=my-repo-id \
      -Dm2.repository.url=http://example.org/my/repo \
      generate-maven-artifacts

      from the lucene/ directory will generate redundant puts. For example:

      PUT /<path>/org/apache/lucene/lucene-core/<version>/lucene-core-4.10.4-fs.31-sources.jar
      PUT /<path>/org/apache/lucene/lucene-core/<version>/lucene-core-4.10.4-fs.31-sources.jar.sha1
      PUT /<path>/org/apache/lucene/lucene-core/<version>/lucene-core-4.10.4-fs.31-sources.jar.md5
      ...
      PUT /<path>/org/apache/lucene/lucene-core/<version>/lucene-core-4.10.4-fs.31-sources.jar
      ...

      The maven repo I am using does not allow the second PUT and, hence, the build fails.

        Attachments

        1. SOLR-11181.patch
          1 kB
          Lynn Monson
        2. SOLR-11181.patch
          2 kB
          Lynn Monson
        3. SOLR-11181-fix-validate-maven-dependencies.patch
          9 kB
          Steve Rowe

          Issue Links

            Activity

              People

              • Assignee:
                steve_rowe Steve Rowe
                Reporter:
                lmonson Lynn Monson
              • Votes:
                0 Vote for this issue
                Watchers:
                3 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: