I am getting following error when trying to run mule with maven .
[ERROR] Failed to execute goal on project middleware-services: Could not resolve dependencies for project ch.koala:middleware-services:mule:1.0: Failed to collect dependencies at org.mule.transports:mule-transport-vm:jar:3.5.0 -> org.mule.modules:mule-module-xml:jar:3.5.0 -> net.java.dev.stax-utils:stax-utils:jar:20080702: Failed to read artifact descriptor for net.java.dev.stax-utils:stax-utils:jar:20080702: Could not transfer artifact net.java.dev.stax-utils:stax-utils:pom:20080702 from/to codehaus (http://repository.codehaus.org): Failed to transfer file: http://repository.codehaus.org/net/java/dev/stax-utils/stax-utils/20080702/stax-utils-20080702.pom. Return code is: 410 , ReasonPhrase:Gone. -> [Help 1]
Why is it even going to download mule-module dependencies when i have added provided tag in the pom.xml files .
what is the solution ?
Modifying the Settings.xml worked .
Here is the blog post about it
Related
Suddenly I started seeing this error when running a maven project on Jenkins
Failed to execute goal org.apache.maven.plugins:maven-compiler-plugin:3.8.0:compile (default-compile) on project my-project:
Execution default-compile of goal org.apache.maven.plugins:maven-compiler-plugin:3.8.0:compile failed: Plugin org.apache.maven.plugins:maven-compiler-plugin:3.8.0 or one of its dependencies could not be resolved:
Failed to collect dependencies at org.apache.maven.plugins:maven-compiler-plugin:jar:3.8.0 -> org.codehaus.groovy:groovy-eclipse-compiler:pom:3.0.0-01: Failed to read artifact descriptor for org.codehaus.groovy:groovy-eclipse-compiler:pom:3.0.0-01:
Could not transfer artifact org.codehaus.groovy:groovy-eclipse-compiler:pom:3.0.0-01 from/to bintray (https://dl.bintray.com/groovy/maven):
Authorization failed for https://dl.bintray.com/groovy/maven/org/codehaus/groovy/groovy-eclipse-compiler/3.0.0-01/groovy-eclipse-compiler-3.0.0-01.pom 403 Forbidden -> [Help 1]
Any idea what might be the issue?
org.codehaus.groovy:groovy-eclipse-compiler is available on Maven Central which is also recommended on its home page:
Current version of the groovy-eclipse-compiler adapter: maven-centralv3.7.0
Showing an error of the sorts
Plugin org.codehaus.mojo:exec-maven-plugin:1.2.1 or one of its dependencies could not be resolved:
Failed to read artifact descriptor for org.codehaus.mojo:exec-maven-plugin:jar:1.2.1:
Could not transfer artifact org.codehaus.mojo:exec-maven-plugin:pom:1.2.1 from/to central (http://repo.maven.apache.org/maven2):
Failed to transfer file:
http://repo.maven.apache.org/maven2/org/codehaus/mojo/exec-maven-plugin/1.2.1/exec-maven-plugin-1.2.1.pom. Return code is: 501 , ReasonPhrase:Not Implemented. -> [Help 1]
This might be an issue with resolving the dependency. Can you try below and get back.
Open the .m2/repository and proceed to the path org/codehaus/mojo/exec-maven-plugin/. Then delete the subdirectory 1.2.1 and the entire content. Then the maven will automatically download the dependency in the next update. Try to build the project and see.
Additionally you can try to issue below command in command prompt at the project directory.(This command will update the dependencies forcefully)
mvn clean install -U
I am trying to build Apache CXF locally. It does not work behind a maven proxy (e.g. JFrog Artifactory), because CXF's transitives dependencies contain a dependency with an invalid pom.xml file:
[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://myrepo.local/maven-central/): Failed to transfer file https://myrepo.local/maven-central/org/apache/geronimo/specs/specs/1.1/specs-1.1.pom with status code 409 -> [Help 1]
Artifactory will deliver a 409 if it cannot parse the XML file. In this case, the artifact is apache.geronimo.specs:specs:pom:1.1. If you take a look at the XML file, you'll find it is invalid indeed: https://repo1.maven.org/maven2/org/apache/geronimo/specs/specs/1.1/specs-1.1.pom
After line 89 (closing </developers>), there is an extra `.
I opened an issue at apache to fix their build: https://issues.apache.org/jira/browse/CXF-8101
In the mean time, I'd like to work with CXF to create a patch an contribute.
Things I tried:
Install the dependency manually => failed because mvn still looks for updates
No proxy => not an option for me :(
Add some excludes locally on the parent/pom.xml => didn't help, I will never be able to catch them all (transitive dependencies…).
Forcing the offending artifacts' version to 1.2. Did not help either, because some projects wil still rely on a specific version.
That said, what are my options?
Thanks in advance,
Ben
You can try:
Download org/apache/geronimo/specs/specs/1.1/specs-1.1.pom into your local .m2 path and fix the error.[You need to be sure all dependencies are available in your local repository]
Try to build with maven command: -o (offline)
If -o doesn't help, try with -nsu,--no-snapshot-updates (Suppress SNAPSHOT updates)
Hope it helps you.
I'm trying to build a Maven Project using Spring Tool Suit from Eclipse and I'm having an error when I do the Maven Install.
First I do the Maven Clean and it works properly but when I do the maven install this error appears:
Failed to execute goal org.codehaus.mojo:build-helper-maven-plugin:1.9.1:regex-properties
(set-properties-with-regex) on project qad-webshell-pom:
Execution set-properties-with-regex of goal
org.codehaus.mojo:build-helper-maven-plugin:1.9.1:regex-properties failed:
Plugin org.codehaus.mojo:build-helper-maven-plugin:1.9.1 or
one of its dependencies could not be resolved:
Failed to collect dependencies at org.codehaus.mojo:build-helper-maven-plugin:jar:1.9.1 ->
org.beanshell:bsh:jar:2.0b4: Failed to read artifact descriptor
for org.beanshell:bsh:jar:2.0b4:
Could not transfer artifact org.beanshell:bsh:pom:2.0b4 from/to
central (http://repo1.maven.org/maven2):
Cannot access http://repo1.maven.org/maven2 with type default
using the available connector factories:
BasicRepositoryConnectorFactory:
Cannot access http://repo1.maven.org/maven2 using the registered transporter
factories: WagonTransporterFactory: java.util.NoSuchElementException
[ERROR] role: org.apache.maven.wagon.Wagon
[ERROR] roleHint: http'
I had the same issue.
I have restarted Eclipse, then go on the project specific maven module in which you have the error, right click > Maven > Update Project ...
After the Update on the specific module the Maven install worked without any error.
I am trying to build Apache Flume using mvn install -DskipTests on SLES12.
Error Message goes:
[ERROR] Failed to execute goal on project flume-ng-elasticsearch-sink: Could not resolve dependencies for project org.apache.flume.flume-ng-sinks:flume-ng-elasticsearch-sink:jar:1.7.0-SNAPSHOT: Failed to collect dependencies at org.elasticsearch:elasticsearch:jar:0.90.1: Failed to read artifact descriptor for org.elasticsearch:elasticsearch:jar:0.90.1: Could not transfer artifact org.elasticsearch:elasticsearch:pom:0.90.1 from/to repo1.maven.org (http://repo1.maven.org/maven2): init failed: /dev/[u]random closed? -> [Help 1]
I noticed that the settings.xml is missing in .m2 folder. I could think about 2 possible reasons:
lastUpdated file in .m2 prevent Maven to progress
it is behind the proxy.
How to verify which goes wrong and fix it?
Problem solved after I changed the open JDK version.