Skip to content

How to setup

Zeanon edited this page Oct 24, 2019 · 5 revisions
  1. Place this in your repository-section:
  <!-- TheWarKing Repo -->
  <repository>
    <id>thewarking-public</id>
    <url>http://thewarking.de:8081/repository/Storage/</url>
  </repository>
  1. Place this in your dependency-section:
  <!-- LightningStorage by JavaFactoryDev and Zeanon-->
  <dependency>
    <groupId>de.leonhard</groupId>
    <artifactId>lightningstorage</artifactId>
    <version>2.5</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.2.1</version>
  <executions>
    <execution>
      <phase>package</phase>
      <goals>
        <goal>shade</goal>
      </goals>
    </execution>
  </executions>
  <configuration>
    <relocations>
      <relocation>
        <pattern>de.leonhard</pattern>
        <shadedPattern>yourpackage.yourname.storage</shadedPattern>
      </relocation>
    </relocations>
    <createDependencyReducedPom>false</createDependencyReducedPom>
  </configuration>
</plugin>
Clone this wiki locally