Sfoglia il codice sorgente

Create jar-with-dependencies.jar

Sam Jaffe 4 anni fa
parent
commit
a7a12c5438
1 ha cambiato i file con 14 aggiunte e 2 eliminazioni
  1. 14 2
      pom.xml

+ 14 - 2
pom.xml

@@ -57,8 +57,8 @@
       </plugin>
       <plugin>
         <groupId>org.apache.maven.plugins</groupId>
-        <artifactId>maven-jar-plugin</artifactId>
-        <version>3.1.0</version>
+        <artifactId>maven-assembly-plugin</artifactId>
+        <version>2.4</version>
         <configuration>
           <archive>
             <manifest>
@@ -67,7 +67,19 @@
               <mainClass>org.leumasjaffe.recipe.RecipeManager</mainClass>
             </manifest>
           </archive>
+          <descriptorRefs>
+            <descriptorRef>jar-with-dependencies</descriptorRef>
+          </descriptorRefs>
         </configuration>
+        <executions>
+          <execution>
+            <id>make-assembly</id> <!-- this is used for inheritance merges -->
+            <phase>package</phase> <!-- bind to the packaging phase -->
+            <goals>
+              <goal>single</goal>
+            </goals>
+          </execution>
+        </executions>
       </plugin>
     </plugins>
   </build>