Uploaded image for project: 'Jenkins'
  1. Jenkins
  2. JENKINS-8000

Snapshots: "Deploy artifacts to Maven repository" doesn't work with "sources" classifier associated

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Cannot Reproduce
    • Icon: Major Major
    • maven-plugin
    • None
    • Linux / RHEL 5 / Nexus Repository

      1. "Deploy artifacts to Maven Repository" / "Assign unique versions to snapshots"

      >> SNIP
      channel stopped
      Deploying artifacts to http://localhost:8080/nexus/content/repositories/internal-snapshots
      Hauptartefakt DepTest-1.0.0-SNAPSHOT.jar wird ausgebracht (deploy)
      [INFO ] Retrieving previous build number from internal-snapshots
      [INFO ] repository metadata for: 'snapshot test:DepTest:1.0.0-SNAPSHOT' could not be found on repository: internal-snapshots, so will be created
      [INFO ] Retrieving previous metadata from internal-snapshots
      [INFO ] repository metadata for: 'snapshot test:DepTest:1.0.0-SNAPSHOT' could not be found on repository: internal-snapshots, so will be created
      [INFO ] Uploading repository metadata for: 'snapshot test:DepTest:1.0.0-SNAPSHOT'
      [INFO ] Uploading project information for DepTest 1.0.0-20101104.103909-1
      [INFO ] Retrieving previous metadata from internal-snapshots
      [INFO ] repository metadata for: 'artifact test:DepTest' could not be found on repository: internal-snapshots, so will be created
      [INFO ] Uploading repository metadata for: 'artifact test:DepTest'
      Verknüpfte Artefakte DepTest-1.0.0-SNAPSHOT-sources.jar werden ausgebracht (deploy)
      [INFO ] Retrieving previous build number from internal-snapshots
      [INFO ] Retrieving previous metadata from internal-snapshots
      [INFO ] Uploading repository metadata for: 'snapshot test:DepTest:1.0.0-SNAPSHOT'
      [INFO ] Retrieving previous metadata from internal-snapshots
      [INFO ] Uploading repository metadata for: 'artifact test:DepTest'
      Finished: SUCCESS

      << SNAP

      => deployprob_1.png
      => Artifact JAR + Source JAR is deployed !!!

      2. Repository becomes inconsistent
      => deployprob_2.png
      => maven-metadata.xml

      Result: SNAPSHOT-ARTIFACT CANNOT BE REFERENCED !!!

      Reason: Artifact JAR + Source classifier Artifact are handled separately. Therefore the sequential buildnumber in increased seperately and the artifact JAR can not be referenced !

      Please note:
      => This will be a problem for any type of classifiers
      => Not to check the "Assign unique versions to snapshots" (default value !!!) leads to another problem: Exactly ONE snapshot version is maintained in the repository (because no timestamp version is deployed).

        1. deployprob_1.png
          deployprob_1.png
          18 kB
        2. deployprob_2.png
          deployprob_2.png
          94 kB
        3. HUDSON-8000.png
          HUDSON-8000.png
          19 kB
        4. maven-metadata.xml
          0.3 kB

            Unassigned Unassigned
            chrisabit chrisabit
            Votes:
            9 Vote for this issue
            Watchers:
            9 Start watching this issue

              Created:
              Updated:
              Resolved: