Vault

Vault

7M Downloads

Not recognizing vault repository

Andorem opened this issue ยท 1 comments

commented

I am creating a plugin that will hook into vault. I have installed vault.jar into the server plugin folder and added:

< repository >
< id >vault-repo< /id >
< url >http://nexus.theyeticave.net/content/repositories/pub_releases< /url >

Into the plugin's pom.xml, and the given economy code into the main class:

public static Economy economy = null;
private Boolean setupEconomy()
    {
        RegisteredServiceProvider<Economy> economyProvider = getServer().getServicesManager().getRegistration(Economy.class);
        if (economyProvider != null) {
            economy = economyProvider.getProvider();
        }

        return (economy != null);
    }

However, when I try to implement vault's economy, Eclipse shows errors and will not recognize the vault imports or types (ie. "Economy").

commented

SOLVED.

Never mind. I'm just dense. Forgot to add the dependency.

    <dependency>
        <groupId>net.milkbowl.vault</groupId>
        <artifactId>Vault</artifactId>
        <version>LATEST</version>
        <scope>provided< /scope>
    </dependency>