Ben M. created CXF-8101:
---------------------------

             Summary: Build fails behind maven proxy repository
                 Key: CXF-8101
                 URL: https://issues.apache.org/jira/browse/CXF-8101
             Project: CXF
          Issue Type: Bug
          Components: Build system
    Affects Versions: 3.4.0
         Environment: h2. settings.xml

Repository mirror URL must be set to JFrog Artifactory.
            Reporter: Ben M.


Build will fail behind a maven proxy, like JFrog Artifactory.

 

The reason is simple: A transitive dependency has a invalid {{pom.xml}} 
(invalid xml):
h2. Example invocation

On any goal:

 
{noformat}
[ERROR] Failed to execute goal on project cxf-rt-transports-jms: Could not 
resolve dependencies for project 
org.apache.cxf:cxf-rt-transports-jms:bundle:3.4.0-SNAPSHOT: Failed to collect 
dependencies at org.apache.activemq:activemq-pool:jar:5.15.9 -> 
org.apache.activemq:activemq-jms-pool:jar:5.15.9 -> 
org.apache.geronimo.specs:geronimo-jta_1.0.1B_spec:jar:1.0.1: Failed to read 
artifact descriptor for 
org.apache.geronimo.specs:geronimo-jta_1.0.1B_spec:jar:1.0.1: Could not 
transfer artifact org.apache.geronimo.specs:specs:pom:1.1 from/to nexus-central 
(https://mavenproxy.local/maven-central/): Failed to transfer file 
https://mavenproxy.local/maven-central/org/apache/geronimo/specs/specs/1.1/specs-1.1.pom
 with status code 409 -> [Help 1]

[ERROR] Failed to execute goal 
org.apache.maven.plugins:maven-remote-resources-plugin:1.6.0:process (default) 
on project org.apache.cxf.osgi.itests: Execution default of goal 
org.apache.maven.plugins:maven-remote-resources-plugin:1.6.0:process failed: 
Failed to resolve dependencies for one or more projects in the reactor. Reason: 
Unable to get dependency information for 
org.apache.geronimo.specs:geronimo-jta_1.0.1B_spec:jar:1.0.1: Failed to process 
POM for org.apache.geronimo.specs:geronimo-jta_1.0.1B_spec:jar:1.0.1: 
Non-resolvable parent POM for 
org.apache.geronimo.specs:geronimo-jta_1.0.1B_spec:1.0.1: Could not transfer 
artifact org.apache.geronimo.specs:specs:pom:1.1 from/to nexus-central 
(https://mavenproxy.local/maven-central/): Failed to transfer file 
https://mavenproxy.local/maven-central/org/apache/geronimo/specs/specs/1.1/specs-1.1.pom
 with status code 409
[ERROR] org.apache.geronimo.specs:geronimo-jta_1.0.1B_spec:jar:1.0.1
{noformat}
 

 
h2. Reason / Rationale

If a pom.xml is unreadable, JFrog artifactory will return a HTTP SC 409 instead 
of just delivering the invalid {{pom.xml}} file.

 
h2. Solution

Either
 * Update dependencies (if possible and reasonable). or
 * add more excludes – the referenced artifact is already excluded on some 
other dependencies. or
 * do not rely on dependencies with invalid {{pom.xml}} files.



--
This message was sent by Atlassian Jira
(v8.3.2#803003)

Reply via email to