Dynamic Web Module 3.0 requires Java 1.6 or newer

eclipse maven apache

在項目的pom.xml的<build></build>標籤中加入:eclipse

        <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->Update Project Configuration,問題解決。maven

相關文章
相關標籤/搜索