[英]How to properly compile and install BitQuest Bukkit plugin?
I would like to install the following plugin on my Minecraft Bukkit server ( https://github.com/bitquest/bitquest ).我想在我的 Minecraft Bukkit 服务器上安装以下插件( https://github.com/bitquest/bitquest )。 But for that I have to compile it first.
但为此我必须先编译它。 I tried Maven
mvn package
because I didn't know what make -B jar
meant in the manual.我试过 Maven
mvn package
因为我不知道手册中的make -B jar
是什么意思。 This resulted in a.jar file which then did not work on the server (it issued error messages).这导致了一个 .jar 文件,然后该文件在服务器上不起作用(它发出错误消息)。 I hope you can help me.
我希望你能帮助我。 Kind regards jcjms.
亲切的问候 jcjms。
Manual:手动的:
Building the BitQuest Java Plugin You can build the bitquest Java plugin that you can drop in to a Bukkit server.构建 BitQuest Java 插件您可以构建可以放入 Bukkit 服务器的 bitquest Java 插件。 This will enable all BitQuest features on your server.
这将启用您服务器上的所有 BitQuest 功能。
Java JRE+SDK (Version 1.8) Maven Java JRE+SDK(1.8版) Maven
make -B jar
This will create a BitQuest.jar in the target folder.这将在目标文件夹中创建一个 BitQuest.jar。
Have you tried using IntelliJ/Eclipse to compile it?您是否尝试过使用 IntelliJ/Eclipse 编译它?
Download the sources from src/main and put them into a new project's src folder.从src/main下载源代码并将它们放入新项目的src文件夹中。 Also, I've noticed that the author put the plugin.yml and config.yml into the resources folder.
另外,我注意到作者将plugin.yml和config.yml放入了资源文件夹。 As far as I know, it should just be in the source folder, so move them into the src folder of the project.
据我所知,它应该只是在源文件夹中,所以将它们移动到项目的src文件夹中。 Then compile it (IntelliJ: build artifacts, Eclipse: export) and put it into your server's plugin folder.
然后编译它(IntelliJ:构建工件,Eclipse:导出)并将其放入服务器的插件文件夹中。 If there are no java errors, it should work.
如果没有 java 错误,它应该可以工作。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.