I am using the maven-eclipse-plugin to configure my eclipse workspace with the configure-workspace goal of the plugin.
I need to perform some additional setup within the workspace that standard eclipse plugins do not appear to accomplish. Setup MAVEN_HOME and setup an external build tool for example. I have some corporately built plugins that can perform these tasks. What I would like to do is bind the execution of this plugin to the execution of eclipse:workspace-configure.
I have tried to do this by:
<executions>
<execution>
<goals>
<goal>eclipse:configure-workspace</goal>
</goals>
</execution>
</executions>
But have had no luck. Is this possible?
The goal
eclipse:configure-workspacedoesn’t do much things, it just adds the classpath variable M2_REPO to Eclipse.Not possible, you can only bind a plugin goal to a phase. Your best option is IMO to create an init script that would call the goals sequentially.