bedrin / jsonde

Profiler and reverse engineering tool for java
https://bedrin.github.io/jsonde/
BSD 3-Clause "New" or "Revised" License
90 stars 25 forks source link

CentOS `mvn compile` Build Error #1

Open ranchodeluxe opened 9 years ago

ranchodeluxe commented 9 years ago

Hello, I'm trying to build jsonde. I see you have tests but I have no idea if tests are currently passing from looking at your README. It seems like the artifact jar does not exist. I'm wondering if maybe there is a dependent build order I should follow?

I'm on CentOS6 and here's my java and maven versions:

[root@task jsonde]# mvn -version
Apache Maven 3.0.5 (r01de14724cdef164cd33c7c8c2fe155faf9602da; 2013-02-19 05:51:28-0800)
Maven home: /usr/local/apache-maven
Java version: 1.6.0_34, vendor: Sun Microsystems Inc.
Java home: /usr/lib/jvm/java-1.6.0-openjdk-1.6.0.34.x86_64/jre
Default locale: en_US, platform encoding: UTF-8
OS name: "linux", version: "2.6.32-431.20.3.el6.x86_64", arch: "amd64", family: "unix"

[root@task jsonde]# java -version
java version "1.6.0_34"
OpenJDK Runtime Environment (IcedTea6 1.13.6) (rhel-1.13.6.1.el6_6-x86_64)
OpenJDK 64-Bit Server VM (build 23.25-b01, mixed mode)
[root@task jsonde]# 

The build error I'm getting is:

[INFO] Reactor Summary:
[INFO] 
[INFO] jSonde Product .................................... SUCCESS [0.142s]
[INFO] jSonde Utilities .................................. SUCCESS [0.901s]
[INFO] jSonde API ........................................ SUCCESS [0.060s]
[INFO] jSonde Profiler ................................... SUCCESS [0.029s]
[INFO] jSonde Instrumentation ............................ SUCCESS [0.051s]
[INFO] jSonde Agent ...................................... SUCCESS [0.033s]
[INFO] jSonde Client ..................................... SUCCESS [0.026s]
[INFO] jSonde Integration Tests .......................... SUCCESS [0.039s]
[INFO] jSonde GUI ........................................ SUCCESS [0.093s]
[INFO] jSonde Deployment ................................. FAILURE [0.671s]
[INFO] jSonde Installer .................................. SKIPPED
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 2.347s
[INFO] Finished at: Tue Feb 24 12:21:11 PST 2015
[INFO] Final Memory: 9M/137M
[INFO] ------------------------------------------------------------------------

[ERROR] Failed to execute goal org.apache.maven.plugins:maven-dependency-plugin:2.1:copy-dependencies (copy-dependencies-jars) on project jsonde.deployment: Error copying artifact from /tmp/jsonde/jsonde.agent/target/classes to /tmp/jsonde/jsonde.deployment/target/dependency/classes: /tmp/jsonde/jsonde.agent/target/classes (Is a directory) -> [Help 1]
org.apache.maven.lifecycle.LifecycleExecutionException: Failed to execute goal org.apache.maven.plugins:maven-dependency-plugin:2.1:copy-dependencies (copy-dependencies-jars) on project jsonde.deployment: Error copying artifact from /tmp/jsonde/jsonde.agent/target/classes to /tmp/jsonde/jsonde.deployment/target/dependency/classes
    at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:217)
    at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:153)
    at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:145)
    at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:84)
    at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:59)
    at org.apache.maven.lifecycle.internal.LifecycleStarter.singleThreadedBuild(LifecycleStarter.java:183)
    at org.apache.maven.lifecycle.internal.LifecycleStarter.execute(LifecycleStarter.java:161)
    at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:320)
    at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:156)
    at org.apache.maven.cli.MavenCli.execute(MavenCli.java:537)
    at org.apache.maven.cli.MavenCli.doMain(MavenCli.java:196)
    at org.apache.maven.cli.MavenCli.main(MavenCli.java:141)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
    at java.lang.reflect.Method.invoke(Method.java:622)
    at org.codehaus.plexus.classworlds.launcher.Launcher.launchEnhanced(Launcher.java:290)
    at org.codehaus.plexus.classworlds.launcher.Launcher.launch(Launcher.java:230)
    at org.codehaus.plexus.classworlds.launcher.Launcher.mainWithExitCode(Launcher.java:409)
    at org.codehaus.plexus.classworlds.launcher.Launcher.main(Launcher.java:352)
Caused by: org.apache.maven.plugin.MojoExecutionException: Error copying artifact from /tmp/jsonde/jsonde.agent/target/classes to /tmp/jsonde/jsonde.deployment/target/dependency/classes
    at org.apache.maven.plugin.dependency.AbstractDependencyMojo.copyFile(AbstractDependencyMojo.java:194)
    at org.apache.maven.plugin.dependency.CopyDependenciesMojo.copyArtifact(CopyDependenciesMojo.java:186)
    at org.apache.maven.plugin.dependency.CopyDependenciesMojo.execute(CopyDependenciesMojo.java:85)
    at org.apache.maven.plugin.DefaultBuildPluginManager.executeMojo(DefaultBuildPluginManager.java:101)
    at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:209)
    ... 19 more
Caused by: java.io.FileNotFoundException: /tmp/jsonde/jsonde.agent/target/classes (Is a directory)
    at java.io.FileInputStream.open(Native Method)
    at java.io.FileInputStream.<init>(FileInputStream.java:140)
    at org.codehaus.plexus.util.FileUtils.copyFile(FileUtils.java:929)
    at org.apache.maven.plugin.dependency.AbstractDependencyMojo.copyFile(AbstractDependencyMojo.java:189)
bedrin commented 9 years ago

It works fine for me on CentOS7, Oracle JDK 1.6.0_45 an Apache Maven 3.2.5

Can you try installing the JDK and Maven not from CentOS repo but rather from the official web sites?