2.6版本的Jackrabbit parent POM清楚地表明使用Java 6編譯。
相關章節粘貼下面
<plugin>
<artifactId>maven-compiler-plugin</artifactId>
<configuration>
<target>1.6</target>
<source>1.6</source>
</configuration>
</plugin>
<!-- Generate aggregate Javadocs -->
<plugin>
<artifactId>maven-javadoc-plugin</artifactId>
<configuration>
<source>1.6</source>
<aggregate>true</aggregate>
<links>
<link>http://docs.oracle.com/javase/6/docs/api/</link>
<link>http://www.day.com/maven/javax.jcr/javadocs/jcr-2.0/</link>
</links>
</configuration>
</plugin>
<!-- JCR-988: IDE plugins -->
<plugin>
<!-- http://maven.apache.org/plugins/maven-idea-plugin/ -->
<artifactId>maven-idea-plugin</artifactId>
<configuration>
<downloadSources>true</downloadSources>
<jdkLevel>1.6</jdkLevel>
</configuration>
</plugin>
感謝。這就是我需要知道的。 –