How to SKIP a maven plugin execution from Eclipse Build Workspace
eclipse, gruntjs, java, maven
Solution
Yes: You can tell Eclipse to ignore selected Maven plugins in either two ways:
- From Eclipse: Open Window > Preferences > Maven > Lifecycle mappings.
- From Maven: Add to your POM a `org.eclipse.m2e:lifecycle-mapping` plugin.
Check out this example.
Problem
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,