nexus maven settings.xml配置
阿新 • • 發佈:2020-09-14
<profile> <id>nexusProfile</id> <repositories> <repository> <id>nexus</id> <name>Nexus Repository</name> <url>http://nexus.4sb2b.cn/repository/maven-public/</url> <releases> <enabled>true</enabled> </releases> <!-- snapshot needs to enabled manually --> <snapshots> <enabled>true</enabled> </snapshots> </repository> </repositories> </profile> <activeProfiles> <!-- only take effect after active --> <activeProfile>nexusProfile</activeProfile> </activeProfiles>
<mirror>
<id>nexusMirror</id>
<mirrorOf>nexus,central</mirrorOf>
<name>Human Readable Name</name>
<url>http://nexus.4sb2b.cn/repository/maven-public/</url>
</mirror>