1. 程式人生 > 實用技巧 >nexus maven settings.xml配置

nexus maven settings.xml配置

  

    <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>