Maven import third-party jar package to a local warehouse

Cmd into the command interface, an input instruction as follows: mvn install: install-file -Dfile = xxxxxx -DgroupId = xxxxxx -DartifactId = xxxxxx -Dversion = xxxxxx -Dpackaging = jar -DgeneratePom = true -DcreateChecksum = true

Parameter Description

1) Dfile: jar package file path is

2) DgroupId: General name of the jar development organization, also coordinates groupId

3) DartifactId: the general name for the jar, but also coordinate artifactId

4) Dversion: is the version number

5) Dpackaging: is packaging type

 

for example:

mvn install:install-file -Dfile=F:\fastjson-1.2.5.jar  -DgroupId=com.alibaba  -DartifactId=fastjson -Dversion=1.0  -Dpackaging=jar -DgeneratePom=true -DcreateChecksum=true

 

Guess you like

Origin www.cnblogs.com/jwen1994/p/11370729.html