Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
[m2e-users] M2Eclipse on projects requiring Java 9 Module Flags / Adds / Exports

I have an M2Eclipse project which requires some of the irritating and seemingly pointless new Java 9 options (--add-modules ... and --add-exports ...) in order to compile.

I have added them to compilerArgs in the pom.xml. But whatever I do to add them in the Eclipse "Is Modular" editor for the JDK Libs in the Build Path, upon any kind of clean or refresh at Eclipse level or Maven project level, they seem to disappear all over again, and the project can never compile successfully because their definitions are missing.

Has anybody figured out how to deal with this problem yet?

Thanks,
Matthew

Back to the top