maven项目报错:Dynamic Web Module 3.0 requires Java 1.6 or newer

在pom.xml的<build></build>标签中加入:

        <plugins>
            <plugin>
                <groupId>org.apache.maven.plugins</groupId>
                <artifactId>maven-compiler-plugin</artifactId>
                <version>2.3.2</version>
                <configuration>
                    <source>1.6</source>
                    <target>1.6</target>
                </configuration>
            </plugin>
        </plugins>

猜你喜欢

转载自krs.iteye.com/blog/2313904