1. 程式人生 > >nexus映象&idea中配置

nexus映象&idea中配置

1、nexus資訊

url:http://10.9.11.156:8081/ admin admin123

2、idea設定 

3、settings.xml檔案

<settings xmlns= "http://maven.apache.org/SETTINGS/1.0.0"           
xmlns:xsi= "http://www.w3.org/2001/XMLSchema-instance"            xsi:schemaLocation= "http://maven.apache.org/SETTINGS/1.0.0 http://maven.apache.org/xsd/settings-1.0.0.xsd" >     
<servers>          <server>              < id >base-3rdPart< /id
>              <username>admin< /username >              <password>admin123< /password >          < /server >          <server>            < id >release< /id >            <username>admin< /username >            <password>admin123< /password >          < /server >            <server>            < id >snapshot< /id >            <username>admin< /username >            <password>admin123< /password >          < /server >         < /servers >        <mirrors>          <mirror>              < id >Nexus< /id >              <name>Nexus Public Mirror< /name >              <url>http: //10 .9.11.156:8081 /repository/maven-public/ < /url >              <mirrorOf>central< /mirrorOf >          < /mirror >          <mirror>              < id >alimaven< /id >              <mirrorOf>central< /mirrorOf >              <name>aliyun maven< /name >              <url>http: //maven .aliyun.com /nexus/content/repositories/central/ < /url >          < /mirror >          <mirror>              < id >repo1< /id >              <mirrorOf>central< /mirrorOf >              <name>Human Readable Name  for  this Mirror.< /name >              <url>http: //repo1 .maven.org /maven2/ < /url >          < /mirror >          <mirror>              < id >repo2< /id >              <mirrorOf>central< /mirrorOf >              <name>Human Readable Name  for  this Mirror.< /name >              <url>http: //repo2 .maven.org /maven2/ < /url >          < /mirror >      < /mirrors > < /settings >