Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Manually downloading and installing maven plugins

Tags:

java

maven

I am on proxy network and proxy is preventing maven to connect to central repo

Is there any way to download the maven plugins manually and installing the plugins in local .m2 repo.

Thanks

like image 359
Ramandeep S Avatar asked Jul 24 '13 06:07

Ramandeep S


1 Answers

If you have the jar, you can use :

mvn install:install-file -DgroupId=<your_group_name>  \
-DartifactId=<your_artifact_name>  \
-Dversion=<version>  \
-Dfile=<path_to_your_jar_file>  \
-Dpackaging=jar \
-DgeneratePom=true

if you don't have it, and it's not a private arrtifact, you can find the jar and the informations in repository website (for exemple http://mvnrepository.com/ )

like image 101
adrien olivier Avatar answered Oct 08 '22 17:10

adrien olivier