Create fat jar

Fat jars are used by platform to easly share you code with its dependencies put inside. This way it is easier to share your microservices.

Native microservice

Native microservices are using JLupin Platofrm fat jar format. To create it use jlupin-platform-maven-plugin with repackage goal. By default it is bind to package phase and is overwritting original jar. To use it just confiugre plugin as shown below:

[...]
    <build>
        <plugins>
            <plugin>
                <groupId>com.jlupin</groupId>
                <artifactId>jlupin-platform-maven-plugin</artifactId>
                <executions>
                    <execution>
                        <id>jlupin-repackage</id>
                        <goals>
                            <goal>repackage</goal>
                        </goals>
                    </execution>
                </executions>
            </plugin>
        </plugins>
    </build>
[...]

Of course you can configure creation of your fat jar. Go here to see all configuration options.

Servlet

Servlet microservices are using Spring Boot fat jar format. To create it use spring-boot-maven-plugin as described in Spring Boot's docs. Example configuration is shown below:

[...]
    <build>
        <plugins>
            <plugin>
                <groupId>org.springframework.boot</groupId>
                <artifactId>spring-boot-maven-plugin</artifactId>
                <executions>
                    <execution>
                        <goals>
                            <goal>repackage</goal>
                        </goals>
                    </execution>
                </executions>
              </plugin>
        </plugins>
    </build>
[...]

Full documentation can be found here.