Uploaded image for project: 'Artifactory Binary Repository'
  1. Artifactory Binary Repository
  2. RTFACT-19364

Unable to deploy Maven POMs with maven-3.6+

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Done
    • Priority: 3 - High
    • Resolution: Done
    • Affects Version/s: 6.8.2
    • Fix Version/s: 6.18.0, 7.3.0
    • Component/s: None
    • Labels:
      None
    • Severity:
      High

      Description

      maven-3.6+ introduced[1,2] some new XML tag attributes which allow for reducing boilerplate in reactors. When leveraging these new attributes Artifactory refuses to accept the POM deployment and returns a 409.

      [1] https://issues.apache.org/jira/browse/MNG-5951
      [2] https://issues.apache.org/jira/browse/MNG-6059

      using maven-deploy-plugin

      17:02:35 [ERROR] Failed to execute goal org.apache.maven.plugins:maven-deploy-plugin:2.8.2:deploy (default-deploy) on project <redacted>: Failed to deploy artifacts: Could not transfer artifact <redacted>-20190603.220235-2 from/to maven-snapshot (https://<redacted>): Failed to transfer file https://<redacted>-20190603.220235-2.pom with status code 409 -> [Help 1]
      

      using jenkins artifactory plugin

      10:33:37 Caused by: java.io.IOException: Failed to deploy file. Status code: 409 Response message: Artifactory returned the following errors: 
      10:33:37 Failed to read POM for '<redacted>.pom': Unknown attribute 'child.project.url.inherit.append.path' for tag 'project' (position: START_TAG seen ...apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">... @2:251) . Status code: 409
      10:33:37 at org.jfrog.build.extractor.clientConfiguration.client.ArtifactoryBuildInfoClient.uploadFile (ArtifactoryBuildInfoClient.java:685)
      10:33:37 at org.jfrog.build.extractor.clientConfiguration.client.ArtifactoryBuildInfoClient.doDeployArtifact (ArtifactoryBuildInfoClient.java:367)
      10:33:37 at org.jfrog.build.extractor.clientConfiguration.client.ArtifactoryBuildInfoClient.deployArtifact (ArtifactoryBuildInfoClient.java:355)
      10:33:37 at org.jfrog.build.extractor.clientConfiguration.client.ArtifactoryBuildInfoClient.deployArtifact (ArtifactoryBuildInfoClient.java:340)
      10:33:37 at org.jfrog.build.extractor.maven.BuildDeploymentHelper.deployArtifacts (BuildDeploymentHelper.java:300)
      10:33:37 at org.jfrog.build.extractor.maven.BuildDeploymentHelper.deploy (BuildDeploymentHelper.java:103)
      10:33:37 at org.jfrog.build.extractor.maven.BuildInfoRecorder.sessionEnded (BuildInfoRecorder.java:173)
      10:33:37 at org.apache.maven.lifecycle.internal.DefaultExecutionEventCatapult.fire (DefaultExecutionEventCatapult.java:64)
      

       

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              alexeiv Alexei Vainshtein
              Reporter:
              mattnelson Matt Nelson
              Votes:
              12 Vote for this issue
              Watchers:
              20 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved:

                  Sync Status

                  Connection: RTFACT Sync
                  RTMID-19364 -
                  SYNCHRONIZED
                  • Last Sync Date: