add your own jar maven project

1. Place the jar into his own maven repository

1) The first step to get this into the jar maven installation directory, D: \ Program Files (x86) \ apache-maven-3.6.0

2)打开cmd,输入指令 mvn install:install-file -Dfile="D:\Program Files (x86)\apache-maven-3.6.0\test.jar"  -DgroupId=cn.ffcs -DartifactId=test  -Dversion=1.0.0 -Dpackaging=jar

(Here involving a cmd, if a directory with spaces use "" in quotes)

This will add resources in the project pom.xml file

Guess you like

Origin www.cnblogs.com/love-dream-88/p/11412418.html