简体   繁体   English

如何使用Maven安装Slick2d?

[英]How do I install Slick2d using maven?

I would like to know how to install Slick2d using maven. 我想知道如何使用Maven安装Slick2d。 I have already installed Lwjgl with maven but I also need Slick2d. 我已经用Maven安装了Lwjgl,但我也需要Slick2d。

You can just add a dependency in maven, it should work the same way u set your maven up with lwjgl. 您可以在maven中添加一个依赖项,它的工作方式与您使用lwjgl设置maven的方式相同。 You just have to open your pom.xml which is created by maven, click on dependencies and add the libraries you need: this is how it looks at my project for example: 您只需要打开由maven创建的pom.xml,单击依赖项并添加所需的库:例如,这就是我的项目的样子:

When clicking add, you just search for slick2d and add the stuff you need. 单击添加时,您只需搜索slick2d并添加所需的内容。

http://fs1.directupload.net/images/150113/ut6ccpii.jpg (I can't link the image directly cause i dont have enough reputation lol, sorry, Note you don´t need the kyronet stuff) http://fs1.directupload.net/images/150113/ut6ccpii.jpg (我无法直接链接图像,因为我没有足够的声誉,哈哈,对不起,请注意,您不需要使用kyronet的东西)

Hope this helps! 希望这可以帮助!

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

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