80 lines
2.9 KiB
XML
80 lines
2.9 KiB
XML
|
|
<?xml version="1.0" encoding="UTF-8"?>
|
|||
|
|
<settings xmlns="http://maven.apache.org/SETTINGS/1.2.0"
|
|||
|
|
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
|
|||
|
|
xsi:schemaLocation="http://maven.apache.org/SETTINGS/1.2.0 http://maven.apache.org/xsd/settings-1.2.0.xsd">
|
|||
|
|
|
|||
|
|
<!-- 本地仓库路径 -->
|
|||
|
|
<localRepository>D:\develop\yjb\repository_yjb</localRepository>
|
|||
|
|
|
|||
|
|
<servers>
|
|||
|
|
<!-- 私服账号密码:注意 id 必须和 pom.xml 里的 distributionManagement 对应 -->
|
|||
|
|
<server>
|
|||
|
|
<id>releases</id>
|
|||
|
|
<username>admin</username>
|
|||
|
|
<password>335453955</password>
|
|||
|
|
</server>
|
|||
|
|
<server>
|
|||
|
|
<id>snapshots</id>
|
|||
|
|
<username>admin</username>
|
|||
|
|
<password>335453955</password>
|
|||
|
|
</server>
|
|||
|
|
<server>
|
|||
|
|
<id>xdadan-releases</id>
|
|||
|
|
<username>admin</username>
|
|||
|
|
<password>335453955</password>
|
|||
|
|
</server>
|
|||
|
|
</servers>
|
|||
|
|
|
|||
|
|
<mirrors>
|
|||
|
|
<!-- 关键:公共依赖走阿里云 HTTPS(安全且快) -->
|
|||
|
|
<mirror>
|
|||
|
|
<id>aliyun-public</id>
|
|||
|
|
<mirrorOf>central</mirrorOf>
|
|||
|
|
<name>Aliyun Public Repository</name>
|
|||
|
|
<url>https://maven.aliyun.com/repository/public</url>
|
|||
|
|
</mirror>
|
|||
|
|
</mirrors>
|
|||
|
|
|
|||
|
|
<profiles>
|
|||
|
|
<profile>
|
|||
|
|
<id>allow-insecure-http</id>
|
|||
|
|
<activation>
|
|||
|
|
<activeByDefault>true</activeByDefault>
|
|||
|
|
</activation>
|
|||
|
|
<properties>
|
|||
|
|
<!-- 关键:允许不安全的 HTTP 仓库,解决 maven-default-http-blocker 拦截 -->
|
|||
|
|
<maven.wagon.http.ssl.insecure>true</maven.wagon.http.ssl.insecure>
|
|||
|
|
<maven.wagon.http.ssl.allowall>true</maven.wagon.http.ssl.allowall>
|
|||
|
|
</properties>
|
|||
|
|
<repositories>
|
|||
|
|
<!-- 你的私有仓库:显式声明,允许 snapshots -->
|
|||
|
|
<repository>
|
|||
|
|
<id>releases</id>
|
|||
|
|
<name>xdadan-releases</name>
|
|||
|
|
<url>http://47.109.179.210:8888/repository/maven-releases/</url>
|
|||
|
|
<releases>
|
|||
|
|
<enabled>true</enabled>
|
|||
|
|
</releases>
|
|||
|
|
<snapshots>
|
|||
|
|
<enabled>true</enabled>
|
|||
|
|
</snapshots>
|
|||
|
|
</repository>
|
|||
|
|
</repositories>
|
|||
|
|
<pluginRepositories>
|
|||
|
|
<pluginRepository>
|
|||
|
|
<id>releases</id>
|
|||
|
|
<name>xdadan-releases</name>
|
|||
|
|
<url>http://47.109.179.210:8888/repository/maven-releases/</url>
|
|||
|
|
<releases>
|
|||
|
|
<enabled>true</enabled>
|
|||
|
|
</releases>
|
|||
|
|
<snapshots>
|
|||
|
|
<enabled>true</enabled>
|
|||
|
|
</snapshots>
|
|||
|
|
</pluginRepository>
|
|||
|
|
</pluginRepositories>
|
|||
|
|
</profile>
|
|||
|
|
</profiles>
|
|||
|
|
|
|||
|
|
</settings>
|