Maven - Stop using <system-path>

Discussion in 'Plugin Development' started by petteyg359, Mar 3, 2011.

Thread Status:
Not open for further replies.
  1. Offline

    petteyg359

    Set up your maven repository properly. Install bukkit-0.0.1-SNAPSHOT.jar where it belongs manually, or even get the source and use maven to build it so it gets put where it belongs. If you're using system-path, something is wrong.

    Your dependency for bukkit should look like this (you can also find this in the ScrapBukkit plugin on GitHub):

    Code:
    <dependency>
      <groupId>org.bukkit</groupId>
      <artifactId>bukkit</artifactId>
      <version>0.0.1-SNAPSHOT</version>
      <type>jar</type>
      <scope>compile</scope>
    </dependency>
    If you don't want to build bukkit from source yourself, you can get the jar file and install it to the maven repo yourself with the following command (run it from the same folder the bukkit jar is in):

    maven install:install-file -DartifactId=bukkit -DgroupId=org.bukkit -Dversion=0.0.1-SNAPSHOT -Dpackaging=jar -Dfile=bukkit-0.0.1-SNAPSHOT.jar

    The same is applicable to any other dependency you have. If you depend on Permissions, install the Permissions jar (just change the filename, groupId, artifactId, and version in the above command).
     
Thread Status:
Not open for further replies.

Share This Page