MAVEN

direktor

Neues Mitglied
I get this error when compiling Maven project. Can someone tell me what is wrong? By the way I'm in China (Great Firewall block) - is this why Maven dependency can't be downloaded?

cd E:\MyPrograms\Java\Tests\MavenTest2\mavenproject1; "JAVA_HOME=C:\\Program Files\\Java\\jdk1.8.0_211" cmd /c "\"\"E:\\Software\\Java\\netbeans\\java\\maven\\bin\\mvn.cmd\" -Dexec.args=\"-classpath %classpath com.mymaven1.mavenproject1.NewMain\" -Dexec.executable=\"C:\\Program Files\\Java\\jdk1.8.0_211\\bin\\java.exe\" -Dmaven.ext.class.path=E:\\Software\\Java\\netbeans\\java\\maven-nblib\\netbeans-eventspy.jar -Dfile.encoding=UTF-8 process-classes org.codehaus.mojo:exec-maven-plugin:1.5.0:exec\""
Scanning for projects...
Downloading: https://repo.maven.apache.org/maven...aven-plugin/1.5.0/exec-maven-plugin-1.5.0.pom

------------------------------------------------------------------------
BUILD FAILURE
------------------------------------------------------------------------
Total time: 2.777 s
Finished at: 2020-07-27T23:13:01+08:00
Final Memory: 6M/15M
------------------------------------------------------------------------
Plugin org.codehaus.mojo:exec-maven-plugin:1.5.0 or one of its dependencies could not be resolved: Failed to read artifact descriptor for org.codehaus.mojo:exec-maven-plugin:jar:1.5.0: Could not transfer artifact org.codehaus.mojo:exec-maven-plugin:pom:1.5.0 from/to central (https://repo.maven.apache.org/maven2): Connect to repo.maven.apache.org:443 [repo.maven.apache.org/127.0.1.2] failed: Connection refused: connect -> [Help 1]

To see the full stack trace of the errors, re-run Maven with the -e switch.
Re-run Maven using the -X switch to enable full debug logging.

For more information about the errors and possible solutions, please read the following articles:
[Help 1] http://cwiki.apache.org/confluence/display/MAVEN/PluginResolutionException
 

httpdigest

Top Contributor
By the way I'm in China (Great Firewall block) - is this why Maven dependency can't be downloaded?
Probably. Your DNS seems to have resolved repo.maven.apache.org to 127.0.1.2 (which is part of the "loopback" IP block 127.0.0.0/8), so not a routable internet address but meaning "yourself" (your computer).
1. try to click on https://repo.maven.apache.org/maven...aven-plugin/1.5.0/exec-maven-plugin-1.5.0.pom and see whether you get an XML result
2. if not: check `nslookup repo.maven.apache.org`
 

direktor

Neues Mitglied
Not XML, just some text like this: 4.0.0 org.codehaus.mojo mojo-parent 38 exec-maven-plugin 1.5.0 maven-plugin Exec Maven Plugin A plugin to allow execution of system and Java programs http://www.mojohaus.org/........ and so on....
Thanks. Nevermind. I have to leave this hole to do some serious programming, nothing works here.
 
Ähnliche Java Themen
  Titel Forum Antworten Datum
W IntelliJ - Maven - Jump to failed Tests Java Basics - Anfänger-Themen 4
G Merkwürdiges Verhalten der Maven IDE Java Basics - Anfänger-Themen 3
G Maven Swing: Wie verwende ich WindowListener ? Java Basics - Anfänger-Themen 2
Oneixee5 Maven Plugin wird 2 mal ausgeführt Java Basics - Anfänger-Themen 10
M mit Maven eine ausführbare Jar bauen Java Basics - Anfänger-Themen 7
W Datenbankverbindung mit Maven konfigurieren Java Basics - Anfänger-Themen 11
D maven dependencies re-importieren in intellij Java Basics - Anfänger-Themen 5
C External Jar einbinden bei Maven Java Basics - Anfänger-Themen 9
T JavaFX2/maven Java Basics - Anfänger-Themen 7
C Einbinden von Komponenten mit Maven Java Basics - Anfänger-Themen 3
T Start-Activity für Java Maven Web-Anwendung festlegen Java Basics - Anfänger-Themen 2
S Maven und externe Library Java Basics - Anfänger-Themen 2
P Maven-Dependencies (package org.apache.http.nio does not exist) Java Basics - Anfänger-Themen 6
B Arquillian installieren - Maven, WildFly, MYSQL Java Basics - Anfänger-Themen 1
O Maven Java Basics - Anfänger-Themen 10
T gradle, maven, ant - was ist das? Java Basics - Anfänger-Themen 2
P Maven und eigene Jars Java Basics - Anfänger-Themen 4
M Maven Main-Methode Interface und Klasse Java Basics - Anfänger-Themen 2
elischa Eclipse Plugin Projekt, Maven Projekt und dependencies Java Basics - Anfänger-Themen 5
A JavaScript Object Notation einbinden mittels Maven Java Basics - Anfänger-Themen 7
M Warum ist Maven als Technologie eigentlich so sicher? Java Basics - Anfänger-Themen 0
M Frage zu Maven Plugin für Eclipse IDE Java Basics - Anfänger-Themen 1
M Frage zu Maven Lifecycles Java Basics - Anfänger-Themen 2
M Maven Dependency im Java Projekt Java Basics - Anfänger-Themen 1
K Maven Dependency unklar Java Basics - Anfänger-Themen 5
M Bestehendes Projekt auf Maven umstellen? Java Basics - Anfänger-Themen 5
G Maven Dependency für Oracle JDBC-Driver korrekt festlegen Java Basics - Anfänger-Themen 4
G Erstellen eines Maven Projektes mit Eclipse Java Basics - Anfänger-Themen 9
F frage zu maven Java Basics - Anfänger-Themen 2
G Unterschied zwischen Ant und Maven Java Basics - Anfänger-Themen 9

Ähnliche Java Themen

Neue Themen


Oben