Uploaded image for project: 'Maven Eclipse Plugin (RETIRED)'
  1. Maven Eclipse Plugin (RETIRED)
  2. MECLIPSE-734

improve the attribute <additionalProjectnatures>

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Closed
    • Major
    • Resolution: Won't Fix
    • None
    • None
    • Core : .project
    • 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 )

      Attachments

        Activity

          People

            rfscholte Robert Scholte
            michaelisvy Michael Isvy
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: