Search code examples
eclipsemaven-2eclipse-pluginmaven-eclipse-plugin

Can maven eclipse plugin to generate artifacts so that src/main is on top of src/test?


When I generate eclipse artifacts, Eclipse shows the source folder in this order.

src/test/java src/test/resources src/main/java src/main/resources

I would prefer,

src/main/java src/main/resources src/test/java src/test/resources

Thanks in advance!


Solution

  • I'm not aware of any configuration parameter in the maven-eclipse-plugin that would allow to tweak the ordering of classpathentry in the generated .classpath.

    Assuming this is what Eclipse uses, changing the order would require patching the plugin.

    Another option would be to use m2eclipse which gives you what you're looking for out of the box.