I am using a frontend-maven-plugin, more info here.
In order to run GRUNT tasks on maven build and, as I am using Eclipse, it builds the Workspace every time I change something in the code.
The problem is that the Eclipse build process executes the maven plugins every time, and it makes the process very slow. So I would like to know how can I skip the maven plugin execution from Eclipse Build workspace. Any ideas?
Thanks in advance,
Yes: You can tell Eclipse to ignore selected Maven plugins in either two ways:
org.eclipse.m2e:lifecycle-mapping
plugin.Check out this example.
To expand on Little Santi's answer, I added this to my POM:
...
</plugins>
<pluginManagement>
<plugins>
<plugin>
<groupId>org.eclipse.m2e</groupId>
<artifactId>lifecycle-mapping</artifactId>
<version>1.0.0</version>
<configuration>
<lifecycleMappingMetadata>
<pluginExecutions>
<pluginExecution>
<pluginExecutionFilter>
<groupId>com.github.eirslett</groupId>
<artifactId>frontend-maven-plugin</artifactId>
<versionRange>1.6</versionRange>
<goals>
<goal>install-node-and-npm</goal>
<goal>npm</goal>
</goals>
</pluginExecutionFilter>
<action>
<ignore />
</action>
</pluginExecution>
</pluginExecutions>
</lifecycleMappingMetadata>
</configuration>
</plugin>
</plugins>
</pluginManagement>
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With