Eclipse Maven Plugin
The Eclipse Plugin is used to generate Eclipse IDE files (.project, .classpath and the .settings folder) from a POM.
This is based on wcm-io-devops/eclipse-maven-plugin which is a fork of the original Maven Eclipse Plugin which was retired end of 2015 in favor of M2Eclipse.
For more information check out the generated plugin page .
Changes since the original Maven Eclipse Plugin 2.10
Added
- support for test folders
- support for test dependencies, both JAR and project dependencies
- support for the
--release
compiler option - ignore optional compile problems on attached source folders
- additional source folders
- JavaEE 7
- JavaEE 8
- Java 9 to 17
Removed
- all goals except
eclipse
andclean
- AJDT support
- MyEclipse support
- RAD support
To use this in your projects update all your POMs to use
<plugin>
<groupId>com.github.marschall</groupId>
<artifactId>eclipse-maven-plugin</artifactId>
<version>2.12.0</version>
</plugin>
instead of
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-eclipse-plugin</artifactId>
<version>2.10</version>
</plugin>
If you add com.github.marschall
as a pluginGroup to your ${user.home}/.m2/settings.xml
or ${maven.home}/conf/settings.xml
<pluginGroups>
<pluginGroup>com.github.marschall</pluginGroup>
</pluginGroups>
you will be able to use eclipse:eclipse
as a Maven goal directly.