By cmd command into the jar maven repository

Such as: the copy directly to mave jar package repository folder can not be used directly by the cmd command requires the production maven jar Available

 

mvn install:install-file -Dfile=iTextAsian-1.0.jar -DgroupId=com.lowagie -DartifactId=iTextAsian -Dversion=1.0 -Dpackaging=ja

 

Dfile: To install a local path of JAR 
DgroupId: (a directory used between the local repository to generate a directory on the jar package good segmentation.: Redis.clients) to install the JAR Id Group
DartifactId: To Artificial Id JAR installation (generated on a well jar package directory)
dVERSION: JAR version 
Dpackaging: packaging type, e.g. JAR

Finally, the jar package introduces project in maven pom.xml file configuration is as follows:

<dependency>
    <groupId>com.telezone.platform</groupId>
    <artifactId>tlz-core</artifactId>
    <version>1.1</version>
</dependency>

 

Guess you like

Origin www.cnblogs.com/chenchengxuyuan/p/11994989.html