maven 셋팅 에러

개발공부 2017. 5. 17. 10:43
반응형


Could not calculate build plan: Plugin org.apache.maven.plugins:maven-resources-plugin:2.6 or one of its dependencies could not be resolved


Could not calculate build plan: Plugin org.apache.maven.plugins:maven-jar-plugin:2.4 or one of its dependencies could not be resolved

Non-resolvable parent POM for com.example:demo:0.0.1-SNAPSHOT: Could not transfer artifact org.springframework.boot:spring-boot-starter-parent:pom:1.5.3.RELEASE from/to central (https://repo.maven.apache.org/maven2): sun.security.validator.ValidatorException: PKIX path building failed: sun.security.provider.certpath.SunCertPathBuilderException: unable to find valid certification path to requested target and 'parent.relativePath' points at no local POM @ line 14, column 10


메이븐 셋팅하다보니 이런 에러가..

https로 땡겨오려다보니 이슈발생하는듯..


집에서는 잘 되는데 회사에서는 안되는게 많다. ㅠㅠ


{maven_home}/conf/setting.xml에 

    <mirror>

      <id>maven</id>

      <mirrorOf>central</mirrorOf>

      <name>repo</name>

      <url>http://repo.maven.apache.org/maven2</url>

    </mirror> 



<mirrors></mirrors> 사이에 추가해준다.


프로젝트 우클릭 - Maven - update project.. 클릭!

모두모두 잘된다 ㅠ_ㅠ


반응형

'개발공부' 카테고리의 다른 글

JUnit으로 컨트롤러 테스트  (0) 2019.09.04
JSP 파일 생성시 에러  (0) 2017.05.17
svn branch 리스트 확인  (0) 2017.03.23
인코딩 소스 교체 관련  (0) 2017.03.07
Google Custom Search - Using REST to Invoke the API  (0) 2017.03.07
posted by 알릿수