I am new to maven installation. While executing a .bat file which installs maven, I am getting the below error. Could you please check :
Launching environment tests
checking Java 4 compile, java 4 run
[ERROR] COMPILATION ERROR :
[ERROR] Failure executing javac, but could not parse the error:
The system cannot find the path specified.
[ERROR] Failed to execute goal org.apache.maven.plugins:maven-compiler-plugin:2.3.2:compile (default
-compile) on project devenv-validate: Compilation failure
[ERROR] Failure executing javac, but could not parse the error:
[ERROR] The system cannot find the path specified.
[ERROR] -> [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 arti
cles:
[ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/MojoFailureException
checking Java 4 compile, java 6 run
[ERROR] COMPILATION ERROR :
[ERROR] Failure executing javac, but could not parse the error:
The system cannot find the path specified.
[ERROR] Failed to execute goal org.apache.maven.plugins:maven-compiler-plugin:2.3.2:compile (default
-compile) on project devenv-validate: Compilation failure
[ERROR] Failure executing javac, but could not parse the error:
[ERROR] The system cannot find the path specified.
[ERROR] -> [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 arti
cles:
[ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/MojoFailureException
checking Java 6 compile, java 6 run
-------------------------------------------------------
T E S T S
-------------------------------------------------------
Running TestDevEnvValidator
Java version : Actual [1.6.0_20], expected [1.6.0_20]
Java compiler : Actual [6], expected [6]
Tests run: 3, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0 sec
Results :
Tests run: 3, Failures: 0, Errors: 0, Skipped: 0
Press any key to continue . . .
Can anyone please have a look and say why it is failing. Thanks in advance.
The system cannot find the path specified.
If you are using Windows, please check if the path specified for system variables: Path, JAVA_HOME, M2_HOME, M2.
Check out this tutorial:
http://www.tutorialspoint.com/maven/maven_environment_setup.htm
Related
[ERROR] Failed to execute goal org.apache.maven.plugins:maven-surefire-plugin:2.19.1:test (default-test) on project HawthorneEffectAutomation: Execution default-test of goal org.apache.maven.plugins:maven-surefire-plugin:2.19.1:test failed: The forked VM terminated without properly saying goodbye. VM crash or System.exit called?
[ERROR] Command was /bin/sh -c cd /var/lib/jenkins/workspace/HE_HQ_Automaton && /usr/lib/jvm/java-11-openjdk-11.0.13.0.8-1.amzn2.0.3.x86_64/bin/java -jar /var/lib/jenkins/workspace/HE_HQ_Automaton/target/surefire/surefirebooter14653655313054336893.jar /var/lib/jenkins/workspace/HE_HQ_Automaton/target/surefire/surefire15702145916035405804tmp /var/lib/jenkins/workspace/HE_HQ_Automaton/target/surefire/surefire_083360849272140865tmp
[ERROR] -> [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/PluginExecutionException
[JENKINS] Archiving /var/lib/jenkins/workspace/HE_HQ_Automaton/pom.xml to org.example/HawthorneEffectAutomation/1.0-SNAPSHOT/HawthorneEffectAutomation-1.0-SNAPSHOT.pom
channel stopped
[CucumberReport] Using Cucumber Reports version 5.7.1
[CucumberReport] JSON report directory is ""
[CucumberReport] Copied 8 properties files from workspace "/var/lib/jenkins/workspace/HE_HQ_Automaton" to reports directory "/var/lib/jenkins/jobs/HE_HQ_Automaton/builds/143/cucumber-html-reports/.cache"
[CucumberReport] Copied 2 files from workspace "/var/lib/jenkins/workspace/HE_HQ_Automaton" to reports directory "/var/lib/jenkins/jobs/HE_HQ_Automaton/builds/143/cucumber-html-reports/.cache"
[CucumberReport] Processing 2 json files:
[CucumberReport] /var/lib/jenkins/jobs/HE_HQ_Automaton/builds/143/cucumber-html-reports/.cache/target/cucumber-reports/report.json
[CucumberReport] /var/lib/jenkins/jobs/HE_HQ_Automaton/builds/143/cucumber-html-reports/.cache/target/cucumber.json
[CucumberReport] Missing report result - the report was not successfully completed
[CucumberReport] Build status is left unchanged
Finished: FAILURE
I did check the plugin version and dependency version and all are up to date and matching with each other
What can be the reason that I can successfully run testNG suite (14 tests) directly from selenium eclipse but when I am trying to run it throw CMD with command : mvn test
It's stops after 6 tests every time ?
Also The 1st test success from selenium and here is always failed.
BTW : When I am trying to do : mvn clean or compile its success.
[ERROR] Failures:
[ERROR] OrderBE.order:75->addItems:113 ยป IndexOutOfBounds Index: 22, Size: 22
[INFO]
[ERROR] Tests run: 6, Failures: 1, Errors: 0, Skipped: 0
[INFO]
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 02:20 min
[INFO] Finished at: 2022-03-01T17:06:15+02:00
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal org.apache.maven.plugins:maven-surefire-plugin:3.0.0-M5:test (default-test) on project miron: There are test failures.
[ERROR]
[ERROR] Please refer to C:\Program Files\Selenium\Projects\BE UAT\target\surefire-reports for the individual test results.
[ERROR] Please refer to dump files (if any exist) [date].dump, [date]-jvmRun[N].dump and [date].dumpstream.
[ERROR] -> [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/MojoFailureException
are you running them in parallel?
it could be the limit of the number of browers per processor (I had an issue like that)
Try restarting the driver if grid, and changing the limit
Make sure your TestNG tests in src\main\test folder and not in main\java
I tried to creat a project in IntelliJ IDEA using Maven quickstart archetype but it allways failed:
[ERROR] ResourceManager.getResource() parse exception
[ERROR] org.apache.velocity.exception.ParseErrorException: Lexical error, Encountered: "\ufffd" (65533), after : "" at archetype-resources/src/main/webapp/mybootstrap/fonts/glyphicons-halflings-regular.eot[line 16, column 21]
Here is the full output:
[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" (65533), after : "" at archetype-resources/src/main/webapp/mybootstrap/fonts/glyphicons-halflings-regular.eot[line 16, column 21] -> [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/MojoFailureException
[ERROR] Maven execution terminated abnormally (exit code 1)
I am building Apache Spark with the make-distribution.sh script. It works fine till the spark-streaming-mqtt_2.10 module.
My MAVEN_OPTS environment variable is:
export MAVEN_OPTS="-Xmx15g -XX:MaxPermSize=15000M -XX:ReservedCodeCacheSize=15000M"
Even though the memory assigned to Maven is very high, it still fails in the creation of spark-streaming-mqtt-test-1.5.2.jar jar file.
Below is the error stacktrace:
[ERROR] Failed to execute goal org.apache.maven.plugins:maven-assembly-plugin:2.5.5:single (test-jar-with-dependencies) on project spark-streaming-mqtt_2.10: Failed to create assembly: Error creating assembly archive test-jar-with-dependencies: Problem creating jar: Execution exception: Java heap space -> [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/MojoExecutionException
[ERROR]
[ERROR] After correcting the problems, you can resume the build with the command
[ERROR] mvn <goals> -rf :spark-streaming-mqtt_2.10
I am following the steps as per the Kantega/storm-twitter-workshop project link
but I am stuck at a point. While testing credentials by running the main class in folder cheating
cd cheating
mvn compile exec:java -Dexec.classpathScope=compile -Dexec.mainClass=storm.starter.CheatingTwitterFunTopology
I am getting the below error:
[ERROR] Failed to execute goal org.apache.maven.plugins:maven-compiler-plugin:2.0.2:compile (default-compile) on project storm-assignment-solution: Compilation failure
[ERROR] Unable to locate the Javac Compiler in:
[ERROR] /usr/lib/jvm/java-7-openjdk-amd64/jre/../lib/tools.jar
[ERROR] Please ensure you are using JDK 1.4 or above and
[ERROR] not a JRE (the com.sun.tools.javac.Main class is required).
[ERROR] In most cases you can change the location of your Java
[ERROR] installation by setting the JAVA_HOME environment variable.
[ERROR] -> [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/MojoFailureException
Where am I going wrong?
The Error says it all ..
[ERROR] Unable to locate the Javac Compiler in:[ERROR] /usr/lib/jvm/java-7-openjdk-amd64/jre/../lib/tools.jar
[ERROR] Please ensure you are using JDK 1.4 or above and
Looking at your project page found the following
1) It uses 2 maven modules namely cheating and storm-assignment and both of them are expected to run under Java 1.6 as found in their pom.xml
Check the pom.xml for both the module has this
<configuration>
<source>1.6</source>
<target>1.6</target>
</configuration>
Make sure you are running with atleast Java 1.6 or Higher