Skip to content

Commit 4d02d18

Browse files
adding main class to jar manifest
1 parent eaacc55 commit 4d02d18

1 file changed

Lines changed: 17 additions & 0 deletions

File tree

pom.xml

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,4 +22,21 @@
2222
<scope>test</scope>
2323
</dependency>
2424
</dependencies>
25+
26+
<build>
27+
<plugins>
28+
<plugin>
29+
<groupId>org.apache.maven.plugins</groupId>
30+
<artifactId>maven-jar-plugin</artifactId>
31+
<version>3.4.1</version>
32+
<configuration>
33+
<archive>
34+
<manifest>
35+
<mainClass>com.jdoe.App</mainClass>
36+
</manifest>
37+
</archive>
38+
</configuration>
39+
</plugin>
40+
</plugins>
41+
</build>
2542
</project>

0 commit comments

Comments
 (0)