Ich habe einen Job in Jenkins mit einigen Zielen in Maven erstellt (sauber verifizieren kompilieren). Aber, wenn ich den Job ausgeführt hat den Fehler:Manuelle Abhängigkeit Maven und Jenkins
[ERROR] Failed to execute goal on project NameProject: Could not resolve dependencies for project NameProject:x:war:0.0.1-SNAPSHOT: The following artifacts could not be resolved: com.oracle:ojdbc14:jar:10.2.0.5, org.primefaces.themes:sentinel-theme:jar:2.1.2: Could not find artifact com.oracle:ojdbc14:jar:10.2.0.5 in central (https://repo.maven.apache.org/maven2) -> [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/DependencyResolutionException
I manuelle Abhängigkeit in Maven
mvn install:install-file
-Dfile=<path-to-file>
-DgroupId=<group-id>
-DartifactId=<artifact-id>
-Dversion=<version>
-Dpackaging=<packaging>
-DgeneratePom=true
erstellt haben, aber Jenkins doesn‘ kenne diese Abhängigkeit im Pom. Wenn ich überprüfen, Kompilieren in Maven funktioniert es !, Aber wenn ich in Jenkins ausführen funktioniert nicht.
Haben Sie es auf dem Jenkins-Server installiert? –
Ich habe Jenkins in localhost installiert, um zu testen! Derselbe Maven. – Halley
Gleicher Benutzer oder anders? –