Error creating Maven depending on dependencies

I have a local artifact repository that my maven settings are pointed to, but for some reason this does not seem to fall into it, and when I try to complete the installation, it fails. I can access the URL directly in my browser and also access the maven repository through the browser. I can also ping both.

Any ideas why he continues to fail? Stack trace below

Greetings

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 
+6
source share
5 answers

I do not know if you used the maven built-in or external installation (Window-> Preferences → Maven → Installations).

If it is external, you must declare your corporate proxy in settings.xml (in the conf folder of your external installation or in your local repository).

This may be the case if you use the built-in maven. Then you must provide the settings file in Global Preferences for Embedded Installation.

If you are using an external maven installation, you can also try the command line outside of eclipse.

WITH

 mvn -U ... 

You can get maven to search for the latest plugins.

+9
source

If you are behind a proxy server, you can use

mvn clean install -DproxySet=true -DproxyHost=<your proxy host> -DproxyPort=<port>

+1
source

If you are using a proxy server and you have unpacked the Maven directory, then update settings.xml in {APACHE_MAVEN_DIR} \ conf , as shown below,

just update the lines "REPLACE ~~" with the appropriate information and try again.

 <proxies> <proxy> <id>example-proxy</id> <active>true</active> <protocol>http</protocol> <host>proxy.example.com</host> <port>8080</port> <username>proxyuser</username> <password>somepassword</password> <nonProxyHosts>www.google.com|*.example.com</nonProxyHosts> </proxy> </proxies> 

Here is the official proxy setup documentation in maven settings.xml:

https://maven.apache.org/guides/mini/guide-proxies.html

+1
source

Try configuring your eclipse proxy in

Settings -> General -> Network Connection

and try again, it looks like visibility.

0
source

You can also try to execute the command below using a project,

 $ git config --global url."https://".insteadOf git:// 
0
source

Source: https://habr.com/ru/post/953049/


All Articles