如何在 pom.xml 中设置部署存储库
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>
大家好! 当我部署我的人工制品时,我 运行
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>