How to do it...

  1. Create an uber-JAR (shaded JAR) by adding the Maven shade plugin to the pom.xml file, as shown here:

Refer to the pom.xml file in this book's GitHub repository for more information: https://github.com/PacktPublishing/Java-Deep-Learning-Cookbook/blob/master/10_Developing%20applications%20in%20distributed%20environment/sourceCode/cookbookapp/pom.xml. Add the following filter to the Maven configuration:

<filters>
<filter>
<artifact>*:*</artifact>
<excludes>
<exclude>META-INF/*.SF</exclude>
<exclude>META-INF/*.DSA</exclude>
<exclude>META-INF/*.RSA</exclude>
</excludes>
</filter>
</filters>
  1. Hit the Maven command to build an uber-JAR for the project:
mvn package -DskipTests
..................Content has been hidden....................

You can't read the all page of ebook, please click here login for view all page.
Reset