title: Build Spring Boot fat JAR using JIB
body: <p>I have a multi-modules project from which I build spring boot apps using Jib. I understood that fat JAR into container prevents building image efficiently (<a href="https://phauer.com/2019/no-fat-jar-in-docker-image/" rel="nofollow noreferrer">see</a>) but one particular module needs to be packaged into a fat JAR file. As I would like to keep the same building tool for the whole multi-modules project, <strong>is it possible to package fat jar using Jib?</strong></p>
  <p>I already tried the <code>repackage</code> goal</p>
  <pre><code>&lt;plugin&gt;
      &lt;groupId&gt;org.springframework.boot&lt;/groupId&gt;
      &lt;artifactId&gt;spring-boot-maven-plugin&lt;/artifactId&gt;
      &lt;version&gt;2.3.5.RELEASE&lt;/version&gt;
      &lt;executions&gt;
          &lt;execution&gt;
              &lt;goals&gt;
                  &lt;goal&gt;repackage&lt;/goal&gt;
              &lt;/goals&gt;
          &lt;/execution&gt;
      &lt;/executions&gt;
  &lt;/plugin&gt;
  </code></pre>
  <p>that is packaging the app such as</p>
  <pre><code>app
  ├── classpath
  │   └── import-metadata-service-0.0.1-SNAPSHOT.original.jar
  └── libs
      ├── HdrHistogram-2.1.12.jar
      ├── LatencyUtils-2.0.3.jar
      ├── apache-jena-libs-3.13.0.pom 
      ...
  </code></pre>