您的位置:首页 > 其它

maven打包jar与pom文件到本地仓库例子

2017-02-06 11:29 615 查看
mvn install:install-file -Dfile=[your file] -DgroupId=[xxxx] -DartifactId=[xxxx] -Dversion=[xxxx] -Dpackaging=[pom|jar|other]


打包jar

mvn install:install-file -Dfile=C:\Users\Administrator\Desktop\netty-3.5.12.Final.jar -DgroupId=org.maven2.io.netty.netty -DartifactId=netty -Dversion=3.5.12.Final -Dpackaging=jar


打包pom

mvn install:install-file -Dfile=C:\Users\Administrator\Desktop\smartlog-2.0.2-SNAPSHOT.pom -DgroupId=com.ultrapower.zq -DartifactId=smartlog -Dversion=2.0.2-SNAPSHOT -Dpackaging=pom
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: