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

This issue is archived. You can view it, but you can't modify it. Learn more

XMLWordPrintable

    • 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.

            Assignee:
            Benoit
            Reporter:
            Andreas Mandel
            Archiver:
            Jenkins Service Account

              Created:
              Updated:
              Resolved:
              Archived: