Created
August 30, 2015 09:54
-
-
Save aarchilla84/826ce1b76e25b81b9754 to your computer and use it in GitHub Desktop.
Maven Shade Plugin
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<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