Skip to content
This repository was archived by the owner on Nov 10, 2021. It is now read-only.
Julian edited this page Sep 30, 2016 · 10 revisions

How to integrate

<plugin>
    <groupId>org.apache.maven.plugins</groupId>
    <artifactId>maven-shade-plugin</artifactId>
    <version>2.4.3</version>
    <executions>
        <execution>
            <id>libs</id>
            <phase>package</phase>
            <goals>
                <goal>shade</goal>
            </goals>
            <configuration>
                <relocations>
                    <!-- This is just for avoiding problems with plugins which use this library -->
                    <relocation>
                        <pattern>com.alternacraft.aclib</pattern>
                        <shadedPattern>${project.groupId}.${project.artifactId}.ACLIB</shadedPattern>
                    </relocation>
                </relocations>
            </configuration>
        </execution>      
    </executions>
</plugin>

Full example: https://github.com/AlternaCraft/ACLIBExample

Clone this wiki locally