Skip to content

Commit bf676ec

Browse files
committed
FIX: pom.xml builds fat jar again
1 parent 2694c2d commit bf676ec

File tree

1 file changed

+27
-1
lines changed

1 file changed

+27
-1
lines changed

pom.xml

Lines changed: 27 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -111,9 +111,10 @@
111111
</repository>
112112
</repositories>
113113

114-
<!-- to introduce Vlado's favourite COMMITrev file into the released .jar files -->
115114
<build>
116115
<plugins>
116+
<!-- to introduce Vlado's favourite COMMITrev file into the released .jar files -->
117+
<!-- fetches git parameters/status -->
117118
<plugin>
118119
<groupId>pl.project13.maven</groupId>
119120
<artifactId>git-commit-id-plugin</artifactId>
@@ -136,6 +137,7 @@
136137
</includeOnlyProperties>
137138
</configuration>
138139
</plugin>
140+
<!-- creates the COMMITrev tag file -->
139141
<plugin>
140142
<groupId>org.apache.maven.plugins</groupId>
141143
<artifactId>maven-antrun-plugin</artifactId>
@@ -156,6 +158,30 @@
156158
</target>
157159
</configuration>
158160
</plugin>
161+
<!-- creates a fat jar with all dependencies to simply run: java -jar target/far.jar -->
162+
<plugin>
163+
<artifactId>maven-assembly-plugin</artifactId>
164+
<version>3.6.0</version>
165+
<configuration>
166+
<descriptorRefs>
167+
<descriptorRef>jar-with-dependencies</descriptorRef>
168+
</descriptorRefs>
169+
<archive>
170+
<manifest>
171+
<mainClass>net.celltrackingchallenge.measures.util.BgMaskCreator</mainClass>
172+
</manifest>
173+
</archive>
174+
</configuration>
175+
<executions>
176+
<execution>
177+
<id>make-assembly</id>
178+
<phase>package</phase>
179+
<goals>
180+
<goal>single</goal>
181+
</goals>
182+
</execution>
183+
</executions>
184+
</plugin>
159185
</plugins>
160186
</build>
161187
</project>

0 commit comments

Comments
 (0)