解决“Dynamic Web Module 3.0 requires Java 1.6 or newer.”错误

转自:http://xiaoyaozjl.iteye.com/blog/1530010

在项目的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>

 

你可能感兴趣的:(maven)