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

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

[INFO] Scanning for projects...
[WARNING] 
[WARNING] Some problems were encountered while building the effective model for com.allcam.ryb.ads:B_ADS_SCHOOL:jar:1.0-SNAPSHOT
[WARNING] 'dependencies.dependency.(groupId:artifactId:type:classifier)' must be unique: com.aliyun:aliyun-java-sdk-core:jar -> version 2.1.0 vs 2.3.8 @ com.allcam.ryb:B_ADS:1.0-SNAPSHOT, E:\01.code\Kindergarten_Code\B_ADS\pom.xml, line 735, column 16
[WARNING] 
[WARNING] It is highly recommended to fix these problems because they threaten the stability of your build.
[WARNING] 
[WARNING] For this reason, future Maven versions might no longer support building such malformed projects.
[WARNING] 
[INFO]                                                                         
[INFO] ------------------------------------------------------------------------
[INFO] Building B_ADS_SCHOOL 1.0-SNAPSHOT
[INFO] ------------------------------------------------------------------------
[INFO] Downloading: http://maven.allcam.com.cn:8081/nexus/content/groups/public/org/apache/maven/plugins/maven-install-plugin/2.5.2/maven-install-plugin-2.5.2.pom
[WARNING] Checksum validation failed: Checksum validation failed, expected  but is 6247f7b4dc0b0a710e3577c806bf73b35f3fb363 for http://maven.allcam.com.cn:8081/nexus/content/groups/public/org/apache/maven/plugins/maven-install-plugin/2.5.2/maven-install-plugin-2.5.2.pom
[INFO] Downloaded: http://maven.allcam.com.cn:8081/nexus/content/groups/public/org/apache/maven/plugins/maven-install-plugin/2.5.2/maven-install-plugin-2.5.2.pom (7 KB at 42.3 KB/sec)
[INFO] Downloading: http://maven.allcam.com.cn:8081/nexus/content/groups/public/com/allcam/ryb/ads/core/1.0-SNAPSHOT/maven-metadata.xml
[INFO] Downloaded: http://maven.allcam.com.cn:8081/nexus/content/groups/public/com/allcam/ryb/ads/core/1.0-SNAPSHOT/maven-metadata.xml (982 B at 13.5 KB/sec)
[INFO] Downloading: http://maven.allcam.com.cn:8081/nexus/content/groups/public/com/allcam/ryb/ads/core/1.0-SNAPSHOT/core-1.0-20170418.123355-39.pom
[INFO] Downloaded: http://maven.allcam.com.cn:8081/nexus/content/groups/public/com/allcam/ryb/ads/core/1.0-SNAPSHOT/core-1.0-20170418.123355-39.pom (3 KB at 48.5 KB/sec)
[INFO] Downloading: http://maven.allcam.com.cn:8081/nexus/content/groups/public/com/allcam/ryb/B_ADS/1.0-SNAPSHOT/maven-metadata.xml
[INFO] Downloaded: http://maven.allcam.com.cn:8081/nexus/content/groups/public/com/allcam/ryb/B_ADS/1.0-SNAPSHOT/maven-metadata.xml (594 B at 11.4 KB/sec)
[INFO] Downloading: http://maven.allcam.com.cn:8081/nexus/content/groups/public/com/allcam/ryb/B_ADS/1.0-SNAPSHOT/B_ADS-1.0-20170413.091756-15.pom
[INFO] Downloaded: http://maven.allcam.com.cn:8081/nexus/content/groups/public/com/allcam/ryb/B_ADS/1.0-SNAPSHOT/B_ADS-1.0-20170413.091756-15.pom (20 KB at 262.3 KB/sec)
[INFO] Downloading: http://maven.allcam.com.cn:8081/nexus/content/groups/public/com/allcam/bpm/bpm-client/0.0.1-SNAPSHOT/maven-metadata.xml
[INFO] Downloading: http://maven.allcam.com.cn:8081/nexus/content/groups/public/com/allcam/ryb/ads/core/1.0-SNAPSHOT/core-1.0-20170418.123355-39.jar
[INFO] Downloaded: http://maven.allcam.com.cn:8081/nexus/content/groups/public/com/allcam/ryb/ads/core/1.0-SNAPSHOT/core-1.0-20170418.123355-39.jar (1796 KB at 2045.6 KB/sec)
[INFO] 
[INFO] --- maven-resources-plugin:2.7:resources (default-resources) @ B_ADS_SCHOOL ---
[INFO] Using 'UTF-8' encoding to copy filtered resources.
[INFO] Copying 60 resources
[INFO] 
[INFO] --- maven-compiler-plugin:3.5.1:compile (default-compile) @ B_ADS_SCHOOL ---
[INFO] Changes detected - recompiling the module!
[INFO] Compiling 252 source files to E:\01.code\Kindergarten_Code\B_ADS\B_ADS_SCHOOL\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.990 s
[INFO] Finished at: 2017-04-18T20:38:12+08:00
[INFO] Final Memory: 18M/309M
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal org.apache.maven.plugins:maven-compiler-plugin:3.5.1:compile (default-compile) on project B_ADS_SCHOOL: 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

Similar Posts: