Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 1 addition & 5 deletions examples/packaging/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -160,15 +160,11 @@ That said, it is possible to create a fat Jar for your Helidon application.

#### Fat Jar Distribution

This example uses the `maven-assembly-plugin` with the `helidon-assembly-extension` to create a fat jar.
Specifically see:
This example uses the `maven-assembly-plugin` to create a fat jar. Specifically see:

1. The `fat-jar` profile in the [pom.xml](./pom.xml) to configure the plugin.
2. The assembly descriptor in [fat-assembly.xml](./src/main/assembly/fat-assembly.xml).

Note that the plugin and descriptor use the `helidon-assembly-extension` which handles merging
of Helidon json metadata that resides in Helidon jar files.

To generate the fat jar:

```shell
Expand Down
8 changes: 0 additions & 8 deletions examples/packaging/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,6 @@

<properties>
<mainClass>io.helidon.examples.packaging.Main</mainClass>
<helidon.build-tools.version>4.0.20</helidon.build-tools.version>
</properties>

<dependencies>
Expand Down Expand Up @@ -109,13 +108,6 @@
</goals>
</execution>
</executions>
<dependencies>
<dependency>
<groupId>io.helidon.build-tools</groupId>
<artifactId>helidon-assembly-extension</artifactId>
<version>${helidon.build-tools.version}</version>
</dependency>
</dependencies>
</plugin>
</plugins>
</build>
Expand Down
10 changes: 8 additions & 2 deletions examples/packaging/src/main/assembly/fat-assembly.xml
Original file line number Diff line number Diff line change
Expand Up @@ -33,10 +33,16 @@

<containerDescriptorHandlers>
<containerDescriptorHandler>
<handlerName>helidon</handlerName>
<handlerName>metaInf-services</handlerName>
</containerDescriptorHandler>
<containerDescriptorHandler>
<handlerName>metaInf-services</handlerName>
<!-- Merge Helidon's meta-data manifest file. -->
<!-- Not strictly required, but more correct and efficient -->
<handlerName>file-aggregator</handlerName>
<configuration>
<filePattern>META-INF/helidon/manifest</filePattern>
<outputPath>META-INF/helidon/manifest</outputPath>
</configuration>
</containerDescriptorHandler>
</containerDescriptorHandlers>

Expand Down