Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
[m2e-users] Java 9 and JUnit problem

Hello,

 

I am trying to import a very simple Java 9 Maven project with Eclipse Oxygen 2 (bundled with m2eclipse 1.8.2) and I am facing the following issue: Eclipse can’t seem to find JUnit classes. It looks like m2eclipse is only relying in the module-path to compile src/test/java.

 

This very simple project is exhibiting that behavior (README.md is containing code snippets and a screenshot):

https://github.com/bfreuden/java9-m2e-demo

 

According to these links, I have the impression that my project is correct and that Maven compiler plugin is using module-path to compile src/main and class-path to compile src/test:

https://stackoverflow.com/a/47148586/4900484

https://stackoverflow.com/questions/41366582/where-should-i-put-unit-tests-when-migrating-a-java-8-project-to-jigsaw#comment69959520_41370766

 

Am I doing something wrong here?

Thank you for any advice,

 

Best regards,

 

Bruno.


Back to the top