Skip to content

Commit 178fa7b

Browse files
committed
sdg-cli: setup fat jars and main class in manifest
1 parent 60c71cd commit 178fa7b

File tree

1 file changed

+30
-0
lines changed

1 file changed

+30
-0
lines changed

sdg-cli/pom.xml

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,36 @@
1313
<maven.compiler.target>11</maven.compiler.target>
1414
</properties>
1515

16+
<build>
17+
<plugins>
18+
<plugin>
19+
<groupId>org.apache.maven.plugins</groupId>
20+
<artifactId>maven-assembly-plugin</artifactId>
21+
<version>3.3.0</version>
22+
<configuration>
23+
<archive>
24+
<manifest>
25+
<addClasspath>true</addClasspath>
26+
<mainClass>tfm.cli.Slicer</mainClass>
27+
</manifest>
28+
</archive>
29+
<descriptorRefs>
30+
<descriptorRef>jar-with-dependencies</descriptorRef>
31+
</descriptorRefs>
32+
</configuration>
33+
<executions>
34+
<execution>
35+
<id>assemble-all</id>
36+
<phase>package</phase>
37+
<goals>
38+
<goal>single</goal>
39+
</goals>
40+
</execution>
41+
</executions>
42+
</plugin>
43+
</plugins>
44+
</build>
45+
1646
<dependencies>
1747
<dependency>
1848
<groupId>commons-cli</groupId>

0 commit comments

Comments
 (0)