slachiewicz / caliper

Automatically exported from code.google.com/p/caliper
Apache License 2.0
0 stars 0 forks source link

Caliper with Intellij Idea maven Project #130

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. Checkout current caliper 1-0 stable, install into your maven repo
2. Create a simple maven project and add as a dependency caliper
3. Create a simple benchmark and try to run from idea => ClassNotFound

What is the expected output? What do you see instead?
This probably comes from the problem that 

String classPath = System.getProperty("java.class.path"); in line 318 of 
Runner.java returns only C:\...\Intellij Idea \Idea_rt.jar

What version of the product are you using? On what operating system?

Please provide any additional information below.

Original issue reported on code.google.com by edmondo....@gmail.com on 1 Sep 2011 at 2:18

GoogleCodeExporter commented 9 years ago
How are you creating the idea project?  Using idea's maven plugin or maven's 
idea plugin or what?

BTW... I am sad to say that caliper may have any *number* of problems when run 
on Windows right now. Windows support won't be a priority for us but after we 
finish cutting over to the rewrite codebase we will happily accept patches.

Original comment by kevinb@google.com on 1 Sep 2011 at 4:20

GoogleCodeExporter commented 9 years ago

Original comment by kevinb@google.com on 19 Sep 2011 at 6:38

GoogleCodeExporter commented 9 years ago
Caliper declares a dependency on guava-r08 in the maven pom but the ant file 
references the bundled guava-r09.

Adding the jsr305 dependency with the dependency on guava-r09 fixed the build 
problems for me. Here is a diff:

# This patch file was generated by NetBeans IDE
# It uses platform neutral UTF-8 encoding and \n newlines.
--- Base (BASE)
+++ Locally Modified (Based On LOCAL)
@@ -46,10 +46,15 @@
     <dependency>
       <groupId>com.google.guava</groupId>
       <artifactId>guava</artifactId>
-      <version>r08</version>
+      <version>r09</version>
       <scope>compile</scope>
     </dependency>
     <dependency>
+      <groupId>com.google.code.findbugs</groupId>
+      <artifactId>jsr305</artifactId>
+      <version>1.3.9</version>
+    </dependency>
+    <dependency>
       <groupId>com.google.code.java-allocation-instrumenter</groupId>
       <artifactId>java-allocation-instrumenter</artifactId>
       <version>2.0</version>

Original comment by everf...@gmail.com on 25 Sep 2011 at 5:51

GoogleCodeExporter commented 9 years ago

Original comment by kevinb@google.com on 8 Feb 2012 at 9:50

GoogleCodeExporter commented 9 years ago

Original comment by kevinb@google.com on 1 Nov 2012 at 8:32