mvn install:install-file -Dfile=<path-to-file> -DgroupId=<group-id> \
-DartifactId=<artifact-id> -Dversion=<version> -Dpackaging=<packaging>
If there's a pom-file as well, you can install it with the following command:
mvn install:install-file -Dfile=<path-to-file> -DpomFile=<path-to-pomfile>
With version 2.5 of the maven-install-plugin it gets even better. If the JAR was built by Apache Maven, it'll contain a pom.xml in a subfolder of the META-INF directory, which will be read by default. In that case, all you need to do is:
mvn install:install-file -Dfile=<path-to-file>
Guide to installing 3rd party JARs
原创
©著作权归作者所有:来自51CTO博客作者wbj0110的原创作品,请联系作者获取转载授权,否则将追究法律责任

提问和评论都可以,用心的回复会被更多人看到
评论
发布评论
相关文章
-
Nexus 私服 3rd party 库被删除的恢复方法
Nexus 私服 3rd party 库被删除的恢复方法
Nexus 私服 3rd party 库 -
How to Manage Maven Third Party Jars
bin/mvn-install.sh view sourceprint?01.#!/..
Maven Java jar maven sed