maven本地pom文件安装到本地仓库中

mvn install:install-file -DgroupId=com.xxx -DartifactId=xxx -Dversion=1.1.1 -Dpackaging=pom -Dfile=xxx-1.1.1.pom

 packaging值为pom。

 mvn install:install-file -DgroupId=x.xx -DartifactId=xxx -Dversion=1.0 -Dpackaging=jar -Dfile=xx-1.0.jar -Dclassifier=tests

classifier=tests

lassifier可以是任意的字符串,用于拼接在GAV之后来确定指定的文件。

  可用于区分不同jdk版本所生成的jar包

猜你喜欢

转载自www.cnblogs.com/sunjie-one/p/11718952.html