0

I use maven and I'm getting my jar from building an artifact, and I'm in a need of jar file to looking like "app-1.0.0.jar"

how can I do this?

thank you!

Wiggle
  • 23
  • 4
  • 1
    Due to a [moderator/volunteer strike](https://meta.stackexchange.com/questions/389811/moderator-strike-stack-overflow-inc-cannot-consistently-ignore-mistreat-and?r=Saves_AllUserSaves) I will not be performing any content curation on this question. – James_D Jun 05 '23 at 16:37
  • 1
    How do you assemble your jar? The answer depends on plugin that you use. Anyway, probably you have to specify ${project.name}-${project.version}.jar as an output artefact file name – gdomo Jun 05 '23 at 17:24

1 Answers1

0

The version of the artifact has a dedicated element in the pom.xml file. In your case use this:

<artifactId>app</artifactId>
<packaging>jar</packaging>
<version>1.0.0</version>
Mar-Z
  • 2,660
  • 2
  • 4
  • 16