-
Notifications
You must be signed in to change notification settings - Fork 26
How to setup
Leonhard edited this page May 11, 2019
·
5 revisions
- 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>
- Place this in your dependency-section:
<dependency>
<groupId>de.leonhard</groupId>
<artifactId>LightningStorage</artifactId>
<version>1.0</version>
<scope>compile</scope>
</dependency>
- 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>
2020-2022 - SimplixSoftworks