Maven 配置说明
1、下载apache maven3
2、maven 配置setting.xml
加入以下代码
<server>
<id>whrp-snapshots</id>
<username>development</username>
<password>s7JRwpYwo*1dBc#O</password>
</server>
<server>
<id>whrp-releases</id>
<username>development</username>
<password>s7JRwpYwo*1dBc#O</password>
</server>
<mirror>
<id>whrp</id>
<mirrorOf>*</mirrorOf>
<url>http://192.168.0.26:8081/repository/maven-public/</url>
</mirror>
3、配置项目pom.xml
<distributionManagement>
<snapshotRepository>
<id>whrp-snapshots</id>
<name>Snapshots</name>
<url>http://192.168.0.26:8081/repository/maven-snapshots/</url>
</snapshotRepository>
<repository>
<id>whrp-releases</id>
<name>Releases</name>
<url>http://192.168.0.26:8081/repository/maven-releases/</url>
</repository>
</distributionManagement>
4、IDEA 配置maven
5、发布
mvn deploy
作者:崔启旭 创建时间:2023-04-03 16:04
更新时间:2024-11-15 23:02
更新时间:2024-11-15 23:02