<?xml version="1.0" encoding="UTF-8"?> <settings xmlns="http://maven.apache.org/SETTINGS/1.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/SETTINGS/1.0.0 http://maven.apache.org/xsd/settings-1.0.0.xsd"> <pluginGroups/> <proxies/> <servers> <server> <id>xdclass-releases</id> <username>admin</username> <password>admin123</password> </server> <server> <id>xdclass-snapshots</id> <username>admin</username> <password>admin123</password> </server> </servers> <mirrors/> <profiles> <profile> <id>xdclass</id> <activation> <activeByDefault>false</activeByDefault> </activation> <!-- 私有庫地址--> <repositories> <repository> <id>xdclass</id> <url>http://192.168.56.101:8081/repository/maven-public/</url> <releases> <enabled>true</enabled> </releases> <snapshots> <enabled>true</enabled> </snapshots> </repository> </repositories> <!--插件庫地址--> <pluginRepositories> <pluginRepository> <id>xdclass</id> <url>http://192.168.56.101:8081/repository/maven-public/</url> <releases> <enabled>true</enabled> </releases> <snapshots> <enabled>true</enabled> </snapshots> </pluginRepository> </pluginRepositories> </profile> </profiles> <activeProfiles> <activeProfile>xdclass</activeProfile> </activeProfiles> </settings>
修改pomlinux
<!--pom.xml 遠程倉庫的配置 id要跟本地maven的setting.xml相同 --> <distributionManagement> <repository> <id>xdclass-releases</id> <name>Ruizhi Release Repository</name> <url>http://192.168.56.101:8081/repository/maven-releases/</url> </repository> <snapshotRepository> <id>xdclass-snapshots</id> <name>Ruizhi Snapshot Repository</name> <url>http://192.168.56.101:8081/repository/maven-snapshots/</url> </snapshotRepository> </distributionManagement>