[英]How to set deployment repository in pom.xml
everybody! 大家好! When I deploy my artefact, I run
部署文物时,我会跑步
clean deploy -DaltDeploymentRepository=releases::default::http://nexus.******.com/nexus/content/repositories/releases
What should I put into pom.xml to be able to run this command from Idea without creating custom command on every maschine? 我应该在pom.xml中放入什么内容,以便能够在不对每个机器创建定制命令的情况下从Idea运行此命令?
From: https://maven.apache.org/plugins/maven-deploy-plugin/usage.html 来自: 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>
Here you can find description of parameters you pass: http://maven.apache.org/plugins/maven-deploy-plugin/deploy-mojo.html 在这里,您可以找到传递的参数说明: http : //maven.apache.org/plugins/maven-deploy-plugin/deploy-mojo.html
Authentication you should store in your settings.xml file: 身份验证应存储在settings.xml文件中:
<server>
<id>internal.repo</id>
<username>maven</username>
<password>foobar</password>
</server>
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.