pavankjadda/BookStore

No compiler is provided in this environment. Perhaps you are running on a JRE rather than a JDK?

pavankjadda opened this issue · 1 comments

Jenkins error

No compiler is provided in this environment. Perhaps you are running on a JRE rather than a JDK?

using credential github
 > git rev-parse --is-inside-work-tree # timeout=10
Fetching changes from the remote Git repository
 > git config remote.origin.url https://github.com/pavankjadda/BookStore # timeout=10
Fetching without tags
Fetching upstream changes from https://github.com/pavankjadda/BookStore
 > git --version # timeout=10
using GIT_ASKPASS to set credentials github
 > git fetch --no-tags --progress https://github.com/pavankjadda/BookStore +refs/heads/*:refs/remotes/origin/*
Checking out Revision 0e202f2ded817f4d4d1fe1f2249dbb9a8a61c64e (openshift-aws)
 > git config core.sparsecheckout # timeout=10
 > git checkout -f 0e202f2ded817f4d4d1fe1f2249dbb9a8a61c64e
Commit message: "Updated Config files"
 > git rev-list --no-walk 0e202f2ded817f4d4d1fe1f2249dbb9a8a61c64e # timeout=10
No credentials specified
 > git rev-parse --is-inside-work-tree # timeout=10
Fetching changes from the remote Git repository
 > git config remote.origin.url https://github.com/pavankjadda/BookStore.git # timeout=10
Fetching upstream changes from https://github.com/pavankjadda/BookStore.git
 > git --version # timeout=10
 > git fetch --tags --progress https://github.com/pavankjadda/BookStore.git +refs/heads/*:refs/remotes/origin/*
 > git rev-parse refs/remotes/origin/openshift-aws^{commit} # timeout=10
 > git rev-parse refs/remotes/origin/origin/openshift-aws^{commit} # timeout=10
Checking out Revision 0e202f2ded817f4d4d1fe1f2249dbb9a8a61c64e (refs/remotes/origin/openshift-aws)
 > git config core.sparsecheckout # timeout=10
 > git checkout -f 0e202f2ded817f4d4d1fe1f2249dbb9a8a61c64e
 > git branch -a -v --no-abbrev # timeout=10
 > git branch -D openshift-aws # timeout=10
 > git checkout -b openshift-aws 0e202f2ded817f4d4d1fe1f2249dbb9a8a61c64e
Commit message: "Updated Config files"
+ mvn -s templates/cicd-settings-nexus3.xml clean package -DskipTests=true
Picked up JAVA_TOOL_OPTIONS: -XX:+UnlockExperimentalVMOptions -XX:+UseCGroupMemoryLimitForHeap -Dsun.zip.disableMemoryMapping=true
[INFO] Scanning for projects...
[INFO] 
[INFO] ------------------------< com.books:bookstore >-------------------------
[INFO] Building BookStore 0.0.1-SNAPSHOT
[INFO] --------------------------------[ jar ]---------------------------------
[INFO] 
[INFO] --- maven-clean-plugin:3.1.0:clean (default-clean) @ bookstore ---
[INFO] Deleting /var/lib/jenkins/jobs/BookStore/branches/openshift-aws/workspace/target
[INFO] 
[INFO] --- maven-resources-plugin:3.1.0:resources (default-resources) @ bookstore ---
[INFO] Using 'UTF-8' encoding to copy filtered resources.
[INFO] Copying 4 resources
[INFO] Copying 26 resources
[INFO] 
[INFO] --- maven-compiler-plugin:3.8.0:compile (default-compile) @ bookstore ---
[INFO] Changes detected - recompiling the module!
[INFO] Compiling 18 source files to /var/lib/jenkins/jobs/BookStore/branches/openshift-aws/workspace/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:  3.200 s
[INFO] Finished at: 2019-03-28T18:37:52Z
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal org.apache.maven.plugins:maven-compiler-plugin:3.8.0:compile (default-compile) on project bookstore: Compilation failure
[ERROR] No compiler is provided in this environment. Perhaps you are running on a JRE rather than a JDK?
[ERROR] 
[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
script returned exit code 1

Remove nexus settings value from mvn command

mvn install -DskipTests=true