在我的POM,我對maven-compiler-plugin
像如何讓Eclipse從POM中選擇Java 9選項?
<compilerArgs>
<compilerArg>--add-modules</compilerArg>
<compilerArg>java.xml.ws.annotation</compilerArg>
</compilerArgs>
當導入我的項目到Eclipse中,我預計這些選項可以通過Eclipse編譯器自動拾取一些Java 9特定的選項,但是這是不是這樣。
通過Eclipse手動設置模塊選項構建路徑配置不是真正的解決方案,因爲這些設置無法生存Maven |更新項目(Alt + F5)。
我正在使用Eclipse Oxygen.1a。這應該工作嗎?
我相信您希望Eclipse在導入或打開項目時使用您的'pom.xml'配置來構建項目,我非常懷疑這是任何IDE的情況。 – nullpointer