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