quick-start报错的问题

whatlookingfor 发布于 2012/12/25 15:28
阅读 785
收藏 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 E:\GitHub\springside4-4.0.1.GA\springside4-4.0.1.GA\modules\pa
rent\pom.xml to D:\Program Files\apache-maven-3.0.4\repository\org\springside\sp
ringside-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 E:\GitHub\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 E:\GitHub\springside4-4.0.1.GA\springside4-4
.0.1.GA\modules\test\target\classes
[INFO] ------------------------------------------------------------------------
[INFO] Reactor Summary:
[INFO]
[INFO] Springside :: Module :: Parent .................... SUCCESS [0.297s]
[INFO] Springside :: Module :: Test ...................... FAILURE [2.321s]
[INFO] Springside :: Module :: Core ...................... SKIPPED
[INFO] Springside :: Module :: Extension ................. SKIPPED
[INFO] Springside :: Module .............................. SKIPPED
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 2.774s
[INFO] Finished at: Tue Dec 25 15:03:39 CST 2012
[INFO] Final Memory: 13M/23M
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal org.apache.maven.plugins:maven-compiler-plugin:3.
0:compile (default-compile) on project springside-test: Fatal error compiling: C
ompilerException: IllegalArgumentException: Illegal character in path at index 1
5: jar:/D:/Program Files/apache-maven-3.0.4/repository/org/springframework/sprin
g-test/3.1.3.RELEASE/spring-test-3.1.3.RELEASE.jar!org/springframework/test/cont
ext/junit4/AbstractJUnit4SpringContextTests.class -> [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/MojoExecutionE
xception
[ERROR]
[ERROR] After correcting the problems, you can resume the build with the command

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

我把这个maven下的仓库都删了,还是不行 真心求解


加载中
0
四灭
四灭

我找到了, 你的仓库地址不要有空格。

修改D:\apache-maven-3.0.4\conf\settings.xml

  <localRepository>d:/local/repo</localRepository>


0
JackyYong
JackyYong
字面意思是有非法字符, 可以添加maven -X开关查看详细日志
0
十井
十井

引用来自“四灭”的答案

我找到了, 你的仓库地址不要有空格。

修改D:\apache-maven-3.0.4\conf\settings.xml

  <localRepository>d:/local/repo</localRepository>


正解
0
关灯侠
我用的默认地址,改了一个地址就正确了,谢谢
返回顶部
顶部