springside4.0quick-start.bat报错原因
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