Search code examples
eclipsemavenm2eclipsetycho

Tycho projects without Java code have Java nature in Eclipse


I have imported my Tycho project in Eclipse using m2eclipse and I have the following issue: Tycho adds the Java nature to eclipse-plugin projects that don't have any Java code, for example the help plugin. It's not a big deal, but I find it annoying.

Is there any way to disable this?


Solution

  • Tycho doesn't define a separate packaging type for Eclipse plug-ins without code.

    So if the Tycho Project Configurator, i.e. the m2eclipse extension for Tycho, wanted to omit the Java nature for eclipse-plugin projects, it could only do so after scanning the entire project for *.java files. And even then it would not be clear if the project does not contain Java code, or simply not yet contain Java code.

    So, having the Java nature on all eclipse-plugin projects is a simple and robust choice that makes sense IMHO.