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

2019-02-14 16:02
8124
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-31 15:15:08.0
Maven手动添加jar包到本地仓库 <a href="http://www.g55pbe03xq64y331b76q8d98xekf7e9ps.org/">aybncdmyvbv</a> [url=http://www.g55pbe03xq64y331b76q8d98xekf7e9ps.org/]uybncdmyvbv[/url] ybncdmyvbv http://www.g55pbe03xq64y331b76q8d98xekf7e9ps.org/
2020-10-25 12:23:22.0
How many more years do you have to go? <a href="http://galopturk.com/?antabuse-alcohol-reaction-time">aerosolized antabuse</a> Forbes writers have the ability to call out member comments they find particularly interesting
2020-10-25 12:23:21.0
Could you give me some smaller notes? <a href="http://www.kiralikevara.com/cephalexin-dosage-for-uti-in-dogs/">cephalexin 500 mg picture</a> Napoleon Bonaparte, emperor of the French, was born in Ajaccio, the capital of Corsica&#039;s southern departement
2020-10-25 12:23:21.0
How do I get an outside line? <a href="http://kaimo.dk/amaryl-m2-forte/">amaryllis seeds online</a> Postnatal depression is generally associated with women during the first year after their baby is born
2020-10-25 12:23:20.0
Could you ask her to call me? <a href="http://homelinesport.co.il/product.php?prod=prix-duphalac-sachet">duphalac syrop bez recepty</a> The firm said manufacturers would now be able to produce "razor-thin" fanless tablets - less than 9mm (0.35in) thick - without having to opt for a less powerful option, such as a rival ARM-based processor.
2020-10-25 12:23:19.0
It's a bad line <a href="http://www.weekendcruise.co.uk/drug-protonix/">protonix contra indications</a> Some other frogs that have internal fertilization give birth to miniature frogs, or "froglets."
2020-10-25 12:01:03.0
How many weeks' holiday a year are there? <a href="http://readersworld.com.au/propranolol-bez-recepty-cena/">propranolol cost cvs</a> Criminals now fear for their lives at nights and avoid venturing out," the paper quotes a police official as saying.
2020-10-25 12:01:02.0
Do you play any instruments? <a href="http://mensweightlossguide.com/buy-erythromycin-topical/">cost erythromycin</a> if the problem is tooth decay, and the cause is sugar, what might the solution be? Um, why don't we just dose everyone in the population with unmeasured amounts of a deadly cumulative poison --fluorosilicic acid? And keep doing it for 50 years, and don't look for any negative side effects? Yeah, that's the ticket.
2020-10-25 12:01:01.0
I can't get through at the moment <a href="http://cityweddings.co.uk/torsemide-side-effects/">torsemide and lasix together</a> "I would like to see that go further because I think, evenat 650,000 pounds, particularly in some parts of the country,you see someone who has worked hard, they have put money intotheir house, they have done it to improve it and they want toleave it to their children."
2020-10-25 12:01:01.0
We need someone with qualifications <a href="http://cityweddings.co.uk/torsemide-side-effects/">torsemide dose for dogs</a> "Final demand in the economy is very weak and it's unlikely that the corporate sector will take this credit and invest in new projects, so containing financial risk and stabilizing growth is the trend for this year."