Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
这是我的设置:
已安装 JDK 1.5 和 JDK 1.6,JAVA_HOME 指向 JDK 1.6
pom.xml 使用 maven-compiler-plugin<source>1.5</source>和<target>1.5</target>
<source>1.5</source>
<target>1.5</target>
mvn --version显示 Java 版本:1.6.0_06
mvn --version
Maven 2.2.1
Maven 2.2.1 使用此配置创建文件版本为 50.0 的类文件是否正确?
如果我正确理解 Maven,它只是意味着它在 1.6 运行时上运行。pom 中的设置应确定生成的类文件格式。