配置山能私有仓库maven

release
gongquanlin 2 years ago
parent d0095c429c
commit 5d1a6df6f6
  1. 53
      settings.xml

@ -0,0 +1,53 @@
<!--部分配置参考-->
<settings>
<profiles>
<!-- 山东能源profile -->
<profile>
<id>sdny</id>
<servers>
<!-- 山东能源 -->
<server>
<id>nexus-snapshots</id>
<username>admin</username>
<password>Sdnydt@2022</password>
</server>
<server>
<id>nexus-releases</id>
<username>admin</username>
<password>Sdnydt@2022</password>
</server>
</servers>
<mirrors>
<!-- <mirror>
<id>maven-default-http-blocker</id>
<mirrorOf>external:http:*</mirrorOf>
<name>Pseudo repository to mirror external repositories initially using HTTP.</name>
<url>http://0.0.0.0/</url>
<blocked>false</blocked>
</mirror> -->
<!-- 阿里云仓库 -->
<mirror>
<id>alimaven</id>
<mirrorOf>central</mirrorOf>
<name>aliyun maven</name>
<url>http://maven.aliyun.com/nexus/content/repositories/central/</url>
</mirror>
<mirror>
<id>dxhy-maven</id>
<mirrorOf>dxhy</mirrorOf>
<name>sdny myself</name>
<url>http://172.31.32.53:8081/repository/maven-public/</url>
<blocked>false</blocked>
</mirror>
</mirrors>
</profile>
</profiles>
<activeProfiles>
<activeProfile>dxhy</activeProfile>
</activeProfiles>
</settings>
Loading…
Cancel
Save