执行quick-start.bat报错,确定JDK与Maven已经安装好了

gongxu5566 发布于 2012/06/22 09:01
阅读 1K+
收藏 0

报这个错误是为什么?

[Pre-Requirement] Makesure install JDK 6.0+ and set the JAVA_HOME.
[Pre-Requirement] Makesure install Maven 3.0.4+ and set the PATH.
[Step 1] Install all springside modules to local maven repository.
[INFO] Scanning for projects...
[INFO] ------------------------------------------------------------------------
[INFO] Reactor Build Order:
[INFO]
[INFO] Springside :: Project
[INFO] Springside :: Module :: Core
[INFO] Springside :: Module :: Extension
[INFO]
[INFO] ------------------------------------------------------------------------
[INFO] Building Springside :: Project 4.0.0.RC3
[INFO] ------------------------------------------------------------------------
[INFO]
[INFO] --- maven-clean-plugin:2.4.1:clean (default-clean) @ springside-parent --
-
[INFO]
[INFO] --- maven-install-plugin:2.3.1:install (default-install) @ springside-par
ent ---
[INFO] Installing E:\springside-4.0.0.RC3\pom.xml to C:\Users\Administrator\.m2\
repository\org\springside\springside-parent\4.0.0.RC3\springside-parent-4.0.0.RC
3.pom
[INFO]
[INFO] ------------------------------------------------------------------------
[INFO] Building Springside :: Module :: Core 4.0.0.RC3
[INFO] ------------------------------------------------------------------------
[INFO] ------------------------------------------------------------------------
[INFO] Reactor Summary:
[INFO]
[INFO] Springside :: Project ............................. SUCCESS [2.791s]
[INFO] Springside :: Module :: Core ...................... FAILURE [11.241s]
[INFO] Springside :: Module :: Extension ................. SKIPPED
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 15.148s
[INFO] Finished at: Thu Jun 21 22:31:41 CST 2012
[INFO] Final Memory: 6M/15M
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal on project springside-core: Could not resolve dep
endencies for project org.springside:springside-core🏺4.0.0.RC3: Failure to f
ind org.seleniumhq.selenium:selenium-ie-driver🏺2.21.0 in http://repo1.maven.
org/maven2 was cached in the local repository, resolution will not be reattempte
d until the update interval of offical has elapsed or updates are forced -> [Hel
p 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/DependencyReso
lutionException
[ERROR]
[ERROR] After correcting the problems, you can resume the build with the command

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

加载中
0
Fred
Fred

maven依赖springside-core没有在本地找到。 spingside类库没有放到maven仓库里去。

你看看你下载的springside文件夹里面有木有modules

0
gongxu5566
gongxu5566

有modules目录!

[INFO] -------------------------------------------------------------
[ERROR] COMPILATION ERROR :
[INFO] -------------------------------------------------------------
[ERROR] Unable to locate the Javac Compiler in:
  C:\Program Files\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] Reactor Summary:
[INFO]
[INFO] Springside :: Project ............................. SUCCESS [24.000s]
[INFO] Springside :: Module :: Core ...................... FAILURE [5:15.907s]
[INFO] Springside :: Module :: Extension ................. SKIPPED
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 5:40.594s
[INFO] Finished at: Mon Jul 09 20:31:00 CST 2012
[INFO] Final Memory: 9M/22M
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal org.apache.maven.plugins:maven-compiler-plugin:2.
3.2:compile (default-compile) on project springside-core: Compilation failure
[ERROR] Unable to locate the Javac Compiler in:
[ERROR] C:\Program Files\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 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-core
Error Happen!!!
请按任意键继续. . .

0
gongxu5566
gongxu5566
好像搞定了,原因是我的jdk没弄对,之前都是弄成jre了。。。
返回顶部
顶部