Maven手动添加jar包到本地仓库

2019-02-14 16:02
8121
32643

        需要导入同事的一个项目到我的电脑上,导入后一直包jar缺失,经检查发现jar不在共有仓库也不在公司的私服上,而是在他的本地仓库(坑),他把jar复制后给我,我直接放到本地仓库中不行,后来发现需要通过maven安装,过程如下:

1、将jar包复制到E:\DEVTools\myJar\目录下;

2、执行命令(使用管理员权限进入doc)
mvn install:install-file -Dfile=E:\DEVTools\myJar\jrobin-1.6.0.jar -DgroupId=org.jrobin -DartifactId=jrobin -Dversion=1.6.0 -Dpackaging=jar

ps:其中

        groupId=org.jrobin;artifactId=jrobin;version=1.6.0。含义如下图:
        执行完命令如下图:

3、安装完毕如图

全部评论

2020-10-25 10:33:27.0
I can't get a signal <a href="http://lg303.com/harga-obat-generik-cefixime">cefixime in typhoid fever</a> 3 &mdash; Iverson&rsquo;s number &mdash; on each back heel and the red, white and blue colors of the Philadelphia 76ers
2020-10-25 10:10:31.0
Remove card <a href="http://understandingmigraine.com/innopran-xl/">innopran xl 80 mg</a> In 2009, another Russian model &mdash; a close friend of Korshunova &mdash; leaped to her death in Kiev, Ukraine
2020-10-25 10:10:30.0
I'd like to send this parcel to <a href="http://wilkinsplastering.co.uk/precose-mechanism-of-action.html">precose tab 25 mg</a> "It's an effective piece of graphic design, because it encompasses the idea of her name and the idea of movement," Glaser said
2020-10-25 10:10:30.0
My battery's about to run out <a href="http://weightloss-basics.com/imipramine-cause-weight-gain">tofranil para que es</a> And the other big takeaway for parents is: If your kid is sick, don&rsquo;t send them to school or day care.&rdquo;
2020-10-25 10:10:29.0
Directory enquiries <a href="http://plateroytu.com/skelaxin-kidney-stones">metaxalone 800 mg for headaches</a> Venezuelan society is polarised, and the vast majority of those posting these images are people openly opposed to the government
2020-10-25 10:10:28.0
I'll put him on <a href="http://vaccineresource.com/where-to-get-cytotec-in-nigeria/">prix cytotec en pharmacie</a> "The key will be whether the links between the mesh points are able to cope with heavy use of the 4G network and whether the pricing is such that it makes it accessible to the average user," said Sebastien Lahtinen, from broadband news site ThinkBroadband.
2020-10-25 09:48:53.0
Thanks for calling <a href="http://www.edep.org/ketorolac-compresse-prezzo.html">toradol im uses</a> &#8220;You can get all the same health benefits from lower-mercury fish without taking on the mercury risks with tuna,&#8221; she said
2020-10-25 09:48:53.0
How do I get an outside line? <a href="http://www.squadguru.com/cleocin-ovules-price/">clindamycin antibiotic topical</a> The upgraded Antares will be equipped with a greater payload performance, allowing Cygnus to deliver in excess of 20 percent more cargo per flight than in prior plans
2020-10-25 09:48:52.0
I can't get a signal <a href="http://prepa-sarcelles.fr/betnovate-cream-uk-online.php">betnovate c skin cream images</a> That was his nature, in his way of speaking and behaving, his gestures," said Minne
2020-10-25 09:48:51.0
I've got a part-time job <a href="http://www.squadguru.com/cleocin-ovules-price/">clindamycin 2 cream pregnancy</a> The loosening is "not meant to facilitate tourist travel to Cuba, as tourist travel remains prohibited by statute," an official said, alluding to a congressional mandate that President Obama cannot unilaterally overturn.