Unable to compile and install web karma using maven - maven

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.

Related

Error in execution of Maven project in Jenkins

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.

Maven / Tycho build fails requiring 'osgi.ee; (&(osgi.ee=JavaSE)(version=1.8))'

I've installed Xtext 2.19 into Eclipse 2019-06 and created a new skeleton Xtext project.
No changes were done to the generated project but mvn clean install fails with:
[ERROR] Cannot resolve target definition:
[ERROR] Software being installed: org.eclipse.jdt.feature.group 3.18.100.v20190821-1800
[ERROR] Missing requirement: org.eclipse.ant.core 3.5.500.v20190701-1953 requires 'osgi.ee; (&(osgi.ee=JavaSE)(version=1.8))' but it could not be found
[ERROR] Cannot satisfy dependency: org.eclipse.ant.ui 3.7.500.v20190518-1030 depends on: osgi.bundle; org.eclipse.ant.core [3.2.0,4.0.0)
[ERROR] Cannot satisfy dependency: org.eclipse.jdt.feature.group 3.18.100.v20190821-1800 depends on: org.eclipse.equinox.p2.iu; org.eclipse.ant.ui [3.7.500.v20190518-1030,3.7.500.v20190518-1030]
[ERROR]
[ERROR] Failed to resolve target definition /home/.../eclipse-workspace/mydsl.parent/mydsl.target/mydsl.target.target: See log for details -> [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/MavenExecutionException
Java 12 and Maven 3.6.0 are installed and on the path:
$ java -version
openjdk version "12.0.2" 2019-07-16
OpenJDK Runtime Environment (build 12.0.2+9-Ubuntu-119.04)
OpenJDK 64-Bit Server VM (build 12.0.2+9-Ubuntu-119.04, mixed mode)
$ echo $JAVA_HOME
/usr/lib/jvm/java-12-openjdk-amd64
$ mvn --version
Apache Maven 3.6.0
Maven home: /usr/share/maven
Java version: 12.0.2, vendor: Private Build, runtime: /usr/lib/jvm/java-12-openjdk-amd64
Default locale: en_US, platform encoding: UTF-8
OS name: "linux", version: "5.0.0-25-generic", arch: "amd64", family: "unix"
Since I'm not used to Tycho builds and Eclipse RCP I'm looking for an explanation for what the build is looking for when complaining that the following requirement is not met
osgi.ee; (&(osgi.ee=JavaSE)(version=1.8))
As already stated the Xtext project was generated from scratch using the Xtext Wizard inside of Eclipse so I would assume that all required dependencies are properly configured by default and the build's complain refers to some missing requirement in my build environment / machine - but what exactly is missing?
There is not official Support for Java 12 in Xtext 2.19 (as e.g. Tycho 1.4.0 does not support it). It should work if you use the latest Tycho 1.5.0-SNAPSHOT from
<pluginRepositories>
<pluginRepository>
<id>tycho-snapshots</id>
<url>https://repo.eclipse.org/content/repositories/tycho-snapshots/</url>
</pluginRepository>
</pluginRepositories>
https://wiki.eclipse.org/Tycho/Release_Notes/1.5

Cannot execute Maven goal to build Tapestry 5.4.x from Getting started guide nor from the example source using Maven

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

Getting LocalRepositoryNotAccessibleException though mvn is installed

I have installed maven manually through my Mac's(OS- Yosemite) terminal.
The command mvn -version
gives the below output:
> Apache Maven 3.3.3 (7994120775791599e205a5524ec3e0dfe41d4a06;
> 2015-04-22T17:27:37+05:30) Maven home:
> /Users/shilpa_rajendran/Documents/basicsoft/apache-maven-3.3.3 Java
> version: 1.7.0_71, vendor: Oracle Corporation Java home:
> /Library/Java/JavaVirtualMachines/jdk1.7.0_71.jdk/Contents/Home/jre
> Default locale: en_US, platform encoding: UTF-8 OS name: "mac os x",
> version: "10.10.4", arch: "x86_64", family: "mac"
But when I do mVn clean , I am getting the below:
[ERROR] Could not create local repository at
/Users/shilpa_rajendran/.m2/repository -> [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/LocalRepositoryNotAccessibleException
The culprit was a m2 file which was already present in the location where the .m2 folder gets created usually. Just delete the folder and run your mvn command again.
I believe that your path is not set properly for .m2 folder.
Could not create local repository at /Users/shilpa_rajendran/.m2/repository -> [Help 1]
This is showing that not particular path is found to access or create .m2 folder in Maven.
Step 1) Goto .m2 folder and find setting.xml file
Step 2) Open with administrator cmd (WINDOWS)/ sudo command (LINUX).
Step 3) Open Setting.xml file
Step 4) Find <local-reposirtory>
Step 5) You can see your current path : **/Users/shilpa_rajendran/.m2/repository** .
Step 6) Change that path to current .m2 folder location path.
Thanks
vishal

Building gremlin-plugin for neo4j

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.

Resources