diff --git a/ws/Archetypes/mi-maven-archetype-helloworld/pom.xml b/ws/Archetypes/mi-maven-archetype-helloworld/pom.xml index c044519aa84d86607418e7eed0959d7cf6363933..9eaccc6311c0b093e4e8b0358743c979f37fbe78 100644 --- a/ws/Archetypes/mi-maven-archetype-helloworld/pom.xml +++ b/ws/Archetypes/mi-maven-archetype-helloworld/pom.xml @@ -5,7 +5,7 @@ <groupId>de.hdm_stuttgart.mi</groupId> <artifactId>mi-maven-archetype-helloworld</artifactId> - <version>1.4</version> + <version>1.5</version> <packaging>maven-archetype</packaging> diff --git a/ws/Archetypes/mi-maven-archetype-helloworld/src/main/resources/archetype-resources/pom.xml b/ws/Archetypes/mi-maven-archetype-helloworld/src/main/resources/archetype-resources/pom.xml index 94d9ef6c932e79d216df7446c86275b52c950bb0..8d9a9360893e3072390a0c53ba2016eae95470fb 100644 --- a/ws/Archetypes/mi-maven-archetype-helloworld/src/main/resources/archetype-resources/pom.xml +++ b/ws/Archetypes/mi-maven-archetype-helloworld/src/main/resources/archetype-resources/pom.xml @@ -48,6 +48,31 @@ <artifactId>maven-site-plugin</artifactId> <version>3.9.1</version> </plugin> + + <plugin> + <groupId>org.apache.maven.plugins</groupId> + <artifactId>maven-shade-plugin</artifactId> + <version>3.2.4</version> + <configuration> + <transformers> + <transformer + implementation="org.apache.maven.plugins.shade.resource.ManifestResourceTransformer"> + <manifestEntries> + <Main-Class>${package}.App</Main-Class> + <Multi-Release>true</Multi-Release> + </manifestEntries> + </transformer> + </transformers> + </configuration> + <executions> + <execution> + <phase>package</phase> + <goals> + <goal>shade</goal> + </goals> + </execution> + </executions> + </plugin> </plugins> </build> </project>