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

2019-02-14 16:02
9034
32646

        需要导入同事的一个项目到我的电脑上,导入后一直包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-12 03:52:35.0
Where did you go to university? <a href="https://nirmusic.com/can-a-gp-prescribe-accutane-uk-7vgk">accutane stories uk</a> A team of researchers working at Germany's Technische Universität Braunschweig has succeeded in using a previously known DNA origami construction technique to build a nanoantenna with a docking site. First ...
2020-10-12 03:52:35.0
I work for a publishers <a href="https://www.dwshop.it/viagra-zum-testen-3tp7">purchase viagra online pay with check</a> "Men tend to wait longer to pursue a surgical option to help with weight control," for example, when they "can no longer function at their jobs or with their daily activities," says Anita Courcoulas, a bariatric (weight loss) and general surgeon at the University of Pittsburgh Medical Center's Magee-Womens Hospital. "This is changing in the last several years with the recognition of the many health benefits of bariatric surgery, especially the treatment of Type 2 diabetes, and both more men and women are seeking surgery to help improve their health."
2020-10-12 03:52:33.0
Your cash is being counted <a href="http://mackenziecherban.com/cytoxan-iv-administration-rate-s8hl">cytoxan tablets price</a> "It's good to get your feet wet a little bit, see a different color helmet and really just play the game," Flynn said. "We did a pretty good job. We'd like to get it in the end zone, but there are a lot of positive things that came out of it."
2020-10-08 23:45:27.0
WM0yPP http://pills2sale.com/ cheap viagra
2020-08-23 13:56:34.0
Finasteride Cash Delivery Overseas incerm https://cialisse.com/ - Cialis feafttem Legally Fluoxetine How To Buy Free Shipping Piesse <a href=https://cialisse.com/#>cialis 5 mg best price usa</a> Dredge Asia Viagara Online
2020-07-05 23:13:59.0
Prezzi Cialis SealAmemn https://bbuycialisss.com/# - is cialis generic woots Buy Trichozole Without Prescription creert <a href=https://bbuycialisss.com/#>daily cialis online</a> Suilimuh Tz
2020-06-15 23:18:33.0
generic levitra online https://cheapcialisll.com/ - can you buy cialis online Propecia Toxicidad <a href=https://cheapcialisll.com/#>Cialis</a> precio cialis original