Dashboard > SpringSide3 Wiki > ... > Practice Guide > Generate New Project
  SpringSide3 Wiki Log In | Sign Up   View a printable version of the current page.  
  Generate New Project
Added by Calvin, last edited by Calvin on 2010-08-01  (view change)
Labels: 
(None)

在3.3.3版本中,本功能已恢复。

一、原理

    SpringSide使用maven的archetype插件进行项目生成,新版的archetype2.0插件比以往有了大幅提升(自己跟自己比啦)。

    SpringSide3.0在tools/code-generator/maven-archetypes的两个目录里存放使用Velocity语法的项目模板。

    新生成的项目中将包含保证能跑起来的项目骨架、配置文件与示例代码。

二、预要求

  • 设置环境变量JAVA_HOME指向JDK5.0安装目录。
  • 下载Maven2.2.1(all in one版已自带),并在环境变量PATH中添加 maven目录/bin。
  • 初始化SpringSide,双击bin/install-all-modules.bat安装springside-core.jar 和两个archetype项目。

三、步骤

  1. 双击bin/new-project.bat,按提示输入参数。如:
    groupId: org.springside
    artifactId:miniweb
    version: 1.0-SNAPSHOT
    package:org.springside.miniweb (注意这里比默认值多了一个artifactId)
  2. 在tools/code-generator/generated-project目录下将生成新项目。
  3. 进行必要的配置,如修改数据源,参考数据库指南
  4. 将项目加入版本管理系统向团队分发项目。

   想试运行一下的话,执行bin中的init-db.bat, 再执行jetty-run.bat

bin目录下没有install-all-modules.bat 我bin目录下只有new-project.bat、quick-start.bat、start-db.bat这三个文件,是版本的原因吗

Posted by Anonymous at 2010-03-11 15:46 | Permalink | Reply To This

我下的springside-3.3.2-all-in-one,根本就没有bin目录

Posted by Anonymous at 2010-05-23 00:41 | Permalink | Reply To This

我也很奇怪啊,bin目录在哪里?

Posted by Anonymous at 2010-05-23 22:44 | Permalink | Reply To This

我下载的也没有bin

Posted by Anonymous at 2010-06-05 08:55 | Permalink | Reply To This

我的也没有bin呀 3.3.2

Posted by Anonymous at 2010-07-06 15:57 | Permalink | Reply To This

在当前版本中,暂时取消了本功能。

搞什么,那这个版本怎么建新项目?

Posted by Anonymous at 2010-07-16 14:50 | Permalink | Reply To This

3.3.3???何时发布啊白衣?

Posted by Anonymous at 2010-08-03 10:18 | Permalink | Reply To This

没有bin文件夹

Posted by Anonymous at 2010-08-10 22:33 | Permalink | Reply To This

怎么安装 springside的archetypes模版呀

Posted by Anonymous at 2010-08-20 11:23 | Permalink | Reply To This
Site powered by a free Open Source Project / Non-profit License (more) of Confluence - the Enterprise wiki.
Learn more or evaluate Confluence for your organisation.
Powered by Atlassian Confluence, the Enterprise Wiki. (Version: 2.2.9 Build:#527 2006-09-07) - Bug/feature request - Contact Administrators
Get SpringSide at SourceForge.net. Fast, secure and Free Open Source software downloads