AppFuse试用小记

    听同事说起 AppFuse,有点兴趣,试用了下,过程记录如下:
  1. 按照官方快速教程,安装必须的软件,看的是原版,中文版有点过期,我的环境:
    Debian squeeze
    OpenJKD 6
    MySQL 5.1
    Maven 2.2.1
    Sendmail
  2. AppFuse是用mvn自动建立工程的,我选择的是AppFuse Light下的“Spring MVC + Spring Security”,命令是:
    mvn archetype:generate -B -DarchetypeGroupId=org.appfuse.archetypes -DarchetypeArtifactId=appfuse-light-spring-freemarker-archetype -DarchetypeVersion=2.2.1 -DgroupId=com.mycompany -DartifactId=myproject -DarchetypeRepository=http://oss.sonatype.org/content/repositories/appfuse
    生成跟目录:
    LICENSE.txt      
    build.xml 
    pom.xml 
    target
    build.properties 
    lib       
    src     
    tomcat.xml
    结构清晰。
  3. 官方说直接在工程目录里打命令:
    mvn jetty:run
    就能启动,实际测试下来发现缺少必要包plexus,建议修改pom.xml:
    ……
                <plugin>
                    <groupId>org.zeroturnaround</groupId>
                    <artifactId>javarebel-maven-plugin</artifactId>
                    <version>1.0.5</version>
                    <executions>
                        <execution>
                            <id>generate-rebel-xml</id>
                            <phase>process-resources</phase>
                            <goals>
                                <goal>generate</goal>
                            </goals>
                        </execution>
                    </executions>
    <!-- add start -->
                    <dependencies>
    			<dependency>
    				<groupId>org.codehaus.plexus</groupId>
    				<artifactId>plexus-utils</artifactId>
    				<version>1.4.1</version>
    				<scope>runtime</scope>
    			</dependency>
    		</dependencies>
    <!-- add end -->
                </plugin>
    ……
    然后再打mvn相关的命令,接着就是噼里啪啦一堆下载,看个人的网速如何了,我出去喝了一杯咖啡,又吃了一点零食,呵呵
  4. 访问http://localhost:8080/,出现welcome页,至此,没写一行代码,一个应用已经开跑了!





转载于:https://my.oschina.net/yygh/blog/138178

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值