pom.xml 右键 maven install 后,直接就BUILD SUCCESS了,一个依赖都没有下载,可能是maven主库被墙的缘故,然后在maven/conf/setting.xml里配置镜像如下:
<mirrors>
<mirror>
<id>CN</id>
<name>OSChina Central</name>
<url>http://maven.oschina.net/content/groups/public/</url>
<mirrorOf>central</mirrorOf>
</mirror>
</mirrors>
<profiles>
<profile>
<id>jdk-1.8</id>
<activation>
<jdk>1.8</jdk>
</activation>
<repositories>
<repository>
<id>nexus</id>
<name>local private nexus</name>
<url>http://maven.oschina.net/content/groups/public/</url>
<releases>
<enabled>true</enabled>
</releases>
<snapshots>
<enabled>false</enabled>
</snapshots>
</repository>
</repositories>
<pluginRepositories>
<pluginRepository>
<id>nexus</id>
<name>local private nexus</name>
<url>http://maven.oschina.net/content/groups/public/</url>
<releases>
<enabled>true</enabled>
</releases>
<snapshots>
<enabled>false</enabled>
</snapshots>
</pluginRepository>
</pluginRepositories>
</profile>
结果还是无法下载依赖,这究竟怎么回事?
오시나 거울은 닫혀있지 않나요? 가서 검색해 볼까?
http://maven.oschina.net/
다음은 일반적으로 사용되는 Maven 라이브러리입니다
으아악