Current behavior
I want to add AreaShop as dependency to using the API using maven
I tried using jitpack but it failed
Here is my pom.xml implementation
<repositories>
<repository>
<id>jitpack.io</id>
<url>https://jitpack.io</url>
</repository>
</repositories>
<dependencies>
<dependency>
<groupId>com.github.md5sha256</groupId>
<artifactId>AreaShop</artifactId>
<version>2.7.15</version>
<scope>provided</scope>
</dependency>
</dependencies>
Here is what's happened :
[ERROR] Failed to execute goal org.apache.maven.plugins:maven-compiler-plugin:3.11.0:compile (default-compile) on project {projectName}: Compilation failure: Compilation failure:
[ERROR] {projectPath}/src/main/java/fr/{pluginDir}.java:[12,41] package me.wiefferink.areashop.events.ask does not exist
[ERROR] {projectPath}/src/main/java/fr/{pluginDir}.java:[13,44] package me.wiefferink.areashop.events.notify does not exist
[ERROR] {projectPath}/src/main/java/fr/{pluginDir}.java:[14,44] package me.wiefferink.areashop.events.notify does not exist
[ERROR] {projectPath}/src/main/java/fr/{pluginDir}.java:[15,44] package me.wiefferink.areashop.events.notify does not exist
[ERROR] {projectPath}/src/main/java/fr/{pluginDir}.java:[224,30] cannot find symbol
[ERROR] symbol: class SoldRegionEvent
[ERROR] location: class {pluginNamespace}.{pluginName}.{PluginName}
[ERROR] {projectPath}/src/main/java/fr/{pluginDir}.java:[252,32] cannot find symbol
[ERROR] symbol: class ResoldRegionEvent
[ERROR] location: class {pluginNamespace}.{pluginName}.{PluginName}
[ERROR] {projectPath}/src/main/java/fr/{pluginDir}.java:[280,29] cannot find symbol
[ERROR] symbol: class BuyingRegionEvent
[ERROR] location: class {pluginNamespace}.{pluginName}.{PluginName}
[ERROR] {projectPath}/src/main/java/fr/{pluginDir}.java:[309,33] cannot find symbol
[ERROR] symbol: class DeletedRegionEvent
[ERROR] location: class {pluginNamespace}.{pluginName}.{PluginName}
[ERROR] -> [Help 1]
[ERROR]
[ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch.
[ERROR] Re-run Maven using the -X switch to enable full debug logging.
[ERROR]
[ERROR] For more information about the errors and possible solutions, please read the following articles:
[ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/MojoFailureException
I tried a second time by changing dependency by :
<dependency>
<groupId>com.github.md5sha256.AreaShop</groupId>
<artifactId>areashop</artifactId>
<version>2.7.15</version>
<scope>provided</scope>
</dependency>
But got this :
[ERROR] Failed to execute goal on project {projectName}: Could not resolve dependencies for project {pluginNamespace}:{pluginName}:jar:1.0.1: The following artifacts could not be resolved: com.github.md5sha256.AreaShop:areashop:jar:2.7.15 (absent), com.sk89q.worldedit:worldedit-core:jar:7.2.15 (absent), com.sk89q.worldedit:worldedit-bukkit:jar:7.2.15 (absent), com.sk89q.worldguard:worldguard-core:jar:7.0.9 (absent), com.sk89q.worldguard:worldguard-bukkit:jar:7.0.9 (absent), me.wiefferink:platform-interface:jar:2.7.15 (absent), me.wiefferink:paper:jar:2.7.15 (absent), me.wiefferink:bukkit-modern:jar:2.7.15 (absent): Could not find artifact com.github.md5sha256.AreaShop:areashop:jar:2.7.15 in jitpack.io (https://jitpack.io) -> [Help 1]
[ERROR]
[ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch.
[ERROR] Re-run Maven using the -X switch to enable full debug logging.
[ERROR]
[ERROR] For more information about the errors and possible solutions, please read the following articles:
[ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/DependencyResolutionException
I tried by building it myself and storing it in my mavenLocalRepo it works fine
My plugin will not being executed on my own machine so i need to import it from a public repository to make my plugin usable outside a local environment without having to build a local maven repo.
Desired behavior
I would like have a solution to using the AreaShop api through a public repo.
Your environment
- Server platform (Bukkit, Spigot, etc.): Paper
- Server version: 1.20.2
- AreaShop version: 2.7.15
Your config files
x