Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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?

like image 910
J Fabian Meier Avatar asked Jan 17 '26 10:01

J Fabian Meier


1 Answers

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>
like image 175
J Fabian Meier Avatar answered Jan 20 '26 02:01

J Fabian Meier



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!