SW개발
Maven Update 후 자바 버전이 바뀌는 현상 해결
개소왕
2018. 5. 3. 17:07
* 개요
Build path 에서 1.8 로 바꾸고 Maven update 하면 다시 1.6으로 바뀌는 현상의 해결
- pom.xml 의 java-version 프로퍼티 수정
<properties>
<java-version>1.8</java-version>
...
- org.apache.maven.plugins 의 버전 고쳐야 함.
<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>