Maven source value 1.5 is obsolete and will be removed in a future release
By:Roy.LiuLast updated:2019-08-11
In IntelliJ IDEA, Maven builds a project, and hits the following warning message?
Warning:java: source value 1.5 is obsolete and will be removed in a future release Warning:java: target value 1.5 is obsolete and will be removed in a future release
To fix it, add maven-compiler-plugin plugin.
pom.xml
<build> <plugins> <plugin> <groupId>org.apache.maven.plugins</groupId> <artifactId>maven-compiler-plugin</artifactId> <version>3.8.0</version> <configuration> <source>1.8</source> <target>1.8</target> </configuration> </plugin> </plugins> </build>
From:一号门
Previous:Java Files.readAllBytes example
COMMENTS