您的位置:首页 > 大数据 > 人工智能

Failed to execute goal org.apache.maven.plugins:maven-compiler-plugin:3.1:compile (default-compile)

2016-08-23 14:22 615 查看
[INFO] Scanning for projects...

[WARNING] 

[WARNING] Some problems were encountered while building the effective model for com.yuanls:ybzx2014:war:1.0.0-SNAPSHOT

[WARNING] 'dependencies.dependency.(groupId:artifactId:type:classifier)' must be unique: org.apache.poi:poi:jar -> duplicate declaration of version 3.9 @ com.yuanls:ybzx2014:[unknown-version], E:\workspace\ybzx2014\pom.xml, line 180, column 15

[WARNING] 'dependencies.dependency.(groupId:artifactId:type:classifier)' must be unique: net.sf.json-lib:json-lib:jar:jdk15 -> duplicate declaration of version 2.4 @ com.yuanls:ybzx2014:[unknown-version], E:\workspace\ybzx2014\pom.xml, line 252, column 15

[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 ybzx2014 1.0.0-SNAPSHOT

[INFO] ------------------------------------------------------------------------

[WARNING] The artifact jstl:jstl:jar:1.1.2 has been relocated to javax.servlet:jstl:jar:1.1.2

[INFO] 

[INFO] --- maven-resources-plugin:2.6:resources (default-resources) @ ybzx2014 ---

[INFO] Using 'UTF-8' encoding to copy filtered resources.

[INFO] Copying 23 resources

[INFO] 

[INFO] --- maven-compiler-plugin:3.1:compile (default-compile) @ ybzx2014 ---

[INFO] Changes detected - recompiling the module!

[INFO] Compiling 862 source files to E:\workspace\ybzx2014\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.531 s

[INFO] Finished at: 2016-08-23T10:18:54+08:00

[INFO] Final Memory: 14M/221M

[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal org.apache.maven.plugins:maven-compiler-plugin:3.1:compile (default-compile) on project ybzx2014: 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
解决方法:



在进行Maven Install操作就成功了!
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签:  eclipse maven
相关文章推荐