简体   繁体   English

MAVEN-添加第三方软件

[英]MAVEN - add 3rd party software

Is there a way to set maven up to make it possible to use 3rd party software? 有没有办法设置Maven以使其能够使用第三方软件? 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. 我试图将依赖的Spigot(minecraft服务器jar)添加到我的项目中,但是我想和一些朋友一起使用它,并且如果我们中的一个人决定更改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? 但是现在我必须对Maven做些事情,但是我不知道怎么做? 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 我喜欢Maven的想法,但是如果这不可能,那么对于我想要的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>

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

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