`
guoyiqi
  • 浏览: 1044298 次
社区版块
存档分类
最新评论

springside4.0quick-start.bat报错原因

 
阅读更多

checkout 之后,点击quick-start.bat,报错。
[INFO] Scanning for projects...
[ERROR] The build could not read 1 project -> [Help 1]
[ERROR]
[ERROR]   The project org.springside:h2-starts:4.0.0-SNAPSHOT (E:\workspace\spri
ng_test\tools\h2\pom.xml) has 1 error
[ERROR]     Non-resolvable parent POM: Could not find artifact org.springside:sp
ringside-parent:pom:4.0.0-SNAPSHOT and 'parent.relativePath' points at wrong loc
al POM @ line 4, column 10 -> [Help 2]
[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/ProjectBuildin
gException
[ERROR] [Help 2] http://cwiki.apache.org/confluence/display/MAVEN/UnresolvableMo
delException
系统找不到指定的路径。
请按任意键继续. . .

解决方法:

先运行springside4\trunk\modules\parent\install.bat

 

 

 

 

 

1.运行quickstart.bat出现以下错误:

[ERROR]     Non-resolvable parent POM: Failure to find org.springside:springside-parent:pom:4.0.0-SNAPSHOT in http:/
/localhost:8081/nexus/content/groups/public/ was cached in the local repository, resolution will not be reattempted
until the update interval of nexus has elapsed or updates are forced and 'parent.relativePath' points at wrong local
 POM @ line 5, column 12 -> [Help 2]

 检查后发现是要先运行springside4\modules\parent下的install.bat。

 2.之前的问题解决了,又出现了一个问题:

 D:\work\svn\springside4\examples\mini-service\bin\db\build.xml:4: Problem: failed to create task or type

antlib:org.
apache.maven.artifact.ant:dependencies
Cause: The name is undefined.
Action: Check the spelling.
Action: Check that any custom tasks/types have been declared.
Action: Check that any <presetdef>/<macrodef> declarations have taken place.
No types or tasks have been defined in this namespace yet

This appears to be an antlib declaration.
Action: Check that the implementing library exists in one of:
        -D:\Program Files\apache-ant-1.8.2\bin\..\lib
        -C:\Users\zhanglong\.ant\lib
        -a directory added on the command line with the -lib argument

 检查后发现是少了maven-ant-tasks.jar,到http://maven.apache.org/ant-tasks/download.html下载即可。

3. 运行成功,访问http://localhost:8084/mini-web/时,居然提示页面不存在。看错误信息,发现是

 ERROR: PWC6117: File "D:\work\svn\springside4\examples\mini-web\src\main\webapp\WEB-INF\views\account\userList.jsp" not found

分享到:
评论
15 楼 Rose_06 2014-07-28  
   
14 楼 lwz777 2012-07-17  
灰常不错,谢谢,安装的时候确实是有这些问题,搜半天才找到这里!
13 楼 sony87615 2012-04-13  
[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 :: Module :: Parent
[INFO] Springside :: Module :: Core
[INFO] Springside :: Module :: Extension
[INFO] Springside
[INFO]
[INFO] ------------------------------------------------------------------------
[INFO] Building Springside :: Module :: Parent 4.0.0.RC2
[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 D:\resource\springside-4.0.0.RC2\modules\parent\pom.xml to C:\
Users\Administrator\.m2\repository\org\springside\springside-parent\4.0.0.RC2\sp
ringside-parent-4.0.0.RC2.pom
[INFO]
[INFO] ------------------------------------------------------------------------
[INFO] Building Springside :: Module :: Core 4.0.0.RC2
[INFO] ------------------------------------------------------------------------
[INFO]
[INFO] --- maven-clean-plugin:2.4.1:clean (default-clean) @ springside-core ---
[INFO] Deleting D:\resource\springside-4.0.0.RC2\modules\core\target
[INFO]
[INFO] --- maven-resources-plugin:2.5:resources (default-resources) @ springside
-core ---
[debug] execute contextualize
[INFO] Using 'UTF-8' encoding to copy filtered resources.
[INFO] skip non existing resourceDirectory D:\resource\springside-4.0.0.RC2\modu
les\core\src\main\resources
[INFO]
[INFO] --- maven-compiler-plugin:2.3.2:compile (default-compile) @ springside-co
re ---
[INFO] Compiling 29 source files to D:\resource\springside-4.0.0.RC2\modules\cor
e\target\classes
[INFO] -------------------------------------------------------------
[ERROR] COMPILATION ERROR :
[INFO] -------------------------------------------------------------
[ERROR] Failure executing javac, but could not parse the error:
错误: 读取C:\Users\Administrator\.m2\repository\org\hibernate\hibernate-core\4.1
.1.Final\hibernate-core-4.1.1.Final.jar时出错; invalid CEN header (bad signature
)
错误: 读取C:\Users\Administrator\.m2\repository\net\sourceforge\htmlunit\htmluni
t\2.9\htmlunit-2.9.jar时出错; invalid CEN header (bad signature)
错误: 读取C:\Users\Administrator\.m2\repository\xalan\xalan\2.7.1\xalan-2.7.1.ja
r时出错; invalid CEN header (bad signature)
错误: 读取C:\Users\Administrator\.m2\repository\org\seleniumhq\selenium\selenium
-firefox-driver\2.20.0\selenium-firefox-driver-2.20.0.jar时出错; invalid LOC hea
der (bad signature)
错误: 读取C:\Users\Administrator\.m2\repository\org\seleniumhq\selenium\selenium
-ie-driver\2.20.0\selenium-ie-driver-2.20.0.jar时出错; invalid LOC header (bad s
ignature)
错误: 读取C:\Users\Administrator\.m2\repository\net\java\dev\jna\jna\3.4.0\jna-3
.4.0.jar时出错; invalid CEN header (bad signature)
警告: [options] 未与 -source 1.6 一起设置引导类路径
6 个错误
1 个警告

[INFO] 1 error
[INFO] -------------------------------------------------------------
[INFO] ------------------------------------------------------------------------
[INFO] Reactor Summary:
[INFO]
[INFO] Springside :: Module :: Parent .................... SUCCESS [0.251s]
[INFO] Springside :: Module :: Core ...................... FAILURE [0.964s]
[INFO] Springside :: Module :: Extension ................. SKIPPED
[INFO] Springside ........................................ SKIPPED
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 1.391s
[INFO] Finished at: Fri Apr 13 16:50:53 CST 2012
[INFO] Final Memory: 8M/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] Failure executing javac, but could not parse the error:
[ERROR] 错误: 读取C:\Users\Administrator\.m2\repository\org\hibernate\hibernate-
core\4.1.1.Final\hibernate-core-4.1.1.Final.jar时出错; invalid CEN header (bad s
ignature)
[ERROR] 错误: 读取C:\Users\Administrator\.m2\repository\net\sourceforge\htmlunit
\htmlunit\2.9\htmlunit-2.9.jar时出错; invalid CEN header (bad signature)
[ERROR] 错误: 读取C:\Users\Administrator\.m2\repository\xalan\xalan\2.7.1\xalan-
2.7.1.jar时出错; invalid CEN header (bad signature)
[ERROR] 错误: 读取C:\Users\Administrator\.m2\repository\org\seleniumhq\selenium\
selenium-firefox-driver\2.20.0\selenium-firefox-driver-2.20.0.jar时出错; invalid
LOC header (bad signature)
[ERROR] 错误: 读取C:\Users\Administrator\.m2\repository\org\seleniumhq\selenium\
selenium-ie-driver\2.20.0\selenium-ie-driver-2.20.0.jar时出错; invalid LOC heade
r (bad signature)
[ERROR] 错误: 读取C:\Users\Administrator\.m2\repository\net\java\dev\jna\jna\3.4
.0\jna-3.4.0.jar时出错; invalid CEN header (bad signature)
[ERROR] 警告: [options] 未与 -source 1.6 一起设置引导类路径
[ERROR] 6 个错误
[ERROR] 1 个警告
[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!!!
请按任意键继续. . .

谁碰到过这个问题?我运行quick-start.bat的时候报这个错,我看了maven的repository,里面是有hibernate的包的……
12 楼 每个人都可爱 2012-03-04  
把showCase运行起来了,但是怎么Debug?
11 楼 guoyiqi 2012-02-23  
先运行springside4\trunk\modules\parent\install.bat了吗?
你看一下quick-start.bat里面的脚本,看tools里的版本对不对
lai555 写道
我的tools目录下没有apache-maven-3.0.3
apache-ant-1.8.2

if exist "tools\maven\apache-maven-3.0.3\" set MVN="%cd%\tools\maven\apache-maven-3.0.3\bin\mvn.bat"
if exist "tools\ant\apache-ant-1.8.2\" set ANT="%cd%\tools\ant\apache-ant-1.8.2\bin\ant.bat"
你按这个目录放再试试
10 楼 lai555 2012-02-23  
我的tools目录下没有apache-maven-3.0.3
apache-ant-1.8.2
9 楼 lai555 2012-02-23  
你看一下quick-start.bat里面的脚本,看tools里的版本对不对
看什么版本对不对?我本地装有ANT,与MAVEN
8 楼 lai555 2012-02-23  
都做了,还是报
BUILD FAILED
E:\win7JavaWokspace\ss4\examples\mini-service\bin\db\build.xml:4: Problem: faile
d to create task or type antlib:org.apache.maven.artifact.ant:dependencies
Cause: The name is undefined.
Action: Check the spelling.
Action: Check that any custom tasks/types have been declared.
Action: Check that any <presetdef>/<macrodef> declarations have taken place.
No types or tasks have been defined in this namespace yet

This appears to be an antlib declaration.
Action: Check that the implementing library exists in one of:
        -E:\apache-ant-1.8.2\lib
        -C:\Users\zhou\.ant\lib
        -a directory added on the command line with the -lib argument


Total time: 0 seconds
"有错误发生"
请按任意键继续. . .
7 楼 guoyiqi 2012-02-21  
先运行springside4\trunk\modules\parent\install.bat
lai555 写道
我装了有apache-ant-1.8.2\lib,直接放在我安装路径下的也报这个错,请问嘛回事

有先运行springside4\trunk\modules\parent\install.bat了吗?
你看一下quick-start.bat里面的脚本,看tools里的版本对不对
6 楼 lai555 2012-02-21  
我装了有apache-ant-1.8.2\lib,直接放在我安装路径下的也报这个错,请问嘛回事
5 楼 guoyiqi 2012-02-20  
fisher 写道
下载了这个要放在那里啊?

maven-ant-tasks-2.1.3.jar

放在:springside4\trunk\tools\ant\apache-ant-1.8.2\lib目录里
4 楼 fisher 2012-02-03  
下载了这个要放在那里啊?

maven-ant-tasks-2.1.3.jar
3 楼 guoyiqi 2012-01-10  
springside4还不是很全。不过我把min-web改一下已经在用了,界面用的是j-ui。另外还有一个框架是j-hi,也是开源的,提供开发工具的,也还不错,互相交流一下
2 楼 每个人都可爱 2011-12-28  
楼主你好!最近也在研究这个,可以交流一下吗?
1 楼 paradigm 2011-12-23  
 

相关推荐

    springside-core-4.1.0.GA.jar

    《深入解析springside-core-4.1.0.GA.jar》 springside-core-4.1.0.GA.jar是一个重要的Java库,它在Java开发领域中扮演着核心角色,尤其对于那些使用Spring框架的项目。这个jar包不仅包含了springside-core-4.1.0....

    springside-core-4.2.2.GA(含关联的test.jar)

    pom.xml配置 ...mvn install:install-file -DgroupId=org.springside -DartifactId=springside-core -Dversion=4.2.2.GA -Dfile=./springside-core-4.2.2.GA.jar -Dpackaging=jar -DgeneratePom=true

    springside-core-4.2.2.GA.pom

    springside-core-4.2.2.GA.pom springside-core-4.2.2.GA.pomspringside-core-4.2.2.GA.pomspringside-core-4.2.2.GA.pomspringside-core-4.2.2.GA.pom

    有springside4.2.3-GA.jar 包

    《深入解析springside4.2.3-GA.jar:Java开发者的宝藏库》 在Java开发领域,SpringSide框架以其高效、灵活和强大的特性深受开发者喜爱。本文将围绕springside4.2.3-GA.jar这个核心组件,探讨其在Java应用中的重要...

    Springside-core-4.1.0/Springside-core-4.1.0

    本文将深入探讨SpringSide-core-4.1.0的核心特性,以及其在实际项目中的应用。 一、SpringSide概述 SpringSide是一款为Java开发者设计的开源工具集,它提供了大量的最佳实践和示例代码,帮助开发者快速上手Spring...

    springside-core-4.2.2.GA.jar

    springside-core-4.2.2.GA.jar

    springside-core-4.3.0.jar

    springside-core-4.3.0.jar 最新版springside-core的jar包

    springside-core-4.2.3-GA.jar

    springside-core-4.2.3-GA.jar,如果jar包不完整,可能会导致异常:LifecycleProcessor not initialized - call 'refresh' before invoking lifecycle methods via the context

    springside-core-4.2.2.GA相关jar包

    《SpringSide核心库4.2.2.GA详解》 SpringSide是一款基于Spring框架的开源项目,它旨在为Java开发者提供一个快速、整洁且高效的开发环境。SpringSide Core 4.2.2.GA是该项目的核心库,包含了丰富的功能和最佳实践,...

    springside-core-4.0.0.RC3.jar

    备份自己用,太难找了,springside-core.4.0.0.RC3 。

    springside-core-4.2.2.GA-tests.jar

    springside-core-4.2.2.GA-tests.jar

    springside-4.0.0.GA.zip

    这个名为“springside-4.0.0.GA.zip”的压缩包,就像是JavaEE开发者的春天,带来丰富的知识与技术启示。 SpringSide项目始于对Spring Framework的深度理解和实践,它的核心在于简化Spring的使用,让开发者能够更...

    Springside-4.2.3-GA.rar

    项目开发过程中使用到了该库,发现Maven根本无法引入该库。 发现该库官网和MAVEN下载链接均已无法使用。 经过多方查找,找到了源码,现将源码编译后的jar上传分享到此处 使用者需要手动使用maven安装到本地库中,...

    springside4-4.0.1.GA

    springside4官方最新版 SpringSide是以Spring Framework为核心的,Pragmatic风格的JavaEE应用参考示例,是JavaEE世界中的主流技术选型,最佳实践的总结与演示。

    springside3-core-3.0.4.jar

    springside3-core-3.0.4.jar

    springside-core-4.2.2.GA

    本文将对"Springside-core-4.2.2.GA"进行深入剖析,探讨其核心特性、主要功能以及如何在实际项目中运用。 一、SpringSide核心概述 SpringSide的核心在于其模块化设计,它将Spring的各个组件进行了封装和抽象,提供...

Global site tag (gtag.js) - Google Analytics