如何用Maven编译ELKI项目 [英] How to compile ELKI project with Maven

查看:140
本文介绍了如何用Maven编译ELKI项目的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述



最新的ELKI发生故障,开发人员将其固定在GitHub上。



但是,我必须重新编译项目才能使用它。



我已经安装了最新的Java JDK和Maven。但是,构建命令总是以错误结尾:

 错误:找不到或加载主类de.lmu.ifi。这是项目: https://github.com/elki-project/elki 



我正在运行此命令:

  mvn -DskipTests -Dmaven.javadoc.skip = true -P svg,bundle package 

我已经向开发人员发送了大量电子邮件,他说他没有时间帮助我



我相信该软件包有错误,而不是我在做错误。



所以你可以测试让我知道如何构建它?



我正在使用Windows 8.1 x64。



我甚至试过使用Eclipse,它也会出错:



解决方案

不幸的是,我们不用Windows测试;而单个jar选项主要用于发布,因此它不会受到很多关注。我们建立在Linux上,当你注意到它也为你工作。



我们最近看到一些问题弹出Eclipse,Maven和M2E集成。我们的文档构建器(包括 DocumentParameters )需要对所有类进行自省,所以他们需要在构建过程中运行得相当晚;但是Maven(尤其是Eclipse)只能可靠地支持默认构建生命周期。 git存储库包含可能有帮助的另一种解决方法。但通常,如果您修复一个系统/环境上的构建,那么它就会在另一个系统/环境中崩溃。


I have been working on this issue since yesterday.

The latest ELKI has a glitch and the developer fixed it on GitHub.

However, I have to re-compile the project to use it.

I have installed latest Java JDK and Maven. However, the build command always terminates with an error:

Error: Could not find or load main class de.lmu.ifi.dbs.elki.application.internal.DocumentParameters

This is the project: https://github.com/elki-project/elki.

I am running this command:

mvn -DskipTests -Dmaven.javadoc.skip=true -P svg,bundle package

I have sent numerous e-mails to the developer and he said he doesn't have time to help me.

I believe that the package has errors rather than I am doing error.

So you can you test and let me know how to build it?

I'm using Windows 8.1 x64.

I even tried with Eclipse and it gives errors, too:

解决方案

Unfortunately, we don't test with Windows much; and the single-jar option is mostly for releases, so it does not get a whole lot of attention. We built on Linux, and as you noticed it worked there for you, too.

We have recently seen some issues pop up with Eclipse, Maven and M2E integration. Our documentation builders (including DocumentParameters) need to do introspection of all classes, so they need to run quite late in the build process; but Maven (in particular with Eclipse) only supports the default build lifecycle reliably. The git repository contains another workaround that may help. But usually if you fix build on one system/environment, it breaks on another, unfortunately.

这篇关于如何用Maven编译ELKI项目的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆