maven构建本地jar包到本地仓库

176 阅读1分钟

maven命令

mvn install:install-file
-DgroupId=com.oracle
-DartifactId=ojdbc6
-Dversion=11.2.0.4.0-atlassian-hosted
-Dpackaging=jar
-Dfile=C:\Users\35725\Desktop\ojdbc6-11.2.0.4.0-atlassian-hosted.jar

image.png

  • -Dfile:本地jar包的路径;
  • -DgroupId:是jar包在maven中的pom.xml中的的groupId;
  • -DartifactId:是jar包在maven中的pom.xml中的的artifactId;
  • -Dversion:是jar包在maven中的pom.xml中的的version;