Skip to content
This repository has been archived by the owner on Jun 19, 2019. It is now read-only.

mvn clean package - build failure #16

Closed
FrostyX opened this issue Feb 7, 2014 · 4 comments
Closed

mvn clean package - build failure #16

FrostyX opened this issue Feb 7, 2014 · 4 comments

Comments

@FrostyX
Copy link

FrostyX commented Feb 7, 2014

Hi, I got some error by mvn clean package -e.

$[FrostyX  gremlin-plugin]-> sudo mvn clean package -e
[INFO] Error stacktraces are turned on.
[INFO] Scanning for projects...
[INFO]                                                                         
[INFO] ------------------------------------------------------------------------
[INFO] Building neo4j-gremlin-plugin 2.0-SNAPSHOT
[INFO] ------------------------------------------------------------------------
[INFO] 
[INFO] --- maven-clean-plugin:2.4.1:clean (default-clean) @ neo4j-gremlin-plugin ---
[INFO] Deleting /home/frostyx/gremlin-plugin/target
[INFO] 
[INFO] --- license-maven-plugin:3:check (check-licenses) @ neo4j-gremlin-plugin ---
[INFO] Checking licenses...
[INFO] 
[INFO] --- maven-resources-plugin:2.5:resources (default-resources) @ neo4j-gremlin-plugin ---
[debug] execute contextualize
[INFO] Using 'UTF-8' encoding to copy filtered resources.
[INFO] Copying 2 resources
[INFO] skip non existing resourceDirectory /home/frostyx/gremlin-plugin/src/main/webapp
[INFO] skip non existing resourceDirectory /home/frostyx/gremlin-plugin/data
[INFO] 
[INFO] --- maven-compiler-plugin:3.1:compile (default-compile) @ neo4j-gremlin-plugin ---
[INFO] Changes detected - recompiling the module!
[INFO] Compiling 12 source files to /home/frostyx/gremlin-plugin/target/classes
[INFO] -------------------------------------------------------------
[WARNING] COMPILATION WARNING : 
[INFO] -------------------------------------------------------------
[WARNING] /home/frostyx/gremlin-plugin/src/main/java/org/neo4j/server/plugin/gremlin/GremlinPlugin.java: Some input files use unchecked or unsafe operations.
[WARNING] /home/frostyx/gremlin-plugin/src/main/java/org/neo4j/server/plugin/gremlin/GremlinPlugin.java: Recompile with -Xlint:unchecked for details.
[INFO] 2 warnings 
[INFO] -------------------------------------------------------------
[INFO] -------------------------------------------------------------
[ERROR] COMPILATION ERROR : 
[INFO] -------------------------------------------------------------
[ERROR] /home/frostyx/gremlin-plugin/src/main/java/org/neo4j/server/plugin/gremlin/GremlinPlugin.java:[79,23] method autoStartTransaction in class com.tinkerpop.blueprints.impls.neo4j2.Neo4j2Graph cannot be applied to given types;
  required: boolean
  found: no arguments
  reason: actual and formal argument lists differ in length
[INFO] 1 error
[INFO] -------------------------------------------------------------
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 9.879s
[INFO] Finished at: Fri Feb 07 22:47:13 CET 2014
[INFO] Final Memory: 24M/169M
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal org.apache.maven.plugins:maven-compiler-plugin:3.1:compile (default-compile) on project neo4j-gremlin-plugin: Compilation failure
[ERROR] /home/frostyx/gremlin-plugin/src/main/java/org/neo4j/server/plugin/gremlin/GremlinPlugin.java:[79,23] method autoStartTransaction in class com.tinkerpop.blueprints.impls.neo4j2.Neo4j2Graph cannot be applied to given types;
[ERROR] required: boolean
[ERROR] found: no arguments
[ERROR] reason: actual and formal argument lists differ in length
[ERROR] -> [Help 1]
org.apache.maven.lifecycle.LifecycleExecutionException: Failed to execute goal org.apache.maven.plugins:maven-compiler-plugin:3.1:compile (default-compile) on project neo4j-gremlin-plugin: Compilation failure
/home/frostyx/gremlin-plugin/src/main/java/org/neo4j/server/plugin/gremlin/GremlinPlugin.java:[79,23] method autoStartTransaction in class com.tinkerpop.blueprints.impls.neo4j2.Neo4j2Graph cannot be applied to given types;
  required: boolean
  found: no arguments
  reason: actual and formal argument lists differ in length

    at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:213)
    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:606)
    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.compiler.CompilationFailureException: Compilation failure
/home/frostyx/gremlin-plugin/src/main/java/org/neo4j/server/plugin/gremlin/GremlinPlugin.java:[79,23] method autoStartTransaction in class com.tinkerpop.blueprints.impls.neo4j2.Neo4j2Graph cannot be applied to given types;
  required: boolean
  found: no arguments
  reason: actual and formal argument lists differ in length

    at org.apache.maven.plugin.compiler.AbstractCompilerMojo.execute(AbstractCompilerMojo.java:858)
    at org.apache.maven.plugin.compiler.CompilerMojo.execute(CompilerMojo.java:129)
    at org.apache.maven.plugin.DefaultBuildPluginManager.executeMojo(DefaultBuildPluginManager.java:101)
    at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:209)
    ... 19 more
[ERROR] 
[ERROR] Re-run Maven using the -X switch to enable full debug logging.
[ERROR] 
[ERROR] For more information about the errors and possible solutions, please read the following articles:
[ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/MojoFailureException

I am using Gentoo linux and this java

$[FrostyX  ~]-> echo $JAVA_HOME
/etc/java-config-2/current-system-vm

$[FrostyX  ~]-> ls -l /etc/java-config-2/current-system-vm
... /etc/java-config-2/current-system-vm -> /usr/lib/jvm/oracle-jdk-bin-1.7
@jexp
Copy link
Member

jexp commented Feb 8, 2014

Do you have a local recent copy of a blueprints-2.5-SNAPSHOT build?

@FrostyX
Copy link
Author

FrostyX commented Feb 8, 2014

I dont really know. Is it mentioned in docs or something?

@jexp
Copy link
Member

jexp commented Feb 8, 2014

Fixed, they changed the API in blueprints and that resulted in compile errors.

@jexp jexp closed this as completed Feb 8, 2014
@FrostyX
Copy link
Author

FrostyX commented Feb 8, 2014

I confirm that solves the issue.
Thank you, FrostyX

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants