Skip to main content

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

This is a known issue in JDT[1], which also requires some changes in m2e[2]. Until a fix is available, you can try this ugly workaround[3].

[1] https://bugs.eclipse.org/bugs/show_bug.cgi?id=520713 
[2] https://bugs.eclipse.org/bugs/show_bug.cgi?id=529398
[3] https://bugs.eclipse.org/bugs/show_bug.cgi?id=526828#c1


On Tue, Jan 9, 2018 at 8:51 AM, Bruno Freudensprung <bruno.freudensprung@xxxxxxxxx> wrote:

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.


_______________________________________________
m2e-users mailing list
m2e-users@xxxxxxxxxxx
To change your delivery options, retrieve your password, or unsubscribe from this list, visit
https://dev.eclipse.org/mailman/listinfo/m2e-users



--
"Have you tried turning it off and on again" - The IT Crowd
And if that fails, then http://goo.gl/tnBgH5

Back to the top