jueves, 16 de mayo de 2013

m2e-wtp: Get rid of that ugly eclipse:eclipse goal in your maven web perojects.

So, are you tired to going to your command line to run a mvn eclipse:eclipse each time you try a new dependency in your pom.xml?
You just have to install the m2eclipse plugin in your Eclipse, followed by the m2e-wtp plugin. With that you will no longer need to run the eclipse:eclipse goal to get your eclipse accepting your project as a web project. You will just have to import it as a Maven Project.
Just... don't forget to set the wtp plugin in your pom.xml:
      <plugin>
        <groupId>org.apache.maven.plugins</groupId>
        <artifactId>maven-eclipse-plugin</artifactId>
        <configuration>
          <wtpapplicationxml>true</wtpapplicationxml>
          <wtpversion>2.0</wtpversion>
        </configuration>
      </plugin>

No hay comentarios:

Publicar un comentario