Skip to content

Instantly share code, notes, and snippets.

@aarchilla84
Created August 30, 2015 09:54
Show Gist options
  • Save aarchilla84/826ce1b76e25b81b9754 to your computer and use it in GitHub Desktop.
Save aarchilla84/826ce1b76e25b81b9754 to your computer and use it in GitHub Desktop.
Maven Shade Plugin
<build>
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-shade-plugin</artifactId>
<version>2.4.1</version>
<executions>
<!-- Ejecutar el goal "shade" en la fase de empaquetado "package" -->
<execution>
<phase>package</phase>
<goals>
<goal>shade</goal>
</goals>
<configuration>
<transformers>
<!-- Se puede especificar la clase que contiene el método "main" para inluirlo en el Manifest
de la aplicación i así hacerla ejecutable
-->
<transformer implementation="org.apache.maven.plugins.shade.resource.ManifestResourceTransformer">
<mainClass>com.bitsmi.yggdrasil.launcher.MainProgram</mainClass>
</transformer>
</transformers>
</configuration>
</execution>
</executions>
</plugin>
</plugins>
</build>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment