Skip to content

Commit 2937e48

Browse files
committed
Let "mvn exec:java" run the project's main class
This works by mapping the SciJava main-class property to the exec-maven-plugin's exec.mainClass user property.
1 parent 9b5494f commit 2937e48

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

pom.xml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -255,6 +255,9 @@
255255
<releaseProfiles>sonatype-oss-release</releaseProfiles>
256256
<sonatype-oss-repository>https://s01.oss.sonatype.org</sonatype-oss-repository>
257257

258+
<!-- Let "mvn exec:java" launch the project's main class. -->
259+
<exec.mainClass>${main-class}</exec.mainClass>
260+
258261
<!-- Plugin versions -->
259262

260263
<!-- Core Maven plugins -->

0 commit comments

Comments
 (0)