开发者

Maven - Install without compile

开发者 https://www.devze.com 2023-03-29 20:42 出处:网络
Assume I have the jar under the target 开发者_运维百科folder: Is there any option in maven to install into local repository jar without executing previous phases (compile, package)?Simply do mvn insta

Assume I have the jar under the target 开发者_运维百科folder: Is there any option in maven to install into local repository jar without executing previous phases (compile, package)?


Simply do mvn install:install instead of mvn install.


Taken form the documentation:

mvn install:install-file -Dfile=<path-to-file> -DgroupId=<group-id> \
-DartifactId=<artifact-id> -Dversion=<version> -Dpackaging=<packaging>

you need to run this once for the pom and once for the jar.

0

精彩评论

暂无评论...
验证码 换一张
取 消