美文网首页
基于SpringSide生成项目

基于SpringSide生成项目

作者: 双子臣 | 来源:发表于2013-04-28 23:30 被阅读731次

springside简介详见:SpringSide

截至目前为止,springside的最新版本是4.0.1。我们从github上获取到最新版本的springside后,可以基于quickstart项目生成一个结构完整的项目。

如果仅仅按照说明文档就可以生成好的话,就不会有这个记录了,(没有配置的话,在新建项目的时候,是没有办法选择项目木板的)所以我们在生成之前,还需要做一点点的配置。
我们知道,这个项目的包是用maven管理的,我们配置maven之后,在你的用户主目录下有一个.m2/文件夹,如果没有,自己建一个。然后新建一个archetype-catalog.xml,内容如下:

<?xml version="1.0" encoding="UTF-8"?>  
<archetype-catalog  xmlns="http://maven.apache.org/plugins/maven-archetype-plugin/archetype-catalog/1.0.0"  
                    xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"  
                    xsi:schemaLocation="http://maven.apache.org/plugins/maven-archetype-plugin/archetype-catalog/1.0.0 http://maven.apache.org/xsd/archetype-catalog-1.0.0.xsd">  
                    <archetypes>  
                        <archetype>  
                            <groupId>org.springside.examples</groupId>  
                            <artifactId>quickstart-archetype</artifactId>  
                            <version>4.1.0-SNAPSHOT</version>  
                            <description>SpringSide :: Archetype :: QuickStart</description>  
                        </archetype>  
                    </archetypes>  
</archetype-catalog>  

OK,这就是我们要做的。配置好之后,就可以生成项目了。具体配置方法参考CreateNewProject

相关文章

网友评论

      本文标题:基于SpringSide生成项目

      本文链接:https://www.haomeiwen.com/subject/hemttttx.html