How do I add a "dependency" in NetBeans? (iConomy)

Discussion in 'Plugin Development' started by RastaLulz, Aug 9, 2011.

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

    RastaLulz

    Hello,

    I'm a newbie when it comes to Bukkit, and JAVA in general. However, I have made quite a bit of progress with my plugin, but I am ready to integrate iConomy into it. But my problem is, I don't know how to add the iConomy jar as a "dependency" within my plugin, so that I can use it. I had the Bukkit one added via dinnerbone's PluginGenerator, so I'm a bit clueless.

    [​IMG]

    Sorry if my terminology is completely wrong.
     
  2. Offline

    Tster

    Add it in the same way you add the craftbukkit/bukkit library... I think
     
  3. Offline

    RastaLulz

    As I said, I used the Plugin Genertor that dinnerbone made, which added it automatically. Therefore I don't know how to do it on my own.

    I've googled, searched, etc and can't figure it out.
     
  4. Offline

    Tster

    Sorry, try right clicking the project folder and see if there is anything under prefrences/options
     
  5. Offline

    RastaLulz

    Yes, there's pom.xml:
    PHP:
    <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>me.rastalulz.plugins.signxxx</groupId>
        <
    artifactId>SignXXX</artifactId>
        <
    version>1.0</version>
        <
    name>SignXXX</name>
        <
    repositories>
            <
    repository>
                <
    id>bukkit-repo</id>
                <
    url>http://repo.bukkit.org/artifactory/repo</url>
            
    </repository>
        </
    repositories>
        <
    build>
            <
    plugins>
                <
    plugin>
                    <
    groupId>org.apache.maven.plugins</groupId>
                    <
    artifactId>maven-compiler-plugin</artifactId>
                    <
    version>2.0.2</version>
                    <
    configuration>
                        <
    source>1.5</source>
                        <
    target>1.5</target>
                    </
    configuration>
                </
    plugin>
            </
    plugins>
        </
    build>
        <
    dependencies>
            <
    dependency>
                <
    groupId>org.bukkit</groupId>
                <
    artifactId>bukkit</artifactId>
                <
    version>0.0.1-SNAPSHOT</version>
                <
    type>jar</type>
                <
    scope>compile</scope>
            </
    dependency>
            <
    dependency>
                <
    groupId>org.avaje</groupId>
                <
    artifactId>ebean</artifactId>
                <
    version>2.7.3</version>
                <
    type>jar</type>
                <
    scope>provided</scope>
            </
    dependency>
        </
    dependencies>
    </
    project>
     
  6. Offline

    instipod

    Right click on your project with the Cup Icon. Click Properties. Go to Libraries. Tab Compile. Add JAR/Folder. Select File. OK. Done.

    -Long Time NetBeans Fan :)
     
Thread Status:
Not open for further replies.

Share This Page