Install project library in maven local repository

This commit is contained in:
Flowsqy 2021-12-27 16:46:03 +01:00
parent 51bee2dd20
commit 2294cce5a0
3 changed files with 112 additions and 110 deletions

View File

@ -25,7 +25,7 @@ To use the API, you need to add the following repository and dependency in your
You can find the javadoc here: https://epicericee.github.io/ShopChest/javadoc/
## Build
Clone this repository and use ``mvn clean package`` or ``mvn clean install``.
Clone this repository and use ``sh lib/install_local_depedencies.sh`` to import local dependencies. Use ``mvn clean package`` or ``mvn clean install``.
After the build succeeded, the ShopChest.jar is found in the ``/target/`` folder.
## Issues

View File

@ -0,0 +1,2 @@
cd ..
mvn -N install:install-file -Dfile=lib/IslandWorld-8.5.jar -DgroupId=pl.gnacik.islandworld -DartifactId=IslandWorld -Dversion=8.5 -Dpackaging=jar -DgeneratePom=true

View File

@ -93,6 +93,7 @@
</repository>
</repositories>
<dependencyManagement>
<dependencies>
<dependency>
<groupId>org.spigotmc</groupId>
@ -161,11 +162,10 @@
<scope>provided</scope>
</dependency>
<dependency>
<groupId>pl.gnacik</groupId>
<groupId>pl.gnacik.islandworld</groupId>
<artifactId>IslandWorld</artifactId>
<version>8.5</version>
<scope>system</scope>
<systemPath>${project.basedir}/lib/IslandWorld-8.5.jar</systemPath>
<scope>provided</scope>
</dependency>
<!-- Only required for build to succeed ? -->
@ -203,7 +203,7 @@
<version>1.18.4-SNAPSHOT</version>
</dependency>
</dependencies>
</dependencyManagement>
<build>
<resources>
<resource>