Notice
Recent Posts
Recent Comments
송민준의 개발노트
Spring 에러(lambda expressions are not supported in -source 1.6) 본문
웹/환경설정(setting)
Spring 에러(lambda expressions are not supported in -source 1.6)
송민준 2020. 2. 4. 12:37에러 코드
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 1.561 s
[INFO] Finished at: 2020-02-04T10:57:31+09:00
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal org.apache.maven.plugins:maven-compiler-plugin:2.5.1:compile (default-compile) on project pro: Compilation failure: Compilation failure:
[ERROR] bootstrap class path not set in conjunction with -source 1.6

이런식으로 뜨길래 자바 버전문제인가 하고
[Spring] STS Maven 2.5.1 Install 컴파일 에러 (tools.jar)
Spring Framework 에서 pom.xml의 dependency등을 수정 & 추가 후 Maven Clean 후 Intall 혹은 Build시 ====================== Error Message ====================== [INFO] ----------------------------------..
pnot.tistory.com
여기 참고해서 했는데도 안되길래 찾아보니...
pom.xml 에 플러긴에 source와 target이 1.6으로 되어 있었다 ㄱ-
1.8로 고치고 해결!
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-compiler-plugin</artifactId>
<version>2.5.1</version>
<configuration>
<source>1.8</source>
<target>1.8</target>
<compilerArgument>-Xlint:all</compilerArgument>
<showWarnings>true</showWarnings>
<showDeprecation>true</showDeprecation>
</configuration>
</plugin>
'웹 > 환경설정(setting)' 카테고리의 다른 글
Git 커밋 작성자 수정 (0) | 2021.02.23 |
---|---|
intellij 정적리소스 바로 반영되게 하는 방법(eclipse - without publishing) (0) | 2020.11.28 |
gitignore (0) | 2020.01.31 |
로그 디버깅 기록 라이브러리 (0) | 2019.12.17 |
Mybatis (0) | 2019.12.16 |