Skip to content

Commit

Permalink
The built jar can be executed as a CLI program (#28).
Browse files Browse the repository at this point in the history
  • Loading branch information
HansMartinA committed Nov 3, 2024
1 parent 7be4283 commit c6e84ac
Showing 1 changed file with 33 additions and 0 deletions.
33 changes: 33 additions & 0 deletions jamopp.standalone/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,39 @@
</execution>
</executions>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-jar-plugin</artifactId>
<configuration>
<archive>
<manifest>
<addClasspath>true</addClasspath>
<classpathPrefix>libs</classpathPrefix>
<mainClass>tools.mdsd.jamopp.standalone.JaMoPPStandalone</mainClass>
</manifest>
</archive>
</configuration>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-dependency-plugin</artifactId>
<executions>
<execution>
<id>copy-dependencies</id>
<phase>package</phase>
<goals>
<goal>copy-dependencies</goal>
</goals>
<configuration>
<useBaseVersion>true</useBaseVersion>
<overWriteSnapshots>true</overWriteSnapshots>
<overWriteIfNewer>true</overWriteIfNewer>
<outputDirectory>${project.build.directory}/libs</outputDirectory>
<includeScope>runtime</includeScope>
</configuration>
</execution>
</executions>
</plugin>
</plugins>
</build>

Expand Down

0 comments on commit c6e84ac

Please sign in to comment.