plantuml / plantuml-server

PlantUML Online Server
https://plantuml.com/
GNU General Public License v3.0
1.6k stars 463 forks source link

Docker build error #210

Closed JRGit4UE closed 1 year ago

JRGit4UE commented 2 years ago

On

[ERROR] Plugin org.apache.maven.plugins:maven-checkstyle-plugin:3.1.2 or one of its dependencies could not be resolved: Failed to read artifact descriptor for org.apache.maven.plugins:maven-checkstyle-plugin:jar:3.1.2: Could not transfer artifact org.apache.maven.plugins:maven-checkstyle-plugin:pom:3.1.2 from/to central (https://repo.maven.apache.org/maven2): transfer failed for https://repo.maven.apache.org/maven2/org/apache/maven/plugins/maven-checkstyle-plugin/3.1.2/maven-checkstyle-plugin-3.1.2.pom: Unknown host repo.maven.apache.org: Temporary failure in name resolution -> [Help 1]
[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/PluginResolutionException
The command '/bin/sh -c mvn --batch-mode --define java.net.useSystemProxies=true package' returned a non-zero code: 1

I have removed the .m2 dir and rebuilt everything, the error is still the same. Maybe someone can help?

Thx in advance

HeinrichAD commented 1 year ago

Since the error message states Unknown host repo.maven.apache.org: Temporary failure in name resolution, it could be a DNS problem. Maybe the DNS server is not reachable/responding or the company DNS reject to resolve this due to specific rules. You could try to use an open DNS to test if your current DNS is the problem. (If you are allowed to do this.)

Other possible reason could be: using a proxy, firewall rules, company runs own Maven repository, local Maven settings (~/.m2/settings.xml) are corrupted.