Skip to content

How to setup

Leonhard edited this page May 11, 2019 · 5 revisions
  1. Place this in your repository-section:

Example Pom: https://pastebin.com/eiyRZYyi

    <repository>
        <id>TheWarKing-Public-Storage</id>
        <url>http://thewarking.de:8081/repository/Storage/</url>
    </repository>
  1. Place this in your dependency-section:
    <dependency>
            <groupId>de.leonhard</groupId>
            <artifactId>LightningStorage</artifactId>
            <version>1.0</version>
            <scope>compile</scope>
    </dependency>
  1. Important! Use a shade plugin to make sure that the library is shaded into your final .jar file when your plugin is compiled. The relocation is optional but heavily recommended.
<plugin>
	<groupId>org.apache.maven.plugins</groupId>
	<artifactId>maven-shade-plugin</artifactId>
	<version>3.1.0</version>
	<executions>
		<execution>
			<phase>package</phase>
			<goals>
				<goal>shade</goal>
			</goals>
		</execution>
	</executions>
	<configuration>
		<createDependencyReducedPom>false</createDependencyReducedPom>
		<relocations>
			<relocation>
				<pattern>de.leonhard</pattern>
				<shadedPattern>yourpackage.yourname.storage</shadedPattern>
			</relocation>
		</relocations>
	</configuration>
</plugin>
Clone this wiki locally