- eclipse maven
- 在项目的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->Update Project Configuration,问题解决。
解决“Dynamic Web Module 3.0 requires Java 1.6 or newer.”错误
猜你喜欢
转载自blog.csdn.net/hanshanyunhai/article/details/80277947
今日推荐
周排行