Maven Shade Plugin

23-04-2015

Maven Shade plugin usage:

<plugin>
    <groupId>org.apache.maven.plugins</groupId>
    <artifactId>maven-shade-plugin</artifactId>
    <version>1.7.1</version>
    <executions>
        <execution>
            <phase>package</phase>
            <goals>
                <goal>shade</goal>
            </goals>
        </execution>
    </executions>
    <configuration>
        <shadedArtifactAttached>true</shadedArtifactAttached>
        <finalName>Subversion-Updater</finalName>
        <transformers>
            <transformer
                implementation="org.apache.maven.plugins.shade.resource.ManifestResourceTransformer">
                <mainClass>com.codesenior.subversion.service.Main</mainClass>
            </transformer>
        </transformers>
    </configuration>
</plugin>

© 2019 All rights reserved. Codesenior.COM