Compile in Eclipse
nadiamov opened this issue · comments
Hi,
I am trying to run the examples of the last distribution version of Learnlib 0.12.0 and the classes which refer to "ExtensibleLStarDFABuilder", "DTLearnerMealyBuilder" etc.. can not be found. Do you know what could be the issue?
Thank you a lot in advance,
Nadia
Do you have installed a maven plugin in eclipse or a maven installation on the system and called mvn eclipse:eclipse
on the command line and then imported the project to eclipse?
Unfortunately, usage of the Maven Eclipse plugin results in build which differ from Maven. In your case, the problem is that Eclipse expects annotation processors to be manually enabled, instead of just loading all available ones that can be found on the build classpath (as javac
or mvn
would do). To close this gap between Eclipse and Maven, you need the m2e-apt plugin for Eclipse. After installing, make sure to configure it correctly by going to Preferences > Maven > Annotation Processing, and select "Automatically configure JDT annotation processing" (or something like that, cannot look it up right now). A full rebuild may be required, but the problem should disappear.
Thank you so much! Everything works now :)