CoreProtect

Discussion in 'Spigot Plugin Development' started by DeKleineKobini, Jul 2, 2016.

  1. Hello,

    I'm currently working on a plugin but I need to use the CoreProtect API.
    I know how to use the API but is there a maven repo for CoreProtect?
     
  2. FormallyMyles

    Supporter

    Doesn't look like it you would have to include it in maven with a local jar (If you don't know how see http://stackoverflow.com/a/22300875)
     
    • Informative Informative x 2
  3. I have this
    Code (Text):
    <dependency>
                <groupId>net.coreprotect</groupId>
                <artifactId>coreprotect</artifactId>
                <version>2.12.0</version>
                <scope>provided</scope>
                <optional>true</optional>
                <systemPath>${project.basedir}/jars/CoreProtect_2.12.0.jar</systemPath>
            </dependency>
    but it doesn't work (it doen't get imported).
     
  4. Serializator

    Supporter

  5. FormallyMyles

    Supporter

    Have you got the jar in that location? And also you need to change scope to system. :)
     
    • Agree Agree x 1
    • Useful Useful x 1
  6. scope to system fixed it, thanks :)
     
    • Agree Agree x 1
  7. Since i also had problems with this, and i'm sure others have also. Here is the Maven Code / Text you can use for CoreProtect as an dependency.

    Code (Text):
    <repositories>
            <repository>
            <id>coreprotect-repo</id>
            <url>http://maven.playpro.com/</url>
        </repository>
    </repositories>

    <dependencies>
        <dependency>
            <groupId>net.coreprotect</groupId>
            <artifactId>coreprotect</artifactId>
            <version>2.14.2</version>
        </dependency>
    </dependencies>
    Hope any of you had use of this.
     
    • Like Like x 2
    • Winner Winner x 1