[英]How to set deployment repository in pom.xml
大家好! 部署文物時,我會跑步
clean deploy -DaltDeploymentRepository=releases::default::http://nexus.******.com/nexus/content/repositories/releases
我應該在pom.xml中放入什么內容,以便能夠在不對每個機器創建定制命令的情況下從Idea運行此命令?
來自: https : //maven.apache.org/plugins/maven-deploy-plugin/usage.html
<distributionManagement>
<repository>
<id>internal.repo</id>
<name>MyCo Internal Repository</name>
<url>Host to Company Repository</url>
</repository>
</distributionManagement>
在這里,您可以找到傳遞的參數說明: http : //maven.apache.org/plugins/maven-deploy-plugin/deploy-mojo.html
身份驗證應存儲在settings.xml文件中:
<server>
<id>internal.repo</id>
<username>maven</username>
<password>foobar</password>
</server>
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.