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

Links to "Deployed Artifacts" broken with maven-deploy-plugin-3.0.0

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: Minor Minor
    • pipeline-maven-plugin
    • None
    • Jenkins 2.346.3 // pipeline-maven 1161.v89a_7dcec5d31 // Nexus 2.15.1-02 // maven 3.8.6
    • 1205.vceea_7b_972817

      The Deployed Artifacts listed with the maven build are broken - in our setup - if the maven deploy plugin 3.0.0 or a milestone version is in use. It works fine with version 2.7 or 2.8.1 of the maven-deploy-plugin.

      Broken Link:

      16:39:57  [INFO] --- maven-deploy-plugin:3.0.0:deploy (default-deploy) @ maventemplate-ear ---
      16:39:57  [INFO] Using alternate deployment repository snapshots::default::...
      16:39:57  [WARNING] Using legacy syntax for alternative repository. Use "snapshots::https://..." instead.
      ...
      16:39:57  [INFO] Uploading to snapshots: https://.../maventemplate-ear/1.4-SNAPSHOT/maventemplate-ear-1.4-20220822.143957-6.ear
      16:39:57  [INFO] Uploaded to snapshots: https://.../maventemplate-ear/1.4-SNAPSHOT/maventemplate-ear-1.4-20220822.143957-6.ear (62 kB at 466 kB/s)
      

      Created link: maventemplate-ear-1.4-SNAPSHOT.ear -> https://.../templates/maventemplate-ear/1.4-SNAPSHOT/maventemplate-ear-1.4-SNAPSHOT.ear

      Valid Link:

      16:49:21  [INFO] --- maven-deploy-plugin:2.7:deploy (default-deploy) @ maventemplate-ear ---
      16:49:21  [INFO] Using alternate deployment repository snapshots::default::...
      ...
      16:49:21  [INFO] Uploading to snapshots: https://.../maventemplate-ear/1.4-SNAPSHOT/maventemplate-ear-1.4-20220818.144921-14.ear
      16:49:21  [INFO] Uploaded to snapshots: https://.../maventemplate-ear/1.4-SNAPSHOT/maventemplate-ear-1.4-20220818.144921-14.ear (62 kB at 198 kB/s)
      

      Created link: maventemplate-ear-1.4-20220818.144921-14.ear -> https://.../templates/maventemplate-ear/1.4-SNAPSHOT/maventemplate-ear-1.4-20220818.144921-14.ear

      Not sure if this is all needed details. One special thing might be that we pass in -DaltDeploymentRepository=snapshots::default::https://... to all our maven calls.

            bguerin Benoit
            andreasmandel Andreas Mandel
            Votes:
            1 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated: