maven构建本地jar包到本地仓库
生活随笔
收集整理的這篇文章主要介紹了
maven构建本地jar包到本地仓库
小編覺得挺不錯的,現在分享給大家,幫大家做個參考.
maven命令:
mvn:install:install-file -DgroupId=com.oracle -DartifactId=ojdbc6 -Dversion=1.0 -Dpackaging=jar -Dfile=E:\JavaTools\jar\ojdbc6.jar
-Dfile:本地jar包的路徑;
-DgroupId:是jar包在maven中的pom.xml中的的groupId;
-DartifactId:是jar包在maven中的pom.xml中的的artifactId;
-Dversion:是jar包在maven中的pom.xml中的的version;
-eclipse中的maven插件執行:run as -> maven bulid -> 上述命令去掉mvn
?
<dependency><groupId>com.oracle</groupId><artifactId>ojdbc6</artifactId><version>1.0</version> </dependency>?
轉載于:https://www.cnblogs.com/caster-xzn/p/8361720.html
總結
以上是生活随笔為你收集整理的maven构建本地jar包到本地仓库的全部內容,希望文章能夠幫你解決所遇到的問題。
- 上一篇: sqlserver存储过程sp_send
- 下一篇: 索引迭代