[ 
https://issues.apache.org/jira/browse/CXF-8101?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16917748#comment-16917748
 ] 

Ben M. edited comment on CXF-8101 at 8/28/19 1:10 PM:
------------------------------------------------------

Please reopen. There are still other dependencies which pull in the  faulty 
spec.
{quote}{{[ERROR] Failed to execute goal 
org.apache.maven.plugins:maven-enforcer-plugin:3.0.0-M2:enforce (enforce-maven) 
on project cxf-systests-cdi-owb: Execution enforce-maven of goal 
org.apache.maven.plugins:maven-enforcer-plugin:3.0.0-M2:enforce failed: 
org.apache.maven.shared.dependency.graph.DependencyGraphBuilderException: Could 
not resolve following dependencies: 
[org.apache.geronimo.specs:geronimo-atinject_1.0_spec:jar:1.2 (compile)]: Could 
not resolve dependencies for project 
org.apache.cxf.systests:cxf-systests-cdi-owb:pom:3.4.0-SNAPSHOT: Failure to 
find org.apache.geronimo.specs:geronimo-atinject_1.0_spec:jar:1.2 in 
[https://myrepo.local/central/] was cached in the local repository, resolution 
will not be reattempted until the update interval of central has elapsed or 
updates are forced -> [Help 1]}}{quote}
 


was (Author: mampf86):
Please reopen. There are still other dependencies which pull in the  faulty 
spec.

[ERROR] Failed to execute goal 
org.apache.maven.plugins:maven-enforcer-plugin:3.0.0-M2:enforce (enforce-maven) 
on project cxf-systests-cdi-owb: Execution enforce-maven of goal 
org.apache.maven.plugins:maven-enforcer-plugin:3.0.0-M2:enforce failed: 
org.apache.maven.shared.dependency.graph.DependencyGraphBuilderException: Could 
not resolve following dependencies: 
[org.apache.geronimo.specs:geronimo-atinject_1.0_spec:jar:1.2 (compile)]: Could 
not resolve dependencies for project 
org.apache.cxf.systests:cxf-systests-cdi-owb:pom:3.4.0-SNAPSHOT: Failure to 
find org.apache.geronimo.specs:geronimo-atinject_1.0_spec:jar:1.2 in 
https://myrepo.local/central/ was cached in the local repository, resolution 
will not be reattempted until the update interval of central has elapsed or 
updates are forced -> [Help 1]

 

> 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.
>            Assignee: Colm O hEigeartaigh
>            Priority: Major
>             Fix For: 3.4.0, 3.3.4
>
>
> 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: 
> {code:java}
> [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 {code}
> 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