1.下載Cat源碼git
https://github.com/dianping/cat.git
2.下載依賴包修改maven的setting.xml配置,私服地址切換成以下github
<mirror>
<id>nexus-my</id>
<mirrorOf>*</mirrorOf>
<name>Nexus my</name>
<url>http://unidal.org/nexus/service/local/repositories/releases/content/</url>
<!--<url>http://192.168.0.223:8081/nexus/content/groups/public/</url>-->
</mirror> maven
3.執行mvn clean install -Dmaven.test.skip=true -U編譯代碼,下載相關依賴包,可是會報錯url
報錯:spa
4.切換回本身本地私服地址xml
<mirror>
<id>nexus-my</id>
<mirrorOf>*</mirrorOf>
<name>Nexus my</name>
<!--<url>http://unidal.org/nexus/service/local/repositories/releases/content/</url>-->
<url>http://192.168.0.223:8081/nexus/content/groups/public/</url>
</mirror> blog
5.執行mvn clean install -Dmaven.test.skip=true -U編譯代碼,下載依賴包,打包編譯成功ip