sandro augusto sandro augusto - 3 years ago 159
Java Question

How to SKIP a maven plugin execution from Eclipse Build Workspace

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,

Answer Source

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.

Recommended from our users: Dynamic Network Monitoring from WhatsUp Gold from IPSwitch. Free Download