command to install the package maven jar step

Disclaimer: This article is a blogger original article, follow the CC 4.0 BY-SA copyright agreement, reproduced, please attach the original source link and this statement.
This link: https://blog.csdn.net/qq_43378945/article/details/96130672

1. command follows
mvn the install: the install-File DgroupId = cn.com.ahsoft.zjmsa -
DartifactId zjmsaServiceInterface -Dversion = = = 1.0.0 -Dpackaging JAR -
dfile = zjmsaServiceInterface-1.0.0.jar
example: pom.xml file Add dependence Here Insert Picture Description
need to import two pom.xml dependent jar package file, the write command is as follows:
main five points:
1. DgroupId = cn.com.ahsoft.zjmsa
2. DartifactId = zjmsaServiceInterface
3. dVERSION = 1.0.0
. 4. = jar Dpackaging
5.Dfile = zjmsaServiceInterface-1.0.0.jar
worth content pom.xml content labels correspond, as shown above
step a:
the need to import the downloaded jar package, placed in the same directory, and the local repository maven next, as shown below:
Here Insert Picture Description
** step two: ** Add the pom.xml file dependent.
Step three **: ** Run (into the jar under the package directory to be installed, such as: C: \ the JAVA)
mvn the install: the install-File DgroupId = cn.com.ahsoft.zjmsa -
= 1.0.0 = zjmsaServiceInterface -Dversion DartifactId -Dpackaging = JAR -
dfile = zjmsaServiceInterface-1.0.0.jar
Here Insert Picture Description
installation package successful:
Here Insert Picture Description

Guess you like

Origin blog.csdn.net/qq_43378945/article/details/96130672