728x90

building workspace has encountered a problem errors occurred during the build 오류와함께


Failure to transfer org.apache.maven.plugins:maven-resources-plugin:pom:2.6 의 maven 오류


Description Resource Path Location Type Could not calculate build plan: 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



이런 도움말이떴을떄 

 


나는 http://stackoverflow.com/questions/5074063/maven-error-failure-to-transfer 를 참조해서


cmd 에서


find ~/.m2  -name "*.lastUpdated" -exec grep -q "Could not transfer" {} \; -print -exec rm {} \;


을 치고


cd %userprofile%\.m2\repository for /r %i in (*.lastUpdated) do del %i


를 한다음


프로젝트를 Then rightclick on your project in eclipse and choose Maven->Update Dependencies

Posted by 앗뜨거
,
728x90
Error: The type org.springframework.dao.DataAccessException cannot be resolved. It is indirectly referenced from required .class files

해결법: RowMapper 선언할 때 spring-jdbc.jar파일만 import할 경우 하위 method인 mapRow 선언시 에러 발생 . spring-tx.jar가 추가로 필요함

메이븐에 추가
<dependency>
<groupId>org.springframework</groupId>
<artifactId>spring-tx</artifactId>
<version>4.1.1.RELEASE</version>
</dependency>


Posted by 앗뜨거
,