maven上传jar包含pom文件


mvn deploy:deploy-file 
-Dfile=D:\rate-limit-core-1.1.1.jar 
-DgroupId=com.alitrip.ratelimit 
-DartifactId=rate-limit-core 
-Dversion=1.1.1 
-Dpackaging=jar 
-Durl=http://xxxx:xxxx/repository/3rd-party 
-DrepositoryId=sf -s D:/software/apache-maven-3.5.0-bin/apache-maven-3.5.0/conf/settings.xml  指定setting文件
-DpomFile=D:\rate-limit-core\target\pom.xml   指定pom文件

打包忽略test

 

上传到maven私库的时候,注意制定pom文件


免责声明!

本站转载的文章为个人学习借鉴使用,本站对版权不负任何法律责任。如果侵犯了您的隐私权益,请联系本站邮箱yoyou2525@163.com删除。



 
粤ICP备18138465号  © 2018-2025 CODEPRJ.COM