3

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?

J Fabian Meier
  • 33,516
  • 10
  • 64
  • 142

1 Answers1

5

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>
J Fabian Meier
  • 33,516
  • 10
  • 64
  • 142