Deactivate maven-ear-plugin

250 Views Asked by At

The goal ear:ear is automatically attached to the package phase if one builds an ear. I would like to eliminate it. Unfortunately, it has no skip parameter.

How can I "deattach" a goal from a phase?

1

There are 1 best solutions below

0
J Fabian Meier On BEST ANSWER

After I found out the execution id (default-ear), I successfully did the following:

  <plugin>
    <groupId>org.apache.maven.plugins</groupId>
    <artifactId>maven-ear-plugin</artifactId>
    <executions>
      <execution>
        <id>default-ear</id>
        <phase>none</phase>
      </execution>
    </executions>
  </plugin>