Java – Maven build failed dependencies
I have a local artefact repository and my Maven settings point to it, but for some reason, it doesn't seem to hit it and always fails when trying to install
Why does any idea always fail? The following stack trace
Cheers!
mvn clean install -DskipTests -T 8C [INFO] Scanning for projects... Downloading: http://repo1.maven.org/maven2/org/apache/maven/wagon/wagon-webdav/1.0-beta-2/wagon-webdav-1.0-beta-2.pom [ERROR] The build Could not read 1 project -> [Help 1] [ERROR] [ERROR] The project uk.co.three:Three:0.1 (/Users/***/Projects/three/Development/pom.xml) has 1 error [ERROR] Unresolveable build extension: Plugin org.apache.maven.wagon:wagon-webdav:1.0-beta-2 or one of its dependencies Could not be resolved: Failed to collect dependencies for org.apache.maven.wagon:wagon-webdav:jar:1.0-beta-2 (): Failed to read artifact descriptor for org.apache.maven.wagon:wagon-webdav:jar:1.0-beta-2: Could not transfer artifact org.apache.maven.wagon:wagon-webdav:pom:1.0-beta-2 from/to central (http://repo1.maven.org/maven2): Error transferring file: Connection refused -> [Help 2] [ERROR] [ERROR] To see the full stack trace of the errors,re-run Maven with the -e switch. [ERROR] Re-run Maven using the -X switch to enable full debug logging. [ERROR] [ERROR] For more information about the errors and possible solutions,please read the following articles: [ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/ProjectBuildingException [ERROR] [Help 2] http://cwiki.apache.org/confluence/display/MAVEN/PluginResolutionException
Solution
I don't know if you have used embedded or external Maven installations (window - > preferences – > maven – > installations)
If it is external, it must be in settings Declare your company agent in XML (in the conf folder of the external installation or in the local repository)
This may also be the case if you use embedded Maven Then, you must provide the settings file in "global settings for embedded installation"
If you are using an external Maven installation, you can also try the command line outside eclipse
with
mvn -U ...
You can force Maven to find the latest plug - in version