mvn install:install-file
-Dfile=<path-to-file>
-DgroupId=<group-id>
-DartifactId=<artifact-id>
-Dversion=<version>
-Dpackaging=jar
# 如果有 pom.xml 文件的话,可以使用
mvn install:install-file -Dfile=<path-to-file> -DpomFile=<path-to-pomfile>
# 对于 2.5 以上版本的 maven-install-plugin
mvn install:install-file -Dfile=<path-to-file>
https://maven.apache.org/guides/mini/guide-3rd-party-jars-local.html
【LIXI.FUN - Maven 安装第三方 JAR 包
】
最后
以上就是典雅星星最近收集整理的关于Maven 安装第三方 JAR 包的全部内容,更多相关Maven内容请搜索靠谱客的其他文章。
本图文内容来源于网友提供,作为学习参考使用,或来自网络收集整理,版权属于原作者所有。
发表评论 取消回复