Maven创建类文件50.0,应该是49.0
这是我的设置:
安装了 JDK 1.5 和 JDK 1.6,JAVA_HOME 指向 JDK 1.6
pom.xml 使用 maven-compiler-plugin 和 < code>
1.5 和 1.5 mvn --version
显示 Java 版本: 1.6.0_06Maven 2.2.1
2.2.1创建的是否正确具有此配置的文件版本 50.0 的类文件?
This is my setup:
JDK 1.5 and JDK 1.6 installed, JAVA_HOME points to JDK 1.6
pom.xml uses maven-compiler-plugin with
<source>1.5</source>
and<target>1.5</target>
mvn --version
displays Java version: 1.6.0_06Maven 2.2.1
Is it correct that Maven 2.2.1 creates class files with file version 50.0 with this configuration?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
如果我对 Maven 的理解正确的话,这只是意味着它运行在 1.6 运行时上。 pom 中的设置应确定生成的类文件格式。
if I understand Maven correctly, it just means it runs on the 1.6 runtime. The settings in the pom should determine the generated classfile format.