javamavenmaven-ear-plugin

Deactivate maven-ear-plugin


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?


Solution

  • 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>