Solved Can't attach craftbukkit

Discussion in 'Plugin Development' started by TheEnderCrafter9, Sep 6, 2016.

Thread Status:
Not open for further replies.
  1. I can't attach CraftBukkit.

    Screenshot:
    Show Spoiler


    My pom.xml:

    Show Spoiler

    <project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
    xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
    <modelVersion>4.0.0</modelVersion>
    <groupId>io.github.rookietec9</groupId>
    <artifactId>EnderPlugin</artifactId>
    <build>
    <defaultGoal>clean package</defaultGoal>
    <finalName>${project.name}-${project.version}</finalName>
    <sourceDirectory>${basedir}/src/main/java</sourceDirectory>
    <resources>
    <resource>
    <filtering>true</filtering>
    <targetPath>.</targetPath>
    <directory>${basedir}/src/main/resources/</directory>
    <includes>
    <include>**/*.yml</include>
    </includes>
    </resource>
    </resources>
    <plugins>
    <plugin>
    <groupId>org.apache.maven.plugins</groupId>
    <artifactId>maven-compiler-plugin</artifactId>
    <configuration>
    <source>1.8</source>
    <target>1.8</target>
    </configuration>
    </plugin>
    </plugins>
    </build>
    <repositories>
    <repository>
    <id>spigot-repo</id>
    <url>https://hub.spigotmc.org/nexus/content/repositories/snapshots/</url>
    </repository>
    <repository>
    <id>bukkit-repo</id>
    <url>http://repo.bukkit.org/content/groups/public/</url>
    </repository>
    </repositories>
    <!--Spigot-API -->
    <dependencies>
    <dependency>
    <groupId>org.spigotmc</groupId>
    <artifactId>spigot-api</artifactId>
    <version>1.8.8-R0.1-SNAPSHOT</version>
    <scope>provided</scope>
    </dependency>
    <dependency>
    <groupId>org.bukkit</groupId>
    <artifactId>bukkit</artifactId>
    <version>1.8.8-R0.1-SNAPSHOT</version>
    <scope>provided</scope> <!-- This means don't put bukkit in the plugin because it is on the server -->
    </dependency>
    </dependencies>
    <version>Indev2.6.5</version>
    </project>
    Show Spoiler


    I don't get any errors in eclipse however I can't compile
     
    Last edited: Sep 6, 2016
  2. Offline

    Zombie_Striker

    @TheEnderCrafter9
    Are there any errors? Are there any messages or dialog boxes that may say what the problem is?
     
  3. Offline

    ArsenArsen

    You are referencing libraries outside maven but building with it. Use maven to both manage dependencies AND build.
     
Thread Status:
Not open for further replies.

Share This Page