mven和nexus的使用

 

/////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////maven

settings.xml配置:url

 
  <servers> 
    
    <localRepository>d:/maven/m2</localRepository> server

        <server> 
                <id>nexus-lib</id> 
                <username>admin</username> 
                <password>admin123</password> 
        </server> xml


  </servers> it


  <mirrors> 配置


        <mirror> 
                <id>nexus-lib</id> 
                <name>internal nexus repository</name> 
                <url>http://localhost:8081/nexus/content/groups/nexus-lib/</url> 
                <mirrorOf>central</mirrorOf> 
        </mirror> word


  </mirrors> co


</settings> ps

pom.xml配置:ab

<repositories>         <repository>             <id>nexus-lib</id>             <name>internal nexus repository</name>             <url>http://localhost:8081/nexus/content/groups/nexus-lib/</url>             <snapshots>                 <enabled>false</enabled>             </snapshots>         </repository>     </repositories>

相關文章
相關標籤/搜索