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/ You can find the javadoc here: https://epicericee.github.io/ShopChest/javadoc/
## Build ## 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. After the build succeeded, the ShopChest.jar is found in the ``/target/`` folder.
## Issues ## 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> </repository>
</repositories> </repositories>
<dependencyManagement>
<dependencies> <dependencies>
<dependency> <dependency>
<groupId>org.spigotmc</groupId> <groupId>org.spigotmc</groupId>
@ -161,11 +162,10 @@
<scope>provided</scope> <scope>provided</scope>
</dependency> </dependency>
<dependency> <dependency>
<groupId>pl.gnacik</groupId> <groupId>pl.gnacik.islandworld</groupId>
<artifactId>IslandWorld</artifactId> <artifactId>IslandWorld</artifactId>
<version>8.5</version> <version>8.5</version>
<scope>system</scope> <scope>provided</scope>
<systemPath>${project.basedir}/lib/IslandWorld-8.5.jar</systemPath>
</dependency> </dependency>
<!-- Only required for build to succeed ? --> <!-- Only required for build to succeed ? -->
@ -203,7 +203,7 @@
<version>1.18.4-SNAPSHOT</version> <version>1.18.4-SNAPSHOT</version>
</dependency> </dependency>
</dependencies> </dependencies>
</dependencyManagement>
<build> <build>
<resources> <resources>
<resource> <resource>