mvn -X compile
[INFO] Scanning for projects...
[INFO] ------------------------------------------------------------------------
[INFO] Building MavenTest
[INFO] task-segment: [compile]
[INFO] ------------------------------------------------------------------------
[INFO] [resources:resources]
[INFO] Using default encoding to copy filtered resources.
Downloading:
https://myserver/artifactory/repo/ju...unit-3.8.1.jar
[INFO] ------------------------------------------------------------------------
[ERROR] BUILD ERROR
[INFO] ------------------------------------------------------------------------
[INFO] Failed to resolve artifact.
Missing:
----------
1) junit:junit:jar:3.8.1
Try downloading the file manually from the project website.
Then, install it using the command:
mvn install:install-file -DgroupId=junit -DartifactId=junit -Dversion=3.8.1 -Dpackaging=jar -Dfile=/path/to/file
Alternatively, if you host your own repository you can deploy the file there:
mvn deploy:deploy-file -DgroupId=junit -DartifactId=junit -Dversion=3.8.1 -Dpackaging=jar -Dfile=/path/to/file -Durl=[url] -DrepositoryId=[id]
Path to dependency:
1) com.maven.test:MavenTest:jar:1.0-SNAPSHOT
2) junit:junit:jar:3.8.1
----------
1 required artifact is missing.
for artifact:
com.maven.test:MavenTest:jar:1.0-SNAPSHOT
from the specified remote repositories:
snapshots (https://myserver/artifactory/repo),
central (https://myserver/artifactory/repo)
[INFO] ------------------------------------------------------------------------
[INFO] For more information, run Maven with the -e switch
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 1 second
[INFO] Finished at: Mon Jan 21 16:19:12 CET 2008
[INFO] Final Memory: 3M/6M
[INFO] ------------------------------------------------------------------------
Partager