I'm trying to install the gremlin-plugin so I can use neo4django in python. I tried to follow the steps laid out at https://github.com/neo4j-contrib/gremlin-plugin but I haven't had any success.
I have
downloaded gremlin-plugin-master.zip
unzip gremlin-plugin-master.zip
cd gremlin-plugin-master/
mvn clean package
At which point, I receive a message which contains the following snippit
...
[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/mint/Downloads/gremlin-plugin-master/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]
....
Does anybody know what this means? I couldn't find anything that seemed to match this kind of error in this context and I have no idea where to start debugging this.
$ mvn -v
Apache Maven 3.0.4
Maven home: /usr/share/maven
Java version: 1.7.0_51, vendor: Oracle Corporation
Java home: /usr/lib/jdk1.7.0_51/jre
Default locale: en_US, platform encoding: UTF-8
OS name: "linux", version: "3.11.0-12-generic", arch: "amd64", family: "unix"
EDIT:
After cloning the repo, I was able to compile.
Fresh clone of the repo solved the issue.
Related
I am getting below errors while executing maven job from Jenkins.I have installed the maven software in Linux and provided the path in global tool configuration section of Jenkins.Error is saying pom.xml file is missing.but I am not getting no clue how to fix this issue.
[ERROR] The goal you specified requires a project to execute but there is no POM in this directory (/var/lib/jenkins/workspace/JOBS/maventest). Please verify you invoked Maven from the correct directory. -> [Help 1]
[ERROR]
[ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch.
[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/MissingProjectException
Build step 'Invoke top-level Maven targets' marked build as failure
Finished: FAILURE
Also, the output for mvn --version
Apache Maven 3.6.3 (cecedd343002696d0abb50b32b541b8a6ba2883f)
Maven home: /home/test/apache-maven-3.6.3
Java version: 1.8.0_131, vendor: Oracle Corporation, runtime: /usr/jdk1.8.0_131/jre
Default locale: en_US, platform encoding: UTF-8
OS name: "linux", version: "4.14.186-146.268.amzn2.x86_64", arch: "amd64", family: "unix"
value I have set in /etc/profile
export JAVA_HOME=/usr/jdk1.8.0_131
export M2_HOME=/home/test/apache-maven-3.6.3
export M2=$M2_HOME/bin
export PATH=$JAVA_HOME/bin:$M2:$PATH
Please help in fixing this issue.Thanks in advance.
Is there an examples of a JHipster Oracle 11g implementation around?
I thought I had everything set up correctly, but still not able to run ./mvnw without the application throwing errors. Unfortunately not a lot is available on the specific error:
[ERROR] Failed to execute goal org.apache.maven.plugins:maven-compiler-plugin:3.8.1:compile (default-compile) on project cdp: Compilation failure: Compilation failure:
[ERROR] error reading /Users/millera/.m2/repository/io/github/jhipster/jhipster-framework/3.0.3/jhipster-framework-3.0.3.jar; zip END header not found
I initially thought this was an issue with Maven on my system, but it seems to be working for other things, and if I run mvn --version I get back:
Maven home: /usr/local/Cellar/maven/3.6.2/libexec
Java version: 11.0.4, vendor: Oracle Corporation, runtime: /Library/Java/JavaVirtualMachines/jdk-11.0.4.jdk/Contents/Home
Default locale: en_US, platform encoding: UTF-8
OS name: "mac os x", version: "10.14.6", arch: "x86_64", family: "mac"
It's an issue with your maven local repository which for some unknown reason has a corrupted jar of jhipster-framework.
Try cleaning it up with rm -rf /Users/millera/.m2/repository/io/github/jhipster and restart your app with ./mvnw.
I try to execute the Maven goal to build and run Apache Tapestry 5.4.x locally but it always failed:
Ideas I tried:
IntelliJ official Plugin arch type
Getting started from tapestry.org
Hotel booking example from GitHub.
Maven / Java version
tobia#FooDesktop MINGW64 ~/IdeaProjects
$ mvn --version
Apache Maven 3.6.0 (97c98ec64a1fdfee7767ce5ffb20918da4f719f3; 2018-10-24T20:41:47+02:00)
Maven home: C:\ProgramData\chocolatey\lib\maven\apache-maven-3.6.0\bin\..
Java version: 1.8.0_191, vendor: Oracle Corporation, runtime: C:\Program Files\Java\jdk1.8.0_191\jre
Default locale: en_US, platform encoding: Cp1252
OS name: "windows 10", version: "10.0", arch: "amd64", family: "windows"
Errors
Getting Started:
[ERROR] Failed to execute goal org.apache.maven.plugins:maven-archetype-plugin:3.0.1:generate (default-cli) on project standalone-pom: org .apache.maven.archetype.exception.ArchetypeGenerationFailure: Error merging velocity templates: Lexical error, Encountered: "\ufffd" (65 533), after : "" at archetype-resources/src/main/webapp/mybootstrap/fonts/glyphicons-halflings-regular.eot[line 16, column 21] -> [Help 1]
Example:
[ERROR] /C:/Users/tobia/IdeaProjects/tapestry5-hotel-booking/src/main/java/com/tap5/hotelbooking/services/BasicAuthenticator.java:[87,13] try-with-resources is not supported in -source 1.5
For further information, please see the stracktraces attched to this: GitHub Gist.
After I posted this question to the offical Mailing list. The following Maven command worked:
mvn org.apache.maven.plugins:maven-archetype-plugin:2.4:generate \
-DarchetypeGroupId=org.apache.tapestry \
-DarchetypeArtifactId=quickstart \
-DarchetypeVersion=5.4.4 \
-DarchetypeRepository=local
I'm going through this tutorial: http://www.adeveloperdiary.com/java/spring-boot/create-spring-boot-application-step-step/
And I have maven installed, and I went to run mvn clean package
in the directory \SpringBoot\src\main\java\com\adeveloperdiary but it keeps saying
[INFO] Scanning for projects...
[INFO] --------------------------------------------------------------------- ---
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 0.059 s
[INFO] Finished at: 2016-12-07T11:45:06-05:00
[INFO] Final Memory: 6M/310M
[INFO] ------------------------------------------------------------------------
[ERROR] The goal you specified requires a project to execute but there is no POM in this directory (C:\Users\kbultman\Downloads\SpringBoot\src\main\java\com\adeveloperdiary). Please verify you invoked Maven from the correct directory. -> [Help 1]
[ERROR]
[ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch.
[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/MissingProjectException
This is my mvn -version
Apache Maven 3.3.9 (bb52d8502b132ec0a5a3f4c09453c07478323dc5; 2015-11-10T11:41:47-05:00)
Maven home: C:\Users\kbultman\Downloads\apache-maven-3.3.9\apache-maven-3.3.9
Java version: 1.7.0_79, vendor: Oracle Corporation
Java home: C:\Program Files\Java\jdk1.7.0_79\jre
Default locale: en_US, platform encoding: Cp1252
OS name: "windows 8.1", version: "6.3", arch: "amd64", family: "windows
You want to run the maven command in the top level directory of the project. To do that you need to use the "cd" command like so:
cd \path\to\directory
In your case the directory would probably be
C:\Users\kbultman\Downloads\SpringBoot
instead of
C:\Users\kbultman\Downloads\SpringBoot\src\main\java\com\adeveloperdiary
I have installed maven successfully and when i check for the Maven version it displays the below information:
Apache Maven 3.3.9 (bb52d8502b132ec0a5a3f4c09453c07478323dc5; 2015-11-10T11:41:4
7-05:00)
Maven home: C:\Program Files\apache-maven-3.3.9\bin\..
Java version: 1.8.0_73, vendor: Oracle Corporation
Java home: C:\Program Files\Java\jdk1.8.0_73\jre
Default locale: en_US, platform encoding: Cp1252
OS name: "windows 7", version: "6.1", arch: "amd64", family: "dos"
I have downloaded the Zip folder for Karma and followed the instructions that are mentioned for karma tool installation from the site https://github.com/usc-isi-i2/Web-Karma/wiki/Installation%3A-Source-Code#system-requirements
I have extracted the sip folder to a directory and opened a shell (command prompt) and navigated to the directory where I extracted Karma.On the shell prompt typed mvn clean install
I am getting the below error:
[ERROR] Failed to execute goal org.apache.maven.plugins:maven-compiler-plugin:3.
1:compile (default-compile) on project karma-util: Fatal error compiling: direct
ory not found: C:\Program Files\Web-Karma-master\karma-util\target\classes -> [H
elp 1]
[ERROR]
[ERROR] To see the full stack trace of the errors, re-run Maven with the -e swit
ch.
[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 rea
d the following articles:
[ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/MojoExecutionE
xception
[ERROR]
[ERROR] After correcting the problems, you can resume the build with the command
[ERROR] mvn <goals> -rf :karma-util
I am not sure where am I wrong. Any help is appreciated.
Previously I was trying in Program Files folder in C drive so I could not install. I changed the folder I am able to install it now.