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

2019-02-14 16:02
8109
32642

        需要导入同事的一个项目到我的电脑上,导入后一直包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:39:02.0
Best Site Good Work <a href="http://www.eidon.se/compazine-10-mg-for-nausea/">compazine prescribing information</a> Asked when they will update that platform to comply with law, republicans respond&#8230;&#8230; &#8220;uhhhh what? Benghazi&#8221;
2020-10-25 11:38:50.0
I don't know what I want to do after university <a href="http://www.imengaged.org/cout-zyrtec.html">zyrtec refunds</a> &ldquo;We see grave difficulties in your system &mdash; confusion and turmoil, graft and corruption
2020-10-25 11:38:49.0
Do you have any exams coming up? <a href="http://kopekciftligi.com.tr/femara-5-mg">femara letrozole tablets</a> It is well known amongst railway staff that when a project this large is underway, there will be disruption, most of it planned to minimise passenger inconvenience, but some unplanned disruption will happen on a project this size.
2020-10-25 11:38:48.0
I love the theatre <a href="http://autodent-services.co.uk/can-hyzaar-cause-weight-gain.html">is hydrochlorothiazide available over the counter</a> The remaining billions of dollars in the PECDAR assessment, which was compiled by 13 experts resident in Gaza and their research teams, were allocated to the financial, health, agriculture, and transportation sectors, all of which suffered widespread damage during the war.
2020-10-25 11:38:48.0
Gloomy tales <a href="http://dohon.co.jp/dapagliflozin-side-effects-uk">forxiga astrazeneca dapagliflozin</a> Numbers that were out over the weekend did not make for good reading industrial production slowed from a 9.0pc year-on-year rate of expansion in July to a 6.9pc rate in August, and Chinese consumers are spending less with retail sales down to an 11.9pc on-year gain from 12.2pc.
2020-10-25 11:16:54.0
We need someone with qualifications <a href="http://www.trustee.org.cn/ibuprofen-100mg-dosage-for-infants/">maximum daily dose of ibuprofen 600mg</a> Peterson hasn't appeared publicly since the grand jury indictment, but in a statement this week he said he's met with a psychologist and acknowledged there are "alternative ways of disciplining a child that may be more appropriate."
2020-10-25 11:16:53.0
What sort of work do you do? <a href="http://neec2010.co.uk/harga-tato-permanen.aspx">harga tatto permanen di surabaya</a> Berdan said aggressive actions and changes since thenensured that the hospital was "a safe place" for patients andstaff, and that outside experts would be consulted to determinehow two nurses caring for Duncan became infected with Ebola.
2020-10-25 11:16:53.0
I'm at Liverpool University <a href="http://bodybuildingexpertzone.com/el-aciclovir-se-puede-comprar-sin-receta.html">aciclovir lloyds pharmacy</a> Executives at various media companies said they have a new check list of questions for digital rights to Web-only television, mobile apps or on-demand programming
2020-10-25 11:16:52.0
Do you have any exams coming up? <a href="http://dohon.co.jp/compazine-iv-uses">side effects of compazine</a> It will be a useful indicator as to whether a person is &lsquo;incapable of having proper control of the vehicle' and whether that incapability might be due to the presence of an intoxicant such as drugs," commented the Minister for Transport, Paschal Donohoe.
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.