记录一下Maven deploy配置文件
- 配置pom.xml文件,这时会报一个401错误
<distributionManagement>
<repository>
<id>releases</id>
<name>Internal Releases</name>
<url>http://localhost:8081/nexus/content/repositories/thirdparty</url>
</repository>
<snapshotRepository>
<id>releases</id>
<name>Internal Releases</name>
<url>http://localhost:8081/nexus/content/repositories/thirdparty</url>
</snapshotRepository>
</distributionManagement>
- 配置setting.xml文件,配置用户名密码就可以了,这时执行deploy就可以了
<server>
<id>releases</id>
<username>admin</username>
<password>admin</password>
</server>