ltearno / pom-explorer

A tool to aid managing lots of maven projects
MIT License
371 stars 65 forks source link

missing classes #9

Closed wimmon closed 8 years ago

wimmon commented 8 years ago

Hello, I downloaded the zip file of the master branch but when importing it into my eclipse, I have a few errors on not existing classes. They are not in the imports, so I assume they should be in the same package. Probably I missed something? Can you check this? Thank you. Kr, Wim

missing classes "BuilderAutoThreaded " , MavenBuildTaskAutoThreaded , ==Errors========

BuilderAutoThreaded cannot be resolved to a type WorkingSession.java /pom-explorer/src/main/java/fr/lteconsulting/pomexplorer line 45 Java Problem BuilderAutoThreaded cannot be resolved to a type WorkingSession.java /pom-explorer/src/main/java/fr/lteconsulting/pomexplorer line 45 Java Problem BuilderAutoThreaded cannot be resolved to a type WorkingSession.java /pom-explorer/src/main/java/fr/lteconsulting/pomexplorer line 51 Java Problem BuilderAutoThreaded cannot be resolved to a type WorkingSession.java /pom-explorer/src/main/java/fr/lteconsulting/pomexplorer line 95 Java Problem BuilderAutoThreaded cannot be resolved to a type WorkingSession.java /pom-explorer/src/main/java/fr/lteconsulting/pomexplorer line 100 Java Problem MavenBuildTaskAutoThreaded cannot be resolved to a type Builder.java /pom-explorer/src/main/java/fr/lteconsulting/pomexplorer line 270 Java Problem MavenBuildTaskAutoThreaded cannot be resolved to a type Builder.java /pom-explorer/src/main/java/fr/lteconsulting/pomexplorer line 270 Java Problem ProjectsWatcherAutoThreaded cannot be resolved to a type WorkingSession.java /pom-explorer/src/main/java/fr/lteconsulting/pomexplorer line 43 Java Problem

ltearno commented 8 years ago

Hello,

Those files are generated on the fly through a Java processor.

The java processor is in the project fr.lteconsulting:autothreaded:1.0-SNAPSHOT which the pom file is located in the processor directory.

So first, this project should not be opened in Eclipse because if it is opened, Eclipse won't trigger the generator that is in this project (that's an eclipse limitation).

Then eclipse needs the jar from the authreaded project. For this to happen, two things must be done :

So to resume :

Here is a screenshot of the settings dialog :

image

And a screenshot of the project opened on Eclipse :

image

wimmon commented 8 years ago

Hello Thanks for the answer. I succeeded to get it running. Now I can explore it :-)

ltearno commented 8 years ago

Cool !

If you have time, maybe you could try the dev branch and tell me what you think of the new UI (still in progress)