New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Benchmarking project not working #776

Closed
fergardi opened this Issue May 9, 2018 · 1 comment

Comments

Projects
None yet
2 participants
@fergardi

fergardi commented May 9, 2018

Hello.

I downloaded the benchmarking java project and tried to run the server with maven.

I got this error:

[ERROR] Failed to execute goal on project cometd-java-benchmark-server: Could not resolve dependencies for project org.cometd.java:cometd-java-benchmark-server:jar:3.1.5-SNAPSHOT: Failed to collect dependencies at org.cometd.java:cometd-java-benchmark-common:jar:3.1.5-SNAPSHOT: Failed to read artifact descriptor for org.cometd.java:cometd-java-benchmark-common:jar:3.1.5-SNAPSHOT: Could not find artifact org.cometd.java:cometd-java:pom:3.1.5-SNAPSHOT -> [Help 1]
org.apache.maven.lifecycle.LifecycleExecutionException: Failed to execute goal on project cometd-java-benchmark-server: Could not resolve dependencies for project org.cometd.java:cometd-java-benchmark-server:jar:3.1.5-SNAPSHOT: Failed to collect dependencies at org.cometd.java:cometd-java-benchmark-common:jar:3.1.5-SNAPSHOT

Then I went to https://mvnrepository.com/artifact/org.cometd.java/cometd-java-benchmark-common to search for this package and found that there is no "3.1.5-SNAPSHOT" version.

Finally I tried changing the pom version to "3.1.4" and then compiled but (of course) that gave me another error:

[ERROR] Failed to execute goal org.codehaus.mojo:exec-maven-plugin:1.6.0:exec (default-cli) on project cometd-java-benchmark-server: Command execution failed.: Process exited with an error: 1 (Exit value: 1) -> [Help 1]
org.apache.maven.lifecycle.LifecycleExecutionException: Failed to execute goal org.codehaus.mojo:exec-maven-plugin:1.6.0:exec (default-cli) on project cometd-java-benchmark-server: Command execution failed.

Can you gave me some hints of what is happening?

Thank you.

@sbordet

This comment has been minimized.

Member

sbordet commented May 9, 2018

In order to run the benchmark for SNAPSHOT versions of CometD, you must first build the CometD project itself, as specified here.
I'll make sure that the benchmarks docs explicitly specify this.

Don't use mvnrepository.com, as the official repository for CometD is Maven Central at http://central.maven.org/.

Do this:

$ git clone https://github.com/cometd/cometd.git
$ cd cometd
$ mvn clean install -DskipTests

Then follow the benchmark documentation.

@sbordet sbordet closed this Sep 4, 2018

@sbordet sbordet added this to the 3.1.5 milestone Sep 4, 2018

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment