The maven eclipse plugin is provided for those who have a ready .pom file for a maven project and want to start using eclipse as the IDE for the project.
The command is as simple as running:
mvn eclipse:eclipse
This command have a number of parameters, but one of the most interesting ones would be the one which allows to create a WTP (Web Tools Platform) aware eclipse project.
mvn eclipse:eclipse -Dwtpversion=1.0
This command will create an eclipse project with WTP 1.0 support.
4 comments:
Will this work as well?
<build>
<finalName>test-app</finalName>
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-eclipse-plugin</artifactId>
<configuration>
<wtpversion>1.0</wtpversion>
<buildcommands />
<classpathContainers/>
<projectnatures />
</configuration>
</plugin>
</plugins>
</build>
Besides the mvn capability to create an eclipse .project and .classpath, it is possible to have a maven plugin to run inside Eclipse IDE.
It can be found at codehaus .
Have you tried mvn eclipse:m2eclipse -Dwtpversion=1.5 ???
M2eclipse is also a Eclipse plugin that dynamically loads all the dependencies.
Hi Zemian,
No I haven't, but will give it a try!
Thanks for the tip!
Cheers,
Dani
Post a Comment