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

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

    • Icon: Bug Bug
    • Resolution: Fixed
    • 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
    • 1469.ve15ca_a_b_90b_44

      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.

       

      20-Nov-2024 added by mhoffrog: The root cause for this behavior is the code portion missing for the attached artifacts branch within XmlUtils.java to set the version to attachedMavenArtifact. This code did have been added by PR 519 to the primary artifacts branch only. PR 854 fixes this issue.

          [JENKINS-69410] Links to "Deployed Artifacts" broken with maven-deploy-plugin-3.0.0

          Andreas Mandel created issue -
          Benoit made changes -
          Assignee New: Benoit [ bguerin ]
          Benoit made changes -
          Status Original: Open [ 1 ] New: In Progress [ 3 ]
          Benoit made changes -
          Status Original: In Progress [ 3 ] New: In Review [ 10005 ]
          Benoit made changes -
          Remote Link New: This issue links to "Pull request 519 (Web Link)" [ 28223 ]
          Benoit made changes -
          Resolution New: Fixed [ 1 ]
          Status Original: In Review [ 10005 ] New: Fixed but Unreleased [ 10203 ]
          Benoit made changes -
          Released As New: 1205.vceea_7b_972817
          Status Original: Fixed but Unreleased [ 10203 ] New: Closed [ 6 ]
          Sahil made changes -
          Resolution Original: Fixed [ 1 ]
          Status Original: Closed [ 6 ] New: Reopened [ 4 ]
          Markus made changes -
          Remote Link New: This issue links to "Pull request 854 (Web Link)" [ 30226 ]
          Markus made changes -
          Description Original: 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:*
          {code}
          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)
          {code}

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


          *Valid Link:*
          {code}
          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)
          {code}

          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.
          New: 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:*
          {code:java}
          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)
          {code}
          Created link: {{maventemplate-ear-1.4-SNAPSHOT.ear}} -> [https://.../templates/maventemplate-ear/1.4-SNAPSHOT/maventemplate-ear-1.4-SNAPSHOT.ear]

          *Valid Link:*
          {code:java}
          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)
          {code}
          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.

           

          *20-Nov-2024 added by* [~mhoffrog]: The root cause for this behavior is the code portion missing for the attached artifacts branch within XmlUtils.java to set the version to attachedMavenArtifact. This code did have been added by PR 519 to the primary artifacts branch only. PR 854 fixes this issue.
          Markus made changes -
          Description Original: 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:*
          {code:java}
          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)
          {code}
          Created link: {{maventemplate-ear-1.4-SNAPSHOT.ear}} -> [https://.../templates/maventemplate-ear/1.4-SNAPSHOT/maventemplate-ear-1.4-SNAPSHOT.ear]

          *Valid Link:*
          {code:java}
          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)
          {code}
          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.

           

          *20-Nov-2024 added by* [~mhoffrog]: The root cause for this behavior is the code portion missing for the attached artifacts branch within XmlUtils.java to set the version to attachedMavenArtifact. This code did have been added by PR 519 to the primary artifacts branch only. PR 854 fixes this issue.
          New: 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:*
          {code:java}
          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)
          {code}
          Created link: {{maventemplate-ear-1.4-SNAPSHOT.ear}} -> [https://.../templates/maventemplate-ear/1.4-SNAPSHOT/maventemplate-ear-1.4-SNAPSHOT.ear]

          *Valid Link:*
          {code:java}
          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)
          {code}
          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.

           

          *20-Nov-2024 added by* [~mhoffrog]: The root cause for this behavior is the code portion missing for the attached artifacts branch within XmlUtils.java to set the version to attachedMavenArtifact. This code did have been added by [PR 519|[http://example.com|https://github.com/jenkinsci/pipeline-maven-plugin/pull/854]] to the primary artifacts branch only. PR 854 fixes this issue.

            bguerin Benoit
            andreasmandel Andreas Mandel
            Votes:
            2 Vote for this issue
            Watchers:
            5 Start watching this issue

              Created:
              Updated:
              Resolved: