Warning: file_get_contents(/data/phpspider/zhask/data//catemap/9/java/379.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Java Maven安装中出错&;Maven Build_Java_Maven - Fatal编程技术网

Java Maven安装中出错&;Maven Build

Java Maven安装中出错&;Maven Build,java,maven,Java,Maven,当我进行Mave安装和构建时,它显示了一个错误 Maven Install ================ SLF4J: Failed to load class "org.slf4j.impl.StaticLoggerBinder". SLF4J: Defaulting to no-operation (NOP) logger implementation SLF4J: See http://www.slf4j.org/codes.html#StaticLoggerBinde

当我进行Mave安装和构建时,它显示了一个错误

    Maven Install
   ================

SLF4J: Failed to load class "org.slf4j.impl.StaticLoggerBinder".
SLF4J: Defaulting to no-operation (NOP) logger implementation
SLF4J: See http://www.slf4j.org/codes.html#StaticLoggerBinder for further details.
[INFO] Scanning for projects...
[INFO] ------------------------------------------------------------------------
[INFO] Reactor Build Order:
[INFO] 
[INFO] parent
[INFO] KMS DAO
[INFO] ABSTRACT ECM SERVICES
[INFO] ECM SERVICES
[INFO] KMS SERVICES
[INFO] WORKFLOW WEB
[INFO]                                                                         
[INFO] ------------------------------------------------------------------------
[INFO] Building parent 0.0.1-SNAPSHOT
[INFO] ------------------------------------------------------------------------
[INFO] 
[INFO] --- maven-install-plugin:2.3.1:install (default-install) @ KMS-PARENT ---
[INFO] Installing D:\Work_Space\Shamila_ACDR_1.2\KMS-PARENT\pom.xml to C:\Users\Sharmila\.m2\repository\com\shamila\KMS-PARENT\0.0.1-SNAPSHOT\KMS-PARENT-0.0.1-SNAPSHOT.pom
[INFO]                                                                         
[INFO] ------------------------------------------------------------------------
[INFO] Building KMS DAO 0.0.1-SNAPSHOT
[INFO] ------------------------------------------------------------------------
[INFO] 
[INFO] --- maven-resources-plugin:2.5:resources (default-resources) @ KMS-DAO ---
[debug] execute contextualize
[INFO] Using 'UTF-8' encoding to copy filtered resources.
[INFO] Copying 3 resources
[INFO] 
[INFO] --- maven-compiler-plugin:2.3.2:compile (default-compile) @ KMS-DAO ---
[INFO] Compiling 179 source files to D:\Work_Space\Shamila_ACDR_1.2\KMS-PARENT\KMS-DAO\target\classes
[INFO] -------------------------------------------------------------
[ERROR] COMPILATION ERROR : 
[INFO] -------------------------------------------------------------
[ERROR] Unable to locate the Javac Compiler in:
C:\Program Files\Java\jre6\..\lib\tools.jar
Please ensure you are using JDK 1.4 or above and
not a JRE (the com.sun.tools.javac.Main class is required).
In most cases you can change the location of your Java
installation by setting the JAVA_HOME environment variable.
[INFO] 1 error
[INFO] -------------------------------------------------------------
[INFO] ------------------------------------------------------------------------
[INFO] Reactor Summary:
[INFO] 
[INFO] parent ............................................ SUCCESS [1.060s]
[INFO] KMS DAO ........................................... FAILURE [2.077s]
[INFO] ABSTRACT ECM SERVICES ............................. SKIPPED
[INFO] ECM SERVICES ...................................... SKIPPED
[INFO] KMS SERVICES ...................................... SKIPPED
[INFO] WORKFLOW WEB ...................................... SKIPPED
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 3.616s
[INFO] Finished at: Tue Aug 12 12:16:34 IST 2014
[INFO] Final Memory: 4M/15M
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal org.apache.maven.plugins:maven-compiler-plugin:2.3.2:compile  (default-compile) on project KMS-DAO: Compilation failure
[ERROR] Unable to locate the Javac Compiler in:
[ERROR] C:\Program Files\Java\jre6\..\lib\tools.jar
[ERROR] Please ensure you are using JDK 1.4 or above and
[ERROR] not a JRE (the com.sun.tools.javac.Main class is required).
[ERROR] In most cases you can change the location of your Java
[ERROR] installation by setting the JAVA_HOME environment variable.
[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
[ERROR] 
[ERROR] After correcting the problems, you can resume the build with the command
[ERROR]   mvn <goals> -rf :KMS-DAO
Maven安装
================
SLF4J:未能加载类“org.SLF4J.impl.StaticLoggerBinder”。
SLF4J:默认为无操作(NOP)记录器实现
SLF4J:参见http://www.slf4j.org/codes.html#StaticLoggerBinder 详情请参阅。
[信息]正在扫描项目。。。
[信息]------------------------------------------------------------------------
[信息]反应堆建造顺序:
[信息]
[信息]家长
[信息]KMS DAO
[信息]抽象ECM服务
[信息]ECM服务
[信息]KMS服务
[信息]工作流网站
[信息]
[信息]------------------------------------------------------------------------
[信息]正在生成父级0.0.1-SNAPSHOT
[信息]------------------------------------------------------------------------
[信息]
[信息]---maven安装插件:2.3.1:install(默认安装)@KMS-PARENT---
[信息]正在将D:\Work\u Space\Shamila\u ACDR\u 1.2\KMS-PARENT\pom.xml安装到C:\Users\Sharmila\.m2\repository\com\Shamila\KMS-PARENT\0.0.1-SNAPSHOT\KMS-PARENT-0.0.1-SNAPSHOT.pom
[信息]
[信息]------------------------------------------------------------------------
[信息]正在构建KMS DAO 0.0.1-SNAPSHOT
[信息]------------------------------------------------------------------------
[信息]
[信息]---maven资源插件:2.5:resources(默认资源)@KMS-DAO---
[调试]执行上下文化
[信息]使用“UTF-8”编码复制筛选的资源。
[信息]正在复制3个资源
[信息]
[信息]---maven编译器插件:2.3.2:编译(默认编译)@KMS-DAO---
[信息]正在将179个源文件编译为D:\Work\u Space\Shamila\u ACDR\u 1.2\KMS-PARENT\KMS-DAO\target\classes
[信息]-------------------------------------------------------------
[错误]编译错误:
[信息]-------------------------------------------------------------
[错误]无法在以下位置找到Javac编译器:
C:\ProgramFiles\Java\jre6\..\lib\tools.jar
请确保您使用的是JDK 1.4或更高版本,并且
不是JRE(需要com.sun.tools.javac.Main类)。
在大多数情况下,您可以更改Java的位置
通过设置JAVA_HOME环境变量进行安装。
[INFO]1错误
[信息]-------------------------------------------------------------
[信息]------------------------------------------------------------------------
[信息]反应堆概要:
[信息]
[信息]家长。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。成功[1.060s]
[信息]KMS DAO。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。故障[2.077s]
[信息]抽象ECM服务。。。。。。。。。。。。。。。。。。。。。。。。。。。。。跳过
[信息]ECM服务。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。跳过
[信息]KMS服务。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。跳过
[信息]工作流网站。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。跳过
[信息]------------------------------------------------------------------------
[信息]生成失败
[信息]------------------------------------------------------------------------
[信息]总时间:3.616s
[信息]完成时间:2014年8月12日星期二12:16:34
[信息]最终内存:4M/15M
[信息]------------------------------------------------------------------------
[错误]无法在项目KMS-DAO上执行目标org.apache.maven.plugins:maven编译器plugin:2.3.2:compile(默认编译):编译失败
[错误]无法在以下位置找到Javac编译器:
[错误]C:\Program Files\Java\jre6\..\lib\tools.jar
[错误]请确保您使用的是JDK 1.4或更高版本,以及
[错误]不是JRE(需要com.sun.tools.javac.Main类)。
[错误]在大多数情况下,您可以更改Java的位置
[错误]通过设置JAVA_HOME环境变量进行安装。
[错误]->[帮助1]
[错误]
[错误]要查看错误的完整堆栈跟踪,请使用-e开关重新运行Maven。
[错误]使用-X开关重新运行Maven以启用完整调试日志记录。
[错误]
[错误]有关错误和可能的解决方案的更多信息,请阅读以下文章:
[错误][帮助1]http://cwiki.apache.org/confluence/display/MAVEN/MojoFailureException
[错误]
[错误]纠正问题后,可以使用命令恢复生成
[错误]mvn-rf:KMS-DAO
同样的事情也发生在maven build上

      Maven Build
   ==================

SLF4J: Failed to load class "org.slf4j.impl.StaticLoggerBinder".
SLF4J: Defaulting to no-operation (NOP) logger implementation
SLF4J: See http://www.slf4j.org/codes.html#StaticLoggerBinder for further details.
[INFO] Scanning for projects...
[INFO] ------------------------------------------------------------------------
[INFO] Reactor Build Order:
[INFO] 
[INFO] parent
[INFO] KMS DAO
[INFO] ABSTRACT ECM SERVICES
[INFO] ECM SERVICES
[INFO] KMS SERVICES
[INFO] WORKFLOW WEB
[INFO]                                                                         
[INFO] ------------------------------------------------------------------------
[INFO] Building parent 0.0.1-SNAPSHOT
[INFO] ------------------------------------------------------------------------
[INFO]                                                                         
[INFO] ------------------------------------------------------------------------
[INFO] Building KMS DAO 0.0.1-SNAPSHOT
[INFO] ------------------------------------------------------------------------
[INFO] 
[INFO] --- maven-resources-plugin:2.5:resources (default-resources) @ KMS-DAO ---
[debug] execute contextualize
[INFO] Using 'UTF-8' encoding to copy filtered resources.
[INFO] Copying 3 resources
[INFO] 
[INFO] --- maven-compiler-plugin:2.3.2:compile (default-compile) @ KMS-DAO ---
[INFO] Compiling 179 source files to D:\Work_Space\Shamila_ACDR_1.2\KMS-PARENT\KMS-DAO\target\classes
[INFO] -------------------------------------------------------------
[ERROR] COMPILATION ERROR : 
[INFO] -------------------------------------------------------------
[ERROR] Unable to locate the Javac Compiler in:
C:\Program Files\Java\jre6\..\lib\tools.jar
Please ensure you are using JDK 1.4 or above and
not a JRE (the com.sun.tools.javac.Main class is required).
In most cases you can change the location of your Java
installation by setting the JAVA_HOME environment variable.
[INFO] 1 error
[INFO] -------------------------------------------------------------
[INFO] ------------------------------------------------------------------------
[INFO] Reactor Summary:
[INFO] 
[INFO] parent ............................................ SUCCESS [0.317s]
[INFO] KMS DAO ........................................... FAILURE [2.066s]
[INFO] ABSTRACT ECM SERVICES ............................. SKIPPED
[INFO] ECM SERVICES ...................................... SKIPPED
[INFO] KMS SERVICES ...................................... SKIPPED
[INFO] WORKFLOW WEB ...................................... SKIPPED
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 3.105s
[INFO] Finished at: Tue Aug 12 12:24:12 IST 2014
[INFO] Final Memory: 4M/15M
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal org.apache.maven.plugins:maven-compiler-plugin:2.3.2:compile   (default-compile) on project KMS-DAO: Compilation failure
[ERROR] Unable to locate the Javac Compiler in:
[ERROR] C:\Program Files\Java\jre6\..\lib\tools.jar
[ERROR] Please ensure you are using JDK 1.4 or above and
[ERROR] not a JRE (the com.sun.tools.javac.Main class is required).
[ERROR] In most cases you can change the location of your Java
[ERROR] installation by setting the JAVA_HOME environment variable.
[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
[ERROR] 
[ERROR] After correcting the problems, you can resume the build with the command
[ERROR]   mvn <goals> -rf :KMS-DAO
Maven构建
==================
SLF4J:未能加载类“org.SLF4J.impl.StaticLoggerBinder”。
SLF4J:默认为无操作(NOP)记录器实现
SLF4J:参见http://www.slf4j.org/codes.html#StaticLoggerBinder 详情请参阅。
[信息]正在扫描项目。。。
[信息]------------------------------------------------------------------------
[信息]反应堆建造顺序:
[信息]
[信息]家长
[信息]KMS DAO
[信息]抽象ECM服务
[信息]ECM服务
[信息]KMS服务
[信息]工作流网站
[信息]
[信息]------------------------------------------------------------------------
[信息]正在生成父级0.0.1-SNAPSHOT
[信息]------------------------------------------------------------------------
[信息]
[信息]------------------------------------------------------------------------
[信息]正在构建KMS DAO 0.0.1-SNAPSHOT
[信息]------------------------------------------------------------------------
[信息]
[信息]---maven资源插件:2.5:resources(默认资源)@KMS-DAO---
[调试]执行上下文化
[信息]使用“UTF-8”编码复制筛选的资源。
[信息]正在复制3个资源
[信息]
[信息]---maven编译器插件:2.3.2:编译(默认编译)@KMS-DAO---
[信息]正在将179个源文件编译为D:\Work\u Space\Shamila\u ACDR\u 1.2\KMS-PARENT\KMS-DAO\target\classes
[信息]-------------------------------------------------------------
[错误]编译错误:
[信息]---------------------------------------------------------