编译如何强制Maven来编译1.6兼容的源行家并不在Java 1.6
我在Eclipse中的Maven做web应用程序项目。更改web.xml使用3.0版本 - >然后更新配置,现在我不能启动tomcat。 我发现我必须迫使Maven来编译源1.6兼容,并且我要补充
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-compiler-plugin</artifactId>
<configuration>
<source>1.7</source>
<target>1.7</target>
<showDeprecation>true</showDeprecation>
<showWarnings>true</showWarnings>
<executable>${env.JAVA_HOME_7}/bin/javac</executable>
<fork>true</fork>
</configuration>
但在日食有效POM是不可编辑
所以是有一个Maven与Eclipse兼容或者其他方式强制maven编译源码1.6版本?
问题关闭 – simar 2013-02-11 08:46:05