]> uap-core.de Git - rssreader.git/commitdiff
add maven-assembly-plugin to create fat jar for the app
authorMike Becker <universe@uap-core.de>
Mon, 25 May 2026 17:50:00 +0000 (19:50 +0200)
committerMike Becker <universe@uap-core.de>
Mon, 25 May 2026 17:50:00 +0000 (19:50 +0200)
rss-application/pom.xml

index 28a172188bbaf7359147dd4b9fe9837e918fe7c5..be2d88918a4f75e3dcba31d0d73bb09f877d4107 100644 (file)
                 <artifactId>maven-surefire-plugin</artifactId>
                 <version>3.5.5</version>
             </plugin>
+            <plugin>
+                <groupId>org.apache.maven.plugins</groupId>
+                <artifactId>maven-assembly-plugin</artifactId>
+                <version>3.8.0</version>
+                <configuration>
+                    <archive>
+                        <manifest>
+                            <mainClass>de.unixwork.rssreader.AppKt</mainClass>
+                        </manifest>
+                    </archive>
+                    <descriptorRefs>
+                        <descriptorRef>jar-with-dependencies</descriptorRef>
+                    </descriptorRefs>
+                </configuration>
+                <executions>
+                    <execution>
+                        <id>make-assembly</id>
+                        <phase>package</phase>
+                        <goals>
+                            <goal>single</goal>
+                        </goals>
+                    </execution>
+                </executions>
+            </plugin>
         </plugins>
     </build>