简体   繁体   English

每个模块的Maven Java版本

[英]Maven java version per module

Want to add java 7 compiled module to existing java 6 compiled maven project. 想要将Java 7编译模块添加到现有的Java 6编译maven项目中。

Anyone knows whether this project structure is supported by: 任何人都知道此项目结构是否受以下方面的支持:

1) Maven 1)Maven
2) Intellij Idea 2)Intellij想法
3) Eclipse 3)日食

Any other thoughts why should (or should not) this be done. 还有其他想法为什么应该(或不应该)这样做。

Yes, this is supported. 是的,这是受支持的。 For each module, in Maven you need to specify the proper compiler source and target versions. 对于每个模块,需要在Maven中指定正确的编译器源和目标版本。 When you import it in IntelliJ it will know. 当您将其导入IntelliJ中时,它将知道。 I'm sure Eclipse will figure it out as well. 我相信Eclipse也会解决这个问题。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM