STS (Spring Tool Suite) 를 깔고
Spring Starter Project를 설치하였는데..
계속 Maven 관련해서 오류가 발생하여 pom.xml에 계속 x 표가 보입니다.
Failure to transfer org.apache.maven.plugins:maven-compiler-plugin:pom:2.0.2 from http://repo1.maven.org/maven2was cached in the local repository, resolution will not be reattempted until the update interval of central has elapsed or updates are forced. Original error: Could not transfer artifact org.apache.maven.plugins:maven-compiler-plugin:pom:2.0.2 from/to central (http://repo1.maven.org/maven2): No response received after 60000 ExampleProject Unknown Maven Problem
> 말인 즉슨 repository 사이트에서 받아올 파일을 받아오지 못한다는 내용이라서 역시나 네트워크 문제로 판단 되어
구글신님께 빌었더니(?) 아래와 같은 stackoverflow 오류 케이스를 찾아주셨고
http://stackoverflow.com/questions/5074063/maven-error-failure-to-transfer
Maven home에 settings.xml 을 만들고, 거기에 프록시 세팅을 해주면 된다는 사실을 알았습니다.
https://maven.apache.org/settings.html
정리하면
1. Maven Home에 settings.xml 작성
Maven Home 은
Windows : C:\Users\YourUserName\.m2\settings.xml
Linux : /home/YourUserName/.m2/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">
<localRepository/>
<interactiveMode/>
<usePluginRegistry/>
<offline/>
<pluginGroups/>
<servers/>
<mirrors/>
<proxies>
<proxy>
<id>myproxy</id>
<active>true</active>
<protocol>http</protocol>
<host>1.1.1.1</host>
<port>8080</port>
<nonProxyHosts>*.google.com|ibiblio.org</nonProxyHosts>
</proxy>
</proxies>
<profiles/>
<activeProfiles/>
</settings>
2. Project Context Menu (right-click over project name) > Run as > Maven clean
위 두 단계를 거치면 해결이 가능합니다.