Ich versuche, mein Maven -Projekt auf meiner Linux Virtual Machine aufzustellen, um auf der Intellij -Idee zu laufen. Die VM hat bestimmte Einschränkungen und läuft auf VPN und daher wird das Maven Central Repository blockiert. Das Projekt läuft gut auf meinem lokalen Menschen, also habe ich den gesamten M2 -Ordner von meinem lokalen M2 -Ordner kopiert und es auf die virtuelle Maschine legte. Die Plugins, Gläser und Abhängigkeiten werden jetzt in M2 -Ordner korrekt angezeigt. Wenn ich versuche, den Befehl "mvn clean install -o" Maven Clean auszuführen, damit Maven im Offline -Modus die Installation durchläuft, erhalte ich den folgenden Fehler -< /p>
BUILD FAILURE
[ERROR] Plugin org.apache.maven.plugins:maven-clean-plugin:3.2.0 or one of its dependencies could not be resolved:
[ERROR] Cannot access central(https://repo.maven.apache.org/maven2) in offline mode and the artifact org.apache.maven.plugins:maven-clean-plugin:jar:3.2.0 has not been downloaded from it before. The following artifacts could not be resolved: org.apache.maven.plugins:maven-clean-plugin:jar:3.2.0 (absent): Cannot access central (https://repo.maven.apache.org/maven2) in offline mode and the artifact org.apache.maven.plugins:maven-clean-plugin:jar:3.2.0 has not been downloaded from it before.
[ERROR] -> [Help 1] org.apache.maven.plugin. Plugin Resolution Exception: Plugin org.apache.maven.plugins:maven-clean-plugin:3.2.0 or one of its dependencies could not be resolved: Cannot access central (https://repo.maven.apache.org/maven2) in offline mode and the artifact org.apache.maven.plugins:maven-clean-plugin:jar:3.2.0 has not been downloaded from it before.
< /code>
Ich weiß, wie Maven funktioniert, aber ich habe all diese Arbeiten nie manuell für die Einrichtung des M2 -Ordners erledigt. Jede Hilfe wäre geschätzt. Danke!
Maven -Plugins -Fehler und manuelle Installation des M2 -Ordners ⇐ Linux
-
- Similar Topics
- Replies
- Views
- Last post