nexus-3本地下载jar的settipng.xml配置

 打开maven安装目录下的setting.xml

 

 

<servers>
       <server>
        <id>nexus</id>
        <username>admin</username>
        <password>admin123</password>
    </server>
    <server>
        <id>nexus-releases</id>
        <username>admin</username>
        <password>admin123</password>
    </server>
    <server>
        <id>nexus-snapshots</id>
        <username>admin</username>
        <password>admin123</password>
    </server>

</servers> <mirrors>
<mirror> <id>nexus</id> <mirrorOf>*</mirrorOf> <url>http://127.0.0.1:8081/repository/maven-public</url> </mirror>

</mirrors> <profiles>

<profile> <repositories> <repository> <id>nexus</id> <name>Team Nexus Repository</name> <url>http://nexus-release</url> <releases><enabled>true</enabled> </releases> <snapshots><enabled>true</enabled></snapshots> </repository> </repositories> <pluginRepositories> <pluginRepository> <id>nexus</id> <name>Team Nexus Repository</name> <url>http://nexus-release</url> <releases><enabled>true</enabled></releases> <snapshots><enabled>true</enabled></snapshots> </pluginRepository> </pluginRepositories> </profile> </profiles> <activeProfiles> <activeProfile>nexus</activeProfile> </activeProfiles>

 

posted @ 2017-02-17 14:03  这个名字想了很久~  阅读(680)  评论(0编辑  收藏  举报