maven 上传jar 包含源码
生活随笔
收集整理的這篇文章主要介紹了
maven 上传jar 包含源码
小編覺得挺不錯的,現在分享給大家,幫大家做個參考.
2019獨角獸企業重金招聘Python工程師標準>>>
maven 上傳jar 包含源碼
1、pom配置如下
<build><plugins><!-- 要將源碼放上去,需要加入這個插件 --><plugin><groupId>org.apache.maven.plugins</groupId><artifactId>maven-source-plugin</artifactId><configuration><attach>true</attach></configuration><executions><execution><phase>compile</phase><goals><goal>jar</goal></goals></execution></executions></plugin></plugins></build>2、depoly.cmd
mvn clean install deploy:deploy-file ^ -DgroupId=com.iflytek.icourt ^ -DartifactId=common-service ^ -Dversion=1.0.0-SNAPSHOT ^ -Dpackaging=jar ^ -Dfile=target/common-service-1.0.0-SNAPSHOT.jar ^ -DpomFile=pom.xml ^ -Durl=http://pl.maven.iflytek.com/nexus/content/repositories/court-snapshot/ ^ -DrepositoryId=court-snapshot ^ -Dmaven.test.skip=true -ecmd3、maven的config中settings.xml的配置
因為nexus是需要登陸操作,當然可以通過配置免登陸,這是后話。
在settings.xml的<servers></servers>
<server>??? <id>thirdparty</id>??? <username>admin</username> <password>admin123</password>??? </server>成果
轉載于:https://my.oschina.net/chuibilong/blog/2999027
總結
以上是生活随笔為你收集整理的maven 上传jar 包含源码的全部內容,希望文章能夠幫你解決所遇到的問題。
- 上一篇: 冲刺第六天 1.7 MON
- 下一篇: iOS自动化探索(四)自动化测试框架py