运行springside4-4.0.1.GA的quick-start出错? 400 报错
@江南白衣 你好,想跟你请教个问题:
出错信息如下:
[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] Error stacktraces are turned on.
[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-parent ---
[INFO] Installing E:\work\javaopensrc\springside4-4.0.1.GA\modules\parent\pom.xml to C:\Documents and Settings\dy\.m2\re
pository\org\springside\springside-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:\work\javaopensrc\springside4-4.0.1.GA\modules\test\target
[INFO]
[INFO] --- maven-enforcer-plugin:1.2:enforce (enforce-banned-dependencies) @ springside-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:\work\javaopensrc\springside4-4.0.1.GA\modules\test\target\classes
[INFO] ------------------------------------------------------------------------
[INFO] Reactor Summary:
[INFO]
[INFO] Springside :: Module :: Parent .................... SUCCESS [0.203s]
[INFO] Springside :: Module :: Test ...................... FAILURE [1.859s]
[INFO] Springside :: Module :: Core ...................... SKIPPED
[INFO] Springside :: Module :: Extension ................. SKIPPED
[INFO] Springside :: Module .............................. SKIPPED
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 2.203s
[INFO] Finished at: Thu Jan 17 16:58:14 CST 2013
[INFO] Final Memory: 13M/28M
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal org.apache.maven.plugins:maven-compiler-plugin:3.0:compile (default-compile) on project s
pringside-test: Fatal error compiling: CompilerException: IllegalArgumentException: Illegal character in path at index 1
7: jar:/C:/Documents and Settings/dy/.m2/repository/org/springframework/spring-test/3.1.3.RELEASE/spring-test-3.1.3.RELE
ASE.jar!org/springframework/test/context/junit4/AbstractJUnit4SpringContextTests.class -> [Help 1]
org.apache.maven.lifecycle.LifecycleExecutionException: Failed to execute goal org.apache.maven.plugins:maven-compiler-p
lugin:3.0:compile (default-compile) on project springside-test: Fatal error compiling
at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:217)
at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:153)
at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:145)
at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:84)
at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:59)
at org.apache.maven.lifecycle.internal.LifecycleStarter.singleThreadedBuild(LifecycleStarter.java:183)
at org.apache.maven.lifecycle.internal.LifecycleStarter.execute(LifecycleStarter.java:161)
at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:320)
at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:156)
at org.apache.maven.cli.MavenCli.execute(MavenCli.java:537)
at org.apache.maven.cli.MavenCli.doMain(MavenCli.java:196)
at org.apache.maven.cli.MavenCli.main(MavenCli.java:141)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at org.codehaus.plexus.classworlds.launcher.Launcher.launchEnhanced(Launcher.java:290)
at org.codehaus.plexus.classworlds.launcher.Launcher.launch(Launcher.java:230)
at org.codehaus.plexus.classworlds.launcher.Launcher.mainWithExitCode(Launcher.java:409)
at org.codehaus.plexus.classworlds.launcher.Launcher.main(Launcher.java:352)
Caused by: org.apache.maven.plugin.MojoExecutionException: Fatal error compiling
at org.apache.maven.plugin.compiler.AbstractCompilerMojo.execute(AbstractCompilerMojo.java:695)
at org.apache.maven.plugin.compiler.CompilerMojo.execute(CompilerMojo.java:118)
at org.apache.maven.plugin.DefaultBuildPluginManager.executeMojo(DefaultBuildPluginManager.java:101)
at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:209)
... 19 more
Caused by: org.codehaus.plexus.compiler.CompilerException
at org.codehaus.plexus.compiler.javac.JavaxToolsCompiler.compileInProcess(JavaxToolsCompiler.java:191)
at org.codehaus.plexus.compiler.javac.JavacCompiler.performCompile(JavacCompiler.java:170)
at org.apache.maven.plugin.compiler.AbstractCompilerMojo.execute(AbstractCompilerMojo.java:684)
... 22 more
Caused by: java.lang.IllegalArgumentException
at java.net.URI.create(URI.java:842)
at com.sun.tools.javac.util.DefaultFileManager$ZipFileIndexFileObject.toUri(DefaultFileManager.java:1620)
at org.codehaus.plexus.compiler.javac.JavaxToolsCompiler.compileInProcess(JavaxToolsCompiler.java:155)
... 24 more
Caused by: java.net.URISyntaxException: Illegal character in path at index 17: jar:/C:/Documents and Settings/dy/.m2/rep
ository/org/springframework/spring-test/3.1.3.RELEASE/spring-test-3.1.3.RELEASE.jar!org/springframework/test/context/jun
it4/AbstractJUnit4SpringContextTests.class
at java.net.URI$Parser.fail(URI.java:2809)
at java.net.URI$Parser.checkChars(URI.java:2982)
at java.net.URI$Parser.parseHierarchical(URI.java:3066)
at java.net.URI$Parser.parse(URI.java:3014)
at java.net.URI.<init>(URI.java:578)
at java.net.URI.create(URI.java:840)
... 26 more
[ERROR]
[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/MojoExecutionException
[ERROR]
[ERROR] After correcting the problems, you can resume the build with the command
[ERROR] mvn <goals> -rf :springside-test
Error Happen!!
我试了一下,发现用命令:mvn -e install 安装,就好了。可能是,在编译过程中,里面有自定义的异常抛出导致的。其实,那是测试自定义异常的一个测试,出现这个异常,说明是正常的。如果不出现这个异常,才是有问题。######已修复,请更新。######我今天刚试了,还是不行哦!######我今天也试了,还是不行啊######我今天也试了,不行啊
[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
7: jar:/C:/Documents and Settings/admin/.m2
######
用命令 mvn -e install又执行了一遍,
又报:[INFO] Springside :: Example :: QuickStart ............... FAILURE [5:40.593s]
[ERROR] Failed to execute goal on project quickstart: Could not resolve dependen
cies for project org.springside.examples:quickstart:war:4.0.1.GA: The following
artifacts could not be resolved: javax.mail:mail:jar:1.4, javax.activation:activ
ation:jar:1.1, commons-io:commons-io:jar:2.2: Could not transfer artifact javax.
mail:mail:jar:1.4 from/to central (http://repo.maven.apache.org/maven2): Connect
ion to http://repo.maven.apache.org refused: Connection timed out: connect -> [H
elp 1]
org.apache.maven.lifecycle.LifecycleExecutionException: Failed to execute goal o
n project quickstart: Could not resolve dependencies for project org.springside.
examples:quickstart:war:4.0.1.GA: The following artifacts could not be resolved:
javax.mail:mail:jar:1.4, javax.activation:activation:jar:1.1, commons-io:common
s-io:jar:2.2: Could not transfer artifact javax.mail:mail:jar:1.4 from/to centra
l (http://repo.maven.apache.org/maven2): Connection to http://repo.maven.apache.
org refused
版权声明:本文内容由阿里云实名注册用户自发贡献,版权归原作者所有,阿里云开发者社区不拥有其著作权,亦不承担相应法律责任。具体规则请查看《阿里云开发者社区用户服务协议》和《阿里云开发者社区知识产权保护指引》。如果您发现本社区中有涉嫌抄袭的内容,填写侵权投诉表单进行举报,一经查实,本社区将立刻删除涉嫌侵权内容。