大家! 部署文物时,我会跑
clean deploy -DaltDeploymentRepository=releases::default::http://nexus.******.com/nexus/content/repositories/releases
我应该在pom.xml中添加些什么,以便能够在不对每个机器创建自定义命令的情况下从Idea运行此命令?
答案 0 :(得分:1)
发件人: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>