What is the best way to avoid maven-jar?

后端 未结 9 2224
后悔当初
后悔当初 2020-11-27 05:40

I am using a different plugin (ant4eclipse) to jar my files. What is the best way to avoid the maven-jar plugin from executing?

  • I tried to remove the <
9条回答
  •  旧时难觅i
    2020-11-27 06:09

    As other's have said, it's not possible to turn it off, other than using pom, which turns everything off and is probably not what you want.

    Even though it will generate twice, a working solution is to bind your jar process to the package phase, as that is guaranteed to run after the default. By overwriting the same JAR file, you'll find that yours is used wherever the original would have been.

提交回复
热议问题