Advertisement
SipriusPT

mvn clean compile — Shell Script - failed

Feb 14th, 2018
273
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 3.47 KB | None | 0 0
  1. mvn clean compile
  2. — Shell Script
  3. 2s
  4. [jenkins-example] Running shell script
  5.  
  6. + mvn clean compile
  7.  
  8. ----- withMaven Wrapper script -----
  9.  
  10. Picked up JAVA_TOOL_OPTIONS: -Dmaven.ext.class.path="/var/lib/jenkins/workspace/jenkins-example@tmp/withMavenae51bbf4/pipeline-maven-spy.jar" -Dorg.jenkinsci.plugins.pipeline.maven.reportsFolder="/var/lib/jenkins/workspace/jenkins-example@tmp/withMavenae51bbf4"
  11.  
  12. Apache Maven 3.5.2 (138edd61fd100ec658bfa2d307c43b76940a5d7d; 2017-10-18T08:58:13+01:00)
  13.  
  14. Maven home: /var/lib/jenkins/tools/hudson.tasks.Maven_MavenInstallation/maven_3_5_2
  15.  
  16. Java version: 1.8.0_161, vendor: Oracle Corporation
  17.  
  18. Java home: /usr/lib/jvm/java-1.8.0-openjdk-1.8.0.161-0.b14.el7_4.x86_64/jre
  19.  
  20. Default locale: en_US, platform encoding: UTF-8
  21.  
  22. OS name: "linux", version: "3.10.0-693.17.1.el7.x86_64", arch: "amd64", family: "unix"
  23.  
  24. [INFO] [jenkins-event-spy] Generate /var/lib/jenkins/workspace/jenkins-example@tmp/withMavenae51bbf4/maven-spy-20180214-114212-7314104439256381802284.log.tmp ...
  25.  
  26. [INFO] Scanning for projects...
  27.  
  28. [INFO]
  29.  
  30. [INFO] ------------------------------------------------------------------------
  31.  
  32. [INFO] Building jenkins-example 1.0-SNAPSHOT
  33.  
  34. [INFO] ------------------------------------------------------------------------
  35.  
  36. [INFO]
  37.  
  38. [INFO] --- maven-clean-plugin:2.5:clean (default-clean) @ jenkins-example ---
  39.  
  40. [INFO] Deleting /var/lib/jenkins/workspace/jenkins-example/target
  41.  
  42. [INFO]
  43.  
  44. [INFO] --- maven-resources-plugin:2.6:resources (default-resources) @ jenkins-example ---
  45.  
  46. [INFO] Using 'UTF-8' encoding to copy filtered resources.
  47.  
  48. [INFO] skip non existing resourceDirectory /var/lib/jenkins/workspace/jenkins-example/src/main/resources
  49.  
  50. [INFO]
  51.  
  52. [INFO] --- maven-compiler-plugin:3.1:compile (default-compile) @ jenkins-example ---
  53.  
  54. [INFO] Changes detected - recompiling the module!
  55.  
  56. [INFO] Compiling 1 source file to /var/lib/jenkins/workspace/jenkins-example/target/classes
  57.  
  58. [INFO] -------------------------------------------------------------
  59.  
  60. [ERROR] COMPILATION ERROR :
  61.  
  62. [INFO] -------------------------------------------------------------
  63.  
  64. [ERROR] No compiler is provided in this environment. Perhaps you are running on a JRE rather than a JDK?
  65.  
  66. [INFO] 1 error
  67.  
  68. [INFO] -------------------------------------------------------------
  69.  
  70. [INFO] ------------------------------------------------------------------------
  71.  
  72. [INFO] BUILD FAILURE
  73.  
  74. [INFO] ------------------------------------------------------------------------
  75.  
  76. [INFO] Total time: 0.822 s
  77.  
  78. [INFO] Finished at: 2018-02-14T11:42:13Z
  79.  
  80. [INFO] Final Memory: 8M/105M
  81.  
  82. [INFO] ------------------------------------------------------------------------
  83.  
  84. [INFO] [jenkins-event-spy] Generated /var/lib/jenkins/workspace/jenkins-example@tmp/withMavenae51bbf4/maven-spy-20180214-114212-7314104439256381802284.log
  85.  
  86. [ERROR] Failed to execute goal org.apache.maven.plugins:maven-compiler-plugin:3.1:compile (default-compile) on project jenkins-example: Compilation failure
  87.  
  88. [ERROR] No compiler is provided in this environment. Perhaps you are running on a JRE rather than a JDK?
  89.  
  90. [ERROR] -> [Help 1]
  91.  
  92. [ERROR]
  93.  
  94. [ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch.
  95.  
  96. [ERROR] Re-run Maven using the -X switch to enable full debug logging.
  97.  
  98. [ERROR]
  99.  
  100. [ERROR] For more information about the errors and possible solutions, please read the following articles:
  101.  
  102. [ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/MojoFailureException
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement