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

2019-02-14 16:02
8122
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 11:16:51.0
Is there ? <a href="http://alternativemedicinesreview.com/bystolic-cost-without-insurance.html">bystolic cost with insurance</a> Doctors then informed Aleah&rsquo;s mother that she was &ldquo;neurologically devastated&rdquo; and would not recover, prompting the girl&rsquo;s parents to agree to a &ldquo;do not resuscitate&rdquo; (DNR) order, according to court documents.
2020-10-25 10:55:09.0
Please call back later <a href="http://cityweddings.co.uk/wellbutrin-advanced-guestbook-22/">bupropion hydrochloride extended release tablets usp</a> There&rsquo;s a sink, a two-ring hob, a fridge, a heater, a Wi-Fi hub and sleeping for four
2020-10-25 10:55:08.0
What sort of work do you do? <a href="http://www.flexss.co.uk/capoten-nutrient-interactions/">capoten 50 sublingual</a> He may have been one of the biggest stars in the game, and on his way to becoming baseball&rsquo;s all-time hit king, but Rose was also &ldquo;Everyman,&rdquo; a blue-collar guy who loved talking up the game with anyone who approached him.
2020-10-25 10:55:04.0
Looking for work <a href="http://hypertension-medication.net/imuran-50-mg-100-tablet-fiyat/">onde comprar imuran</a> Foie gras is back on the menu in California, after a federal judge on Wednesday struck down the state's controversial law banning the production and sale of the culinary delicacy that comes from the enlarged livers of ducks and geese that have been force-fed corn.
2020-10-25 10:55:02.0
How do you know each other? <a href="http://hormone-replacement-therapy.com/can-you-buy-erythromycin-ophthalmic-ointment-over-the-counter/">333 mg erythromycin</a> Rajiv Menon QC, representing families of the victims, said: "You must have asked him to do this
2020-10-25 10:55:02.0
I'm a housewife <a href="http://www.sivits.org/precio-actual-de-las-computadoras-vit">tadora 20 mg side effects</a> "We see the possibility of removing fewer still than 191," the 37-year-old electromechanical technician said.
2020-10-25 10:33:33.0
I'll send you a text <a href="http://asoupar.ir/?clindamycin-allergic-reactions">clindamycin kopen</a> "I look forward from one weekend to another to get back out on the stage of the Grand Ole Opry and try to entertain people who have come from miles and miles and state to state to be entertained with country music," he said recently, according to the Opry.
2020-10-25 10:33:32.0
Do you play any instruments? <a href="http://kbtlund.se/cheapest-family-vacations-in-california">buy cheap sylvanian families</a> The latest victim of this brutal newiron age is fledgling Australian producer, Western DesertResources, which has just gone into administration.
2020-10-25 10:33:28.0
Is this a temporary or permanent position? <a href="http://www.leilygallery.ir/trental-400-pentoxifylline/amodiaquine-pronunciation">trental amp 100 mg</a> On Friday, dignitaries and fans, some pausing to snap a picture, streamed past his casket draped with a giant "Banks 14" jersey and a large photo of him in a Cubs cap smiling right behind it.
2020-10-25 10:33:28.0
How many would you like? <a href="http://homelinesport.co.il/product.php?prod=curvimax-information">curvimax information</a> About 360 people took out their swimming suits for a chilly swim in the Mediterranean sea where the water temperature was 16 degrees Celsius.