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

218
pom.xml
View File

@ -93,117 +93,117 @@
</repository> </repository>
</repositories> </repositories>
<dependencies> <dependencyManagement>
<dependency> <dependencies>
<groupId>org.spigotmc</groupId> <dependency>
<artifactId>spigot-api</artifactId> <groupId>org.spigotmc</groupId>
<version>1.17.1-R0.1-SNAPSHOT</version> <artifactId>spigot-api</artifactId>
<scope>provided</scope> <version>1.17.1-R0.1-SNAPSHOT</version>
</dependency> <scope>provided</scope>
<dependency> </dependency>
<groupId>com.github.MilkBowl</groupId> <dependency>
<artifactId>VaultAPI</artifactId> <groupId>com.github.MilkBowl</groupId>
<version>1.7</version> <artifactId>VaultAPI</artifactId>
<scope>provided</scope> <version>1.7</version>
</dependency> <scope>provided</scope>
<dependency> </dependency>
<groupId>fr.xephi</groupId> <dependency>
<artifactId>authme</artifactId> <groupId>fr.xephi</groupId>
<version>5.4.0</version> <artifactId>authme</artifactId>
<scope>provided</scope> <version>5.4.0</version>
</dependency> <scope>provided</scope>
<dependency> </dependency>
<groupId>com.plotsquared</groupId> <dependency>
<artifactId>PlotSquared-Core</artifactId> <groupId>com.plotsquared</groupId>
<version>6.2.1</version> <artifactId>PlotSquared-Core</artifactId>
<scope>provided</scope> <version>6.2.1</version>
</dependency> <scope>provided</scope>
<dependency> </dependency>
<groupId>com.github.rlf.uSkyBlock</groupId> <dependency>
<artifactId>uSkyBlock-API</artifactId> <groupId>com.github.rlf.uSkyBlock</groupId>
<version>v2.8.9</version> <artifactId>uSkyBlock-API</artifactId>
<scope>provided</scope> <version>v2.8.9</version>
</dependency> <scope>provided</scope>
<dependency> </dependency>
<groupId>com.wasteofplastic</groupId> <dependency>
<artifactId>askyblock</artifactId> <groupId>com.wasteofplastic</groupId>
<version>3.0.9.4</version> <artifactId>askyblock</artifactId>
<scope>provided</scope> <version>3.0.9.4</version>
</dependency> <scope>provided</scope>
<dependency> </dependency>
<groupId>com.github.TechFortress</groupId> <dependency>
<artifactId>GriefPrevention</artifactId> <groupId>com.github.TechFortress</groupId>
<version>16.17.1</version> <artifactId>GriefPrevention</artifactId>
<scope>provided</scope> <version>16.17.1</version>
</dependency> <scope>provided</scope>
<dependency> </dependency>
<groupId>me.wiefferink</groupId> <dependency>
<artifactId>areashop</artifactId> <groupId>me.wiefferink</groupId>
<version>2.6.0</version> <artifactId>areashop</artifactId>
<scope>provided</scope> <version>2.6.0</version>
</dependency> <scope>provided</scope>
<dependency> </dependency>
<groupId>world.bentobox</groupId> <dependency>
<artifactId>bentobox</artifactId> <groupId>world.bentobox</groupId>
<version>1.17.2</version> <artifactId>bentobox</artifactId>
<scope>provided</scope> <version>1.17.2</version>
</dependency> <scope>provided</scope>
<dependency> </dependency>
<groupId>com.github.IntellectualSites.PlotSquared</groupId> <dependency>
<artifactId>Core</artifactId> <groupId>com.github.IntellectualSites.PlotSquared</groupId>
<version>4.453</version> <artifactId>Core</artifactId>
<scope>provided</scope> <version>4.453</version>
</dependency> <scope>provided</scope>
<dependency> </dependency>
<groupId>com.github.TownyAdvanced</groupId> <dependency>
<artifactId>Towny</artifactId> <groupId>com.github.TownyAdvanced</groupId>
<version>0.97.5.0</version> <artifactId>Towny</artifactId>
<scope>provided</scope> <version>0.97.5.0</version>
</dependency> <scope>provided</scope>
<dependency> </dependency>
<groupId>pl.gnacik</groupId> <dependency>
<artifactId>IslandWorld</artifactId> <groupId>pl.gnacik.islandworld</groupId>
<version>8.5</version> <artifactId>IslandWorld</artifactId>
<scope>system</scope> <version>8.5</version>
<systemPath>${project.basedir}/lib/IslandWorld-8.5.jar</systemPath> <scope>provided</scope>
</dependency> </dependency>
<!-- Only required for build to succeed ? --> <!-- Only required for build to succeed ? -->
<dependency> <dependency>
<groupId>org.projectlombok</groupId> <groupId>org.projectlombok</groupId>
<artifactId>lombok</artifactId> <artifactId>lombok</artifactId>
<version>1.18.22</version> <version>1.18.22</version>
<scope>provided</scope> <scope>provided</scope>
</dependency> </dependency>
<!-- Shaded dependencies -->
<dependency>
<groupId>org.codemc.worldguardwrapper</groupId>
<artifactId>worldguardwrapper</artifactId>
<version>1.2.0-SNAPSHOT</version>
</dependency>
<dependency>
<groupId>org.bstats</groupId>
<artifactId>bstats-bukkit</artifactId>
<version>2.2.1</version>
</dependency>
<dependency>
<groupId>com.zaxxer</groupId>
<artifactId>HikariCP</artifactId>
<version>5.0.0</version>
</dependency>
<dependency>
<groupId>org.slf4j</groupId>
<artifactId>slf4j-jdk14</artifactId>
<version>2.0.0-alpha2</version>
</dependency>
<dependency>
<groupId>org.inventivetalent</groupId>
<artifactId>reflectionhelper</artifactId>
<version>1.18.4-SNAPSHOT</version>
</dependency>
</dependencies>
<!-- Shaded dependencies -->
<dependency>
<groupId>org.codemc.worldguardwrapper</groupId>
<artifactId>worldguardwrapper</artifactId>
<version>1.2.0-SNAPSHOT</version>
</dependency>
<dependency>
<groupId>org.bstats</groupId>
<artifactId>bstats-bukkit</artifactId>
<version>2.2.1</version>
</dependency>
<dependency>
<groupId>com.zaxxer</groupId>
<artifactId>HikariCP</artifactId>
<version>5.0.0</version>
</dependency>
<dependency>
<groupId>org.slf4j</groupId>
<artifactId>slf4j-jdk14</artifactId>
<version>2.0.0-alpha2</version>
</dependency>
<dependency>
<groupId>org.inventivetalent</groupId>
<artifactId>reflectionhelper</artifactId>
<version>1.18.4-SNAPSHOT</version>
</dependency>
</dependencies>
</dependencyManagement>
<build> <build>
<resources> <resources>
<resource> <resource>