No Java classes available in tycho project within eclipse #1629
-
Hi to all, I have a tycho build, which is working in commandline (means mvn verify, mvn install and mvn eclipse:eclipse works like a charme). |
Beta Was this translation helpful? Give feedback.
Replies: 8 comments 16 replies
-
Can I ask, why do you remove .project and .classpath. The 2 files that have this info/configuration for eclipse? |
Beta Was this translation helpful? Give feedback.
-
Coming from idea and gradle I thought this is the way to go. Because in this scenario buildship plugin recreates the files. So is the right way here to create .project and .classpath with mvn and import as mvn project as second step? |
Beta Was this translation helpful? Give feedback.
-
Tycho projects are usually Eclipse PDE projects first, and most of PDE metadata is stored in .project and .classpath. Tycho is MANIFEST-first, you'd rather actually keep the .project and .classpath and use Tycho pom-less which is capable of dynamically generating the pom files (so you don't have to store them in your Git repo). |
Beta Was this translation helpful? Give feedback.
-
Ok, thanks for all the feedback. I will try it out. Maybe a user documentation at a prominent place would be nice? Or - if yet available - a link in the github README.md. If available and I didn't see, then sorry about me |
Beta Was this translation helpful? Give feedback.
-
What has been said is all correct, but I want to add that recently the previously separate Tycho-Connector was migrated to M2E TLDR; unless your project requires special If you are interested you can try out the latest M2E 2.1.0 snapshot at: If there is something missing and you think it is a general issue, please open a dedicated issue at Eclipse M2E and consider to contribute a corresponding patch. :) |
Beta Was this translation helpful? Give feedback.
-
Imho one of the problems of Eclipse is that it hides Maven. You tend to forget about it with all the autoconfiguration. Also some parts of Tycho extract info from Eclipse-first configuration files, but that isn't obvious. I prefer to work directly with Maven and that's why it has been a mission for me to get IDEA working with Tycho customizations. |
Beta Was this translation helpful? Give feedback.
-
@moley I think we have diverged a bit from the original topic. For your particular case, if you think things can be improved it would be best to share an example that reproduces the problem and head over to m2eclipse what actually do the maven > eclipse conversion here. |
Beta Was this translation helpful? Give feedback.
-
Yes, sorry for starting this discussion. Didn't want to blame or grumble. |
Beta Was this translation helpful? Give feedback.
Tycho projects are usually Eclipse PDE projects first, and most of PDE metadata is stored in .project and .classpath. Tycho is MANIFEST-first, you'd rather actually keep the .project and .classpath and use Tycho pom-less which is capable of dynamically generating the pom files (so you don't have to store them in your Git repo).
The Eclipse-first approach works more easily than the Maven-first approach for PDE projects, both in the IDE and in Tycho.