How to compile ELKI project with Maven

假装没事ソ 提交于 2019-12-13 08:28:27

问题


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:


回答1:


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.



来源:https://stackoverflow.com/questions/37572519/how-to-compile-elki-project-with-maven

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!