so i’ve got an issue here when i try to use a previously working plugin and after i added a dependancy that someone told me how to do…
[ERROR] Failed to execute goal on project HellOnSponge: Could not resolve dependencies for project HellonSponge:HellOnSponge:jar:0.0.1-SNAPSHOT: Cannot access sponge-maven-repo (http://repo.spongepowered.org/maven) in offline mode and the artifact com.github.Flibio:EconomyLite:jar:commit has not been downloaded from it before. -> [Help 1]
Are you sure your computer is connected to the internet
…ok?
so how do i fix it?
hahahahaha obviously
You’re using maven right?
however i am getting an offline error in the pom…here
and yes i’m using maven
and here is the pom here
Try removing the version tag and see how that works.
nope
still same issue
lol im stupid, use this
<dependency>
<groupId>com.github.Flibio</groupId>
<artifactId>EconomyLite</artifactId>
<version>RELEASE</version>
</dependency>
Ok so that got rid of the offline in there…however it’s still not allowing me to inject the API in the plugin
Do you mean its not allowing you to access the methods inside EconomyLite?
well no i mean it’s telling me that EconomyLite cannot be resolved to a type…so it’s not pulling any information at all
When i do it works fine. Make sure you have downloaded the api as a dependency.
i.e. updated maven dependencies.
how’s that done?
Right click project, Maven-> Update Snapshots. I think. Im an intelliJ guy
ok…so that all may be good but when i type the instuctions he’s given EconomyLiteAPI cannot be resolved still in the actual main class :’(
Can you view the external libraries and see if economy lite is there?
there are no external libraries… just the JRE system library and Maven Dependencies
Inside maven dependencies EconomyLite doesnt show up?