Solve the "Dynamic Web Module 3.0 requires Java 1.6 or newer." error (transfer)

Reprinted from: http://xiaoyaozjl.iteye.com/blog/1530010

Add to the <build></build> tag of the project's pom.xml: 

        <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>

 

Guess you like

Origin http://10.200.1.11:23101/article/api/json?id=326647528&siteId=291194637