Details
-
Type:
Improvement
-
Status:
Closed
-
Priority:
Minor
-
Resolution: Fixed
-
Affects Version/s: 2.0.6
-
Fix Version/s: 2.0.8
-
Component/s: Artifacts and Repositories
-
Labels:None
-
Complexity:Intermediate
-
Number of attachments :
Description
I love how when an artifact can't be found, a nice error explains how to install it locally. This is a great technique for onboarding new maven users who might otherwise be frustrated, thinking that they can't use things no in the public repo. Kudos to whoever did this initial work.
Now I suggest you take it a step further by including instructions for deploying the file to a personal repo. For example:
Caused by: Missing:
----------
1) j2ssh:j2ssh-core:jar:0.2.9
Try downloading the file manually from the project website.
Then, install it using the command:
mvn install:install-file -DgroupId=j2ssh -DartifactId=j2ssh-core \
-Dversion=0.2.9 -Dpackaging=jar -Dfile=/path/to/file
Alternatively, if you host your own repository you can deploy the file there:
mvn deploy:deploy-file -DgroupId=j2ssh -DartifactId=j2ssh-core \
-Dversion=0.2.9 -Dpackaging=jar -Dfile=/path/to/file
-Durl=... -DrepositoryId=...
Path to dependency:
1) com.hostedqa:hostedqa-anywhere-server:jar:1.7.4-SNAPSHOT
2) j2ssh:j2ssh-core:jar:0.2.9
Suggested applied.