How to compile ELKI project with Maven

2019-12-16 19:56发布

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:

enter image description here

1条回答
家丑人穷心不美
2楼-- · 2019-12-16 20:35

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.

查看更多
登录 后发表回答