springside4.01点击quick-start出现这个问题

街头粉肠 发布于 2013/01/12 20:59
阅读 1K+
收藏 0

@江南白衣 你好,想跟你请教个问题:

@江南白衣 你好,想跟你请教个问题:

[Pre-Requirement] Makesure install JDK 6.0+ and set the JAVA_HOME.
[Pre-Requirement] Makesure install Maven 3.0.3+ and set the PATH.
[Step 1] Install all springside modules and archetype to local maven repository.

[INFO] Scanning for projects...
[INFO] ------------------------------------------------------------------------
[INFO] Reactor Build Order:
[INFO]
[INFO] Springside :: Module :: Parent
[INFO] Springside :: Module :: Test
[INFO] Springside :: Module :: Core
[INFO] Springside :: Module :: Extension
[INFO] Springside :: Module
[INFO]
[INFO] ------------------------------------------------------------------------
[INFO] Building Springside :: Module :: Parent 4.0.1.GA
[INFO] ------------------------------------------------------------------------
[INFO]
[INFO] --- maven-clean-plugin:2.5:clean (default-clean) @ springside-parent ---
[INFO]
[INFO] --- maven-install-plugin:2.4:install (default-install) @ springside-paren
t ---
[INFO] Installing D:\TDDOWNLOAD\springside4-4.0.1.GA\springside4-4.0.1.GA\module
s\parent\pom.xml to C:\Users\crazykiller\.m2\repository\org\springside\springsid
e-parent\4.0.1.GA\springside-parent-4.0.1.GA.pom
[INFO]
[INFO] ------------------------------------------------------------------------
[INFO] Building Springside :: Module :: Test 4.0.1.GA
[INFO] ------------------------------------------------------------------------
[INFO]
[INFO] --- maven-clean-plugin:2.5:clean (default-clean) @ springside-test ---
[INFO] Deleting D:\TDDOWNLOAD\springside4-4.0.1.GA\springside4-4.0.1.GA\modules\
test\target
[INFO]
[INFO] --- maven-enforcer-plugin:1.2:enforce (enforce-banned-dependencies) @ spr
ingside-test ---
[INFO]
[INFO] --- maven-resources-plugin:2.6:resources (default-resources) @ springside
-test ---
[INFO] Using 'UTF-8' encoding to copy filtered resources.
[INFO] Copying 1 resource
[INFO]
[INFO] --- maven-compiler-plugin:3.0:compile (default-compile) @ springside-test
 ---
[INFO] Changes detected - recompiling the module!
[INFO] Compiling 13 source files to D:\TDDOWNLOAD\springside4-4.0.1.GA\springsid
e4-4.0.1.GA\modules\test\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] Reactor Summary:
[INFO]
[INFO] Springside :: Module :: Parent .................... SUCCESS [0.470s]
[INFO] Springside :: Module :: Test ...................... FAILURE [1.900s]
[INFO] Springside :: Module :: Core ...................... SKIPPED
[INFO] Springside :: Module :: Extension ................. SKIPPED
[INFO] Springside :: Module .............................. SKIPPED
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 2.720s
[INFO] Finished at: Sat Jan 12 20:45:21 CST 2013
[INFO] Final Memory: 7M/17M
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal org.apache.maven.plugins:maven-compiler-plugin:3.
0:compile (default-compile) on project springside-test: 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 swit
ch.
[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 rea
d the following articles:
[ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/MojoFailureExc
eption
[ERROR]
[ERROR] After correcting the problems, you can resume the build with the command

[ERROR]   mvn <goals> -rf :springside-test
Error Happen!!
请按任意键继续. . .

 

 

 

 

但是这个很奇怪,我明明已经把JAVA_HOME设好,如果没有设好是不会出现这个界面的,第一次用,不太清楚这是什么原因。[ERROR] No compiler is provided in this environment. Perhaps you are running on
a JRE rather than a JDK?

 

以下是问题补充:

@街头粉肠:Microsoft Windows [版本 6.1.7600] 版权所有 (c) 2009 Microsoft Corporation。保留所有权利。 C:\Users\crazykiller>set java_home JAVA_HOME=E:\jdk1.6 C:\Users\crazykiller> (2013/01/12 21:19)
@街头粉肠:Microsoft Windows [版本 6.1.7600] 版权所有 (c) 2009 Microsoft Corporation。保留所有权利。 C:\Users\crazykiller>mvn -v Apache Maven 3.0.3 (r1075438; 2011-03-01 01:31:09+0800) Maven home: E:\apache-maven-3.0.3 Java version: 1.6.0_38, vendor: Sun Microsystems Inc. Java home: E:\jdk1.6 Default locale: zh_CN, platform encoding: GBK OS name: "windows 7", version: "6.1", arch: "x86", family: "windows" C:\Users\crazykiller> (2013/01/12 21:27)
加载中
返回顶部
顶部