2010年7月20日
     摘要: android组件介绍  阅读全文
posted @ 2011-12-09 13:25 hello| 编辑 收藏
     摘要: spring @Transactional 事务属性  阅读全文
posted @ 2011-10-27 18:21 hello| 编辑 收藏
     摘要: @Transactional spring 配置事务   阅读全文
posted @ 2011-10-27 18:06 hello| 编辑 收藏
     摘要: Spring @Transactional   阅读全文
posted @ 2011-10-27 18:00 hello| 编辑 收藏
     摘要: JQUERY验证框架  阅读全文
posted @ 2011-09-13 11:47 hello| 编辑 收藏
     摘要: 捕捉登出时间解决  阅读全文
posted @ 2011-09-01 09:06 hello| 编辑 收藏

SpringSide是基于SSH架构适用于企业级开发的启动框架。作为业务不是特别定制化的应用,它算是一个不错的起点。

版本3.3.4中,quick-start负责安装maven repository、编译三个示例项目,启动数据库,启动项目等等。而generate-project负责生成eclipse可开发的代码模板。

但如果机器上已经装有Maven版本,则quick-start的Step2编译时会报错:

Exception in thread "main" java.lang.NoClassDefFoundError: org/codehaus/plexus/c
lassworlds/launcher/Launcher
Caused by: java.lang.ClassNotFoundException: org.codehaus.plexus.classworlds.lau
ncher.Launcher
        at java.net.URLClassLoader$1.run(URLClassLoader.java:202)
        at java.security.AccessController.doPrivileged(Native Method)
        at java.net.URLClassLoader.findClass(URLClassLoader.java:190)
        at java.lang.ClassLoader.loadClass(ClassLoader.java:307)
        at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:301)
        at java.lang.ClassLoader.loadClass(ClassLoader.java:248)
Could not find the main class: org.codehaus.plexus.classworlds.launcher.Launcher

检查bat代码后发现问题出现在

						
call %MVN% %OFF_LINE% clean install -Dmaven . test.skip=true这一句话。

前面MVN设置为SpringSide自带的2.2.1版,但bin\mvn.bat中会使用系统的M2_HOME,而如果系统中安装了其他版本的MVN,则M2_HOME会被指到其他位置,从而导致编译出错。

一个解决办法是在该步之前覆盖系统中的M2_HOME,在bat中MVN的设置后面添加
set ANT_HOME=%cd%\tools\maven\apache-ant-1.8.1
set M2_HOME=%cd%\tools\maven\apache-maven-2.2.1

再次执行,成功运行。

posted @ 2011-03-15 12:11 hello| 编辑 收藏
     摘要: 开源免费论坛软件JiveJdon  阅读全文
posted @ 2011-03-10 16:18 hello| 编辑 收藏
     摘要: 如何成为Java高手  阅读全文
posted @ 2011-03-10 16:04 hello| 编辑 收藏
     摘要: 安装maven插件失败的解决办法  阅读全文
posted @ 2011-02-16 12:13 hello| 编辑 收藏
     摘要: 坐标规划  阅读全文
posted @ 2011-02-16 12:11 hello| 编辑 收藏
     摘要: Maven中央仓库——你可能不知道的细节  阅读全文
posted @ 2011-02-16 12:11 hello| 编辑 收藏
     摘要: POM重构之增还是删  阅读全文
posted @ 2011-02-16 12:07 hello| 编辑 收藏
     摘要: 多模块项目的POM重构  阅读全文
posted @ 2011-02-16 12:06 hello| 编辑 收藏
     摘要: 基于Maven的持续集成实践  阅读全文
posted @ 2011-02-16 12:04 hello| 编辑 收藏
     摘要: tomcat7新特性  阅读全文
posted @ 2011-01-20 17:54 hello 阅读(5879) | 评论 (0)编辑 收藏
     摘要: tomcat源码解析(一  阅读全文
posted @ 2011-01-20 17:53 hello| 编辑 收藏
     摘要: Spring源代码解析(一):IOC容器  阅读全文
posted @ 2011-01-20 16:59 hello| 编辑 收藏
     摘要: spring新特性  阅读全文
posted @ 2010-12-23 17:50 hello| 编辑 收藏
     摘要: 以前的笔记part3  阅读全文
posted @ 2010-12-21 17:56 hello| 编辑 收藏
     摘要: 以前的笔记part2  阅读全文
posted @ 2010-12-21 17:51 hello| 编辑 收藏
     摘要: 以前的笔记part1  阅读全文
posted @ 2010-12-21 17:46 hello| 编辑 收藏
     摘要: Spring2.5的笔记  阅读全文
posted @ 2010-12-21 17:34 hello| 编辑 收藏
     摘要: spring资料  阅读全文
posted @ 2010-12-21 17:25 hello| 编辑 收藏
     摘要: springside SpringFramework  阅读全文
posted @ 2010-12-21 17:10 hello| 编辑 收藏
     摘要: 技术参考手册  阅读全文
posted @ 2010-12-17 17:30 hello| 编辑 收藏
     摘要: SpringSide目录说明  阅读全文
posted @ 2010-12-17 17:22 hello| 编辑 收藏
     摘要: 快速开始指南  阅读全文
posted @ 2010-12-17 17:06 hello| 编辑 收藏
     摘要: 开发实践建议  阅读全文
posted @ 2010-12-17 17:01 hello| 编辑 收藏
     摘要: Modules  阅读全文
posted @ 2010-12-17 16:19 hello| 编辑 收藏
     摘要: 企业级特征示例 - Showcase Example  阅读全文
posted @ 2010-12-17 16:08 hello| 编辑 收藏
     摘要: SpringSide3.0 总述  阅读全文
posted @ 2010-12-17 15:55 hello| 编辑 收藏
     摘要: 框架风格简述.  阅读全文
posted @ 2010-12-17 15:53 hello| 编辑 收藏
     摘要: 每天使用的日常框架开发示例 - Mini Example  阅读全文
posted @ 2010-12-17 15:51 hello| 编辑 收藏
     摘要: springside更新日志  阅读全文
posted @ 2010-12-17 15:42 hello| 编辑 收藏
     摘要: java.lang.OutOfMemoryError: PermGen space  阅读全文
posted @ 2010-11-24 18:05 hello 阅读(305) | 评论 (0)编辑 收藏
     摘要: java面试必须要知道的SQL语法  阅读全文
posted @ 2010-11-24 12:19 hello 阅读(272) | 评论 (0)编辑 收藏
     摘要: Java类型和SQL类型的匹配  阅读全文
posted @ 2010-11-24 11:50 hello 阅读(1208) | 评论 (0)编辑 收藏
     摘要: 经典 Javascript 正则表达式  阅读全文
posted @ 2010-11-15 14:30 hello 阅读(152) | 评论 (0)编辑 收藏
     摘要: 业务需求决定单向关联的还是双向关联  阅读全文
posted @ 2010-11-15 11:38 hello 阅读(253) | 评论 (0)编辑 收藏
     摘要: lazy(true,false):是否延迟加载。通常设为true
  阅读全文
posted @ 2010-11-15 11:37 hello 阅读(650) | 评论 (0)编辑 收藏
    只有注册用户登录后才能阅读该文。阅读全文
posted @ 2010-11-15 11:20 hello 阅读(64) | 评论 (0)编辑 收藏
    只有注册用户登录后才能阅读该文。阅读全文
posted @ 2010-07-20 19:05 hello| 编辑 收藏
    只有注册用户登录后才能阅读该文。阅读全文
posted @ 2010-07-20 17:33 hello| 编辑 收藏