码迷,mamicode.com
首页 > 其他好文 > 详细

Install jar manually into maven and Nexus

时间:2014-05-14 17:23:24      阅读:343      评论:0      收藏:0      [点我收藏+]

标签:artifact   nexus   jar   

Sometimes the maven building just needs one or more 3rd party jars, and the jars cannot be downloaded and installed automatically by Internet.


Then you can install these jars manually.


1st. Install a 3rd party jar package into maven repositor

mvn install:install-file -DgroupId=<jar‘s groupdId> -DartifactId=<artifactId> -Dpackaging=jar -Dversion=<version> -Dfile=<file location> -DgeneratePom=true

Just replace <> placeholder with your real case.


2nd. Install a 3rd party jar package into Nexus

For Nexus, you can only upload a 3rd party jar into the repository "3rd party", which is already installed as default as you setup Nexus server. Just click "3rd party" repository, and you will find a button called "Artifact upload" on the bar in the middle of the page.

本文出自 “BitterJava” 博客,请务必保留此出处http://rickqin.blog.51cto.com/1096449/1410642

Install jar manually into maven and Nexus,布布扣,bubuko.com

Install jar manually into maven and Nexus

标签:artifact   nexus   jar   

原文地址:http://rickqin.blog.51cto.com/1096449/1410642

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!