Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
[m2e-users] How to add a nature automatically using m2e?

I'm using Kepler and m2e 1.4.0.20130601-0317 and found I could not add a nature when I imported the maven project like this:

<build>
  <plugins>
    <plugin>
  <groupId>org.apache.maven.plugins</groupId>
  <artifactId>maven-eclipse-plugin</artifactId>
  <version>2.9</version>
      <configuration>
<additionalProjectnatures>
<projectnature>org.springframework.ide.eclipse.core.springnature</projectnature>
</additionalProjectnatures>
  </configuration>
    </plugin>
  </plugins>
</build>

I remember that it worked in Juno, but it seemed not working any more. No springnature is added unless I run mvn eclipse:eclipse to generate .project and .classpath.

Is something changed recently? Is it possible to add a nature automatically when a project is loaded or run "update maven project..."?

Thanks.

Ben

Back to the top