Details
-
Improvement
-
Status: Closed
-
Major
-
Resolution: Won't Fix
-
None
-
None
-
None
Description
Hi,
in .project file, project natures are declared as follows:
<projectnatures> <projectnature>org.eclipse.jdt.core.javanature</projectnature> <projectnature>org.eclipse.wst.common.project.facet.core.nature</projectnature> <projectnature>org.eclipse.wst.common.modulecore.ModuleCoreNature</projectnature> <projectnature>org.eclipse.jem.workbench.JavaEMFNature</projectnature> <projectnature>org.springframework.ide.eclipse.core.springnature</projectnature> </projectnatures>
Inside my POM file, when configuring maven-eclipse-plugin, I can use the attribute <additionalProjectnatures> as follows:
<additionalProjectnatures> <projectnature>org.springframework.ide.eclipse.core.springnature</projectnature> </additionalProjectnatures>
It works well, but it always adds the item at the end of all <projectnature> elements. It would be nice to provide the possibility to insert this project nature at the beginning. For instance, we could add an insert attribute like this:
<additionalProjectnatures insert="start">
or a subtag:
<additionalProjectnatures> <insertAtFirst /> ... </additionalProjectnatures>
Having the additional nature at first is only way to work with some of the Eclipse decorators (see this issue for instance: https://issuetracker.springsource.com/browse/STS-2938 )