[INFO] --------------------------------------------- --------------------------- [ERROR] Failed to execute goal org.apache.maven.plugins: maven-compiler-plugin: 2.3.2: compile (default-compile) on project clothing: 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
org.apache.maven.plugins </ groupId> maven-compiler-plugin </ artifactId> 2.3.2 </ version> 1.6 </ source> 1.6 </ target> UTF-8 </ encoding> </ Configuration> </ Plugin> org.apache.maven.plugins </ groupId> maven-war-plugin </ artifactId> 2.1.1 </ version> test </ warName> </ Configuration> </ Plugin> org.apache.maven.plugins </ groupId> maven-dependency-plugin </ artifactId> install </ id> install </ phase> sources </ goal> </ Goals> </ Execution> </ Executions> </ Plugin> org.mortbay.jetty </ groupId> maven-jetty-plugin </ artifactId> 6.1.10 </ version> 0 </ scanIntervalSeconds> foo </ stopKey> 9999 </ stopPort> </ Configuration> start-jetty </ id> pre-integration-test </ phase> run </ goal> </ Goals> 0 </ scanIntervalSeconds> true </ daemon> </ Configuration> </ Execution> </ Executions> </ Plugin> </ Plugins> </ Build>
------ Solution ------------------------------------ --------
JAVA_HOME environment variable is not set.
------ For reference only -------------------------------------- -
Unlike many other errors, this exception is not generated by the Maven core itself but by a plugin. As a rule of thumb, plugins use this error to signal a failure of the build because there is something wrong with the dependencies or sources of a project, eg a compilation or a test failure.
The concrete meaning of the exception depends on the plugin so please have a look at its documentation. The documentation for many common Maven plugins can be reached via our plugin index.
------ For reference only ---------------------------------- -----
I also like that happen to change the system rather than the jdk jdk jre or upgrade version
------ For reference only ---- -----------------------------------
ah ok the
- ---- For reference only ---------------------------------------
is Well because JDk version of the problem?
------ For reference only -------------------------------------- -
how to solve? ? ? ? ? ? ?
------ For reference only -------------------------------------- -
how to solve it?
Nani?
------ For reference only ------------------------------- --------
to the reference specified in jre (is the jdk jre)
------ For reference only ---------------- -----------------------
I run as -> maven install when there is the following problem:
[INFO] --- maven-war-plugin: 2.1.1: war (default-war) @ FTS ---
[INFO] Packaging webapp
[INFO] Assembling webapp [FTS] in [F: \ Project \ Workspaces \ eclipse \ FTS \ target \ FTS]
[INFO] Processing war project
[INFO] Copying webapp resources [F: \ Project \ Workspaces \ eclipse \ FTS \ src \ main \ webapp]
[INFO] Webapp assembled in [148049 msecs]
[INFO] Building war: F: \ Project \ Workspaces \ eclipse \ FTS \ target \ FTS.war
[INFO] ----------------------------------------- -------------------------------
[INFO] BUILD FAILURE
[INFO] ----------------------------------------- -------------------------------
[INFO] Total time: 7:31.434 s
[INFO] Finished at: Thu Jul 25 16:54:05 CST 2013
[INFO] Final Memory: 12M/30M
[INFO] ----------------------------------------- -------------------------------
[ERROR] Failed to execute goal org.apache.maven.plugins: maven-war-plugin: 2.1.1: war (default-war) on project FTS: Execution default-war of goal org.apache.maven.plugins: maven-war-plugin: 2.1.1: war failed: invalid entry size -> [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/PluginExecutionException
Is there know how to do?
did you find the solution ???
回复删除