본문 바로가기

나 어제 배웠다/Eclipse

메이븐(maven) 빌드시 tools.jar 못찾는 오류

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...

[WARNING] 

[WARNING] Some problems were encountered while building the effective model for egov:sims:war:1.0.0

[WARNING] 'build.plugins.plugin.version' for org.apache.maven.plugins:maven-surefire-plugin is missing. @ line 347, column 12

[WARNING] 'reporting.plugins.plugin.version' for org.codehaus.mojo:emma-maven-plugin is missing. @ line 399, column 12

[WARNING] 'reporting.plugins.plugin.version' for org.codehaus.mojo:surefire-report-maven-plugin is missing. @ line 404, column 12

[WARNING] 'reporting.plugins.plugin.version' for org.apache.maven.plugins:maven-javadoc-plugin is missing. @ line 429, column 12

[WARNING] 'reporting.plugins.plugin.version' for org.apache.maven.plugins:maven-jxr-plugin is missing. @ line 441, column 12

[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 sims 1.0.0

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

[WARNING] The POM for egovframework.rte:egovframework.rte.fdl.idgnr:jar:2.6.0 is invalid, transitive dependencies (if any) will not be available, enable debug logging for more details

[INFO] 

[INFO] --- maven-resources-plugin:2.5:resources (default-resources) @ sims ---

[debug] execute contextualize

[WARNING] Using platform encoding (UTF-8 actually) to copy filtered resources, i.e. build is platform dependent!

[INFO] Copying 15 resources

[INFO] 

[INFO] --- maven-compiler-plugin:2.3.2:compile (default-compile) @ sims ---

[INFO] Compiling 10 source files to C:\eGovFrameDev-2.6.0-FullVer\workspace\egov.sims\target\classes

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

[ERROR] COMPILATION ERROR : 

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

[ERROR] Unable to locate the Javac Compiler in:

  C:\Program Files (x86)\Java\jre7\..\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] BUILD FAILURE

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

[INFO] Total time: 1.031s

[INFO] Finished at: Fri Sep 13 18:45:22 KST 2013

[INFO] Final Memory: 6M/15M

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

[ERROR] Failed to execute goal org.apache.maven.plugins:maven-compiler-plugin:2.3.2:compile (default-compile) on project sims: Compilation failure

[ERROR] Unable to locate the Javac Compiler in:

[ERROR] C:\Program Files (x86)\Java\jre7\..\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