0

In my pom.xml file I have the maven-shade-plugin for generating an uber jar. This uber jar has the version of my app in it, such as app-1.0.0-SNAPSHOT.jar. Then, I use the launch4j-maven-plugin to wrap that into an exe file, but to achieve that I have a configuration that looks like this:

<configuration>
    <jar>target/app-1.0.0-SNAPSHOT.jar</jar>

Is there a way to use a variable or placeholder here and not to have to hard-code the filename of the jar?

Pablo Fernandez
  • 279,434
  • 135
  • 377
  • 622

1 Answers1

1

This will be:

${project.build.directory}/${project.build.finalName}.jar

Please see:

Maven project.build.directory

Pablo Fernandez
  • 279,434
  • 135
  • 377
  • 622
lexicore
  • 42,748
  • 17
  • 132
  • 221