maven remote repository



Eclipse's preferences -> maven -> User Settings you can see the address of your setting.xml file.
Then open the setting.xml file. Modify the mirror node inside. url points to the address of the remote repository. All your projects will work after this setting.
<mirror>
         <id>central_mirror</id>
         <name>internal central_mirror epository</name>
         <url>http://repo1.maven.org/maven2/</url>
         <mirrorOf>central</mirrorOf>  
</ mirror>


If you don't modify setting.xml, you can also add
[html] view plain copy to pom.xml of your project
. View the code slice on CODE. Derived from my code slice

      <repositories> 
        <repository>   
           <id>oschinaRepository</ id>   
           <name>local private nexus</name>   

           <releases>   
               <enabled>true</enabled>   
           </releases>   
            <snapshots>   
                <enabled>true</enabled>   
            </snapshots>   
        </repository>   
    </repositories> 


Common warehouse

Common warehouse
http://repo1.maven .org/maven2/
http://repository.jboss.com/maven2/
http://repository.sonatype.org/content/groups/public/
http://mirrors.ibiblio.org/pub/mirrors/maven2/org /acegisecurity/

http://maven.glassfish.org/content/groups/glassfish/

https://nexus.sourcesense.com/nexus/content/repositories/public/

Private repositories
http://repository. codehaus.org/
http://snapshots.repository.codehaus.org/
http://people.apache.org/repo/m2-snapshot-repository
http://people.apache.org/repo/m2-incubating-repository/


for current Item is valid.



Guess you like

Origin http://10.200.1.11:23101/article/api/json?id=326895293&siteId=291194637