简体   繁体   中英

MAVEN - add 3rd party software

Is there a way to set maven up to make it possible to use 3rd party software? I am trying to add the dependecy Spigot (minecraft server jar) to my project, but I want to work on it with some friends, and I want it too automatically update, if one of us decides to change the pom.xml.

So what I have next is:

<repositories>
    <repository>
        <id>spigot-repo</id>
        <url>https://hub.spigotmc.org/nexus/content/groups/public/</url>
    </repository>
</repositories>

and

<dependencies>
    <dependency>
        <groupId>org.bukkit</groupId>
        <artifactId>bukkit</artifactId>
        <version>1.9-SNAPSHOT</version>
    </dependency>
</dependencies>

but now I have to do something with maven, but I have no clue how? Isn't there a way so it will automatically install it from that website I have put at the repository thing?

I liked the idea of maven, but if this is not possible it is kinda useless for what I want XD

I hope someone knows how it will automatically update it, because for all I have searched I got nothing :/

Try the below option, that might help you to update the snapshot on daily basis. Not sure what other options are, you might want to check on that sometime.

<repositories>
    <repository>
        <id>spigot-repo</id>
        <url>https://hub.spigotmc.org/nexus/content/groups/public/</url>
            <snapshots>
                <enabled>true</enabled>
                <updatePolicy>daily</updatePolicy>
            </snapshots>
    </repository>
</repositories>

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM