1. 程式人生 > >idea maven Error:java: release version 5 not supported

idea maven Error:java: release version 5 not supported

version 5指的是1.5換成1.8就行了

即在pom中加入

 </dependencies>
    <build>
        <plugins>
            <plugin>
                <groupId>org.apache.maven.plugins</groupId>
                <artifactId>maven-compiler-plugin</artifactId>
                <version>2.3.2</
version> <configuration> <source>1.8</source> <target>1.8</target> </configuration> </plugin> </plugins> </build> </project>