Maven “shaded” JAR is prefixed with “original” in the file name

后端 未结 3 1662
南方客
南方客 2020-12-13 08:46

I\'m using the \"shade\" Maven2 plugin to build a monolithic JAR with all Java dependencies bundled together. The relevant section in pom.xml is pretty straigh

3条回答
  •  清歌不尽
    2020-12-13 09:19

    Maven's build steps will create the jar target/artifact-version.jar.

    Then the shade plugin runs. It normally renames that jar to target/original-artifact-version.jar, and gives the shaded JAR the name target/artifact-version.jar.

    However, you're configuring the Shade plugin to use a different name. Unless there's a good reason for that, I'd remove from your configuration, and live with what the Shade plugin wants to give you.

提交回复
热议问题