HI,
I am Currently using JENKINS version Jenkins ver. 2.157 and while running a maven project i am getting below error,
[INFO] --- maven-compiler-plugin:3.7.0:compile (default-compile) @ config --- [INFO] Changes detected - recompiling the module! [INFO] Compiling 1 source file to C:\Program Files (x86)\Jenkins\workspace\AzharSquare\config\target\classes [INFO] ------------------------------------------------------------- [ERROR] COMPILATION ERROR : [INFO] ------------------------------------------------------------- [ERROR] No compiler is provided in this environment. Perhaps you are running on a JRE rather than a JDK? [INFO] 1 error [INFO] ------------------------------------------------------------- [INFO] ------------------------------------------------------------------------ [INFO] BUILD FAILURE [INFO] ------------------------------------------------------------------------ [INFO] Total time: 6.841 s [INFO] Finished at: 2019-01-12T20:04:03+05:30 [INFO] ------------------------------------------------------------------------ Waiting for Jenkins to finish collecting data [ERROR] Failed to execute goal org.apache.maven.plugins:maven-compiler-plugin:3.7.0:compile (default-compile) on project config: Compilation failure [ERROR] No compiler is provided in this environment. Perhaps you are running on a JRE rather than a JDK? [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 [JENKINS] Archiving C:\Program Files (x86)\Jenkins\workspace\AzharSquare\config\pom.xml to com.meganet/config/0.0.1-SNAPSHOT/config-0.0.1-SNAPSHOT.pom channel stopped Finished: FAILURE
Note: JAVA 8 is installed in my laptop and I am able to run my Maven project from CMD
Attachments:
jenkins Error.png (image/png)