appfuse

Use an alternative Maven Profile during test phase

生来就可爱ヽ(ⅴ<●) 提交于 2019-12-04 14:02:44
问题 I'm trying to build an application starting from an Appfuse Archetype, but I get some strange problems. For once I'd like to use a hsqldb for automated unit tests and integration tests, and a mysql db for my manual testing so that I can easily manipulate the data when I need to, so it would be nice to automatically switch profiles during the testing phases. Is there a way to do that? 回答1: I'm not sure if this is exactly what you are asking for, but you can do the following to setup multiple

[笔记]使用AppFuse 2.1.0生成项目并解决几个问题

杀马特。学长 韩版系。学妹 提交于 2019-12-03 20:55:48
step1 : 生成一个基本结构的项目 进入到http://appfuse.org/display/APF/AppFuse+QuickStart页面,在 Create a project下的Choose your Stack部分填写好项目基本信息。 我的示例如下: mvn archetype:generate -B -DarchetypeGroupId=org.appfuse.archetypes -DarchetypeArtifactId=appfuse-basic-struts-archetype -DarchetypeVersion=2.1.0 -DgroupId=com.byd.demo -DartifactId=demo -DarchetypeRepository=http://oss.sonatype.org/content/repositories/appfuse -------------------------------------------------------------------------------- 注意:在填写时尽量让GroupId部分的内容里的项目名称和ArtifactId部分的内容一样,如 GroupId: com.byd.demo ArtifactId: demo 否则在生成项目的所有代码时会报一些警告! ---------------

Use an alternative Maven Profile during test phase

旧巷老猫 提交于 2019-12-03 08:43:40
I'm trying to build an application starting from an Appfuse Archetype, but I get some strange problems. For once I'd like to use a hsqldb for automated unit tests and integration tests, and a mysql db for my manual testing so that I can easily manipulate the data when I need to, so it would be nice to automatically switch profiles during the testing phases. Is there a way to do that? I'm not sure if this is exactly what you are asking for, but you can do the following to setup multiple filters for your Maven project. <filters> <filter>/your/path/filter-${env}.properties</filter> </filters>

在eclipse中启动AppFuse应用

社会主义新天地 提交于 2019-12-02 17:12:11
本文是根据官方教程中IDE部分,通过实际测试 eclipse导入appfuse生成的maven工程 前提:eclipse装maven插件,可在 Help > Eclipse Marketplace 里搜索关键字“maven”找到对应一堆插件,我安装的是“Maven Integration for Eclipse”,装好重启eclipse 通过 File > Import > Maven > Existing Maven Projects 导入先前appfuse工程,可能提示有几个错误,我忽略了 创建调试用的额外工具( External Tools) Run > External Tools > External Tools Configurations... 新建Program Name:随意 Main里的Location:mvn命令所在路径 Working Directory:选择你要调试的工程 Arguments:写mvn的调试命令,我这里写的是“jetty:run” 进入Environment页,加入运行参数“MAVEN_OPTS” -Xdebug -Xnoagent -Djava.compiler=NONE -Xrunjdwp:transport=dt_socket,address=4000,server=y,suspend=y 保存后,点击“Run”,可以看见控制台输出:

appfuse vs roo - what would you use

我怕爱的太早我们不能终老 提交于 2019-11-29 01:02:30
问题 Appfuse vs. Roo, what would you use and why? What are the sweet spots of each. 回答1: As per the answer I gave to TheServerSide thread on this issue...: AppFuse aims to provide a single initial scaffold of your new project. This is similar to Maven archetypes or Eclipse's "new project" features in that you run them once at the start of a new project and then you maintain the scaffolded code going forward. The scaffold system has no further involvement in your project once you've run it once.

Get HttpServletRequest in Jax Rs / Appfuse application?

邮差的信 提交于 2019-11-27 22:43:41
I created a basic application shell with AppFuse, and followed the AppFuse tutorial to create a a simple RESTful service with Jax-RS. That works just fine. A call to http://localhost:8080/services/api/persons returns a collection of Person objects as a Json formatted string with the right data. I now would like to access the ServletRequest and ServletResponse objects from within a RESTful service exposed by Appfuse (to use another library that requires these objects). I think that should be doable by adding an @Context annotation, e.g. following this StackOverflow post and this forum post .

how to find out running tomcat version

大兔子大兔子 提交于 2019-11-27 05:51:41
I'm trying to get Appfuse + tomcat + jRebel working. Appfuse by default uses Cargo to download tomcat (ver. 7.0.33) and deploy the application to it. I wish to use an already installed tomcat (ver. 7.0.27) instead of the downloaded one. I made the change following the appfuse FAQ . After deploying with mvn cargo:run , how can I know that the actual running tomcat is indeed 7.0.27? I used to type a wrong URL (ex. localhost:8080/dfsfsdf ) to see it in the error page, but now it shows nothing. My $CATALINA_HOME points to my own tomcat 7.0.27. sorry forgot to mention, it's for Windows Update:

how to find out running tomcat version

て烟熏妆下的殇ゞ 提交于 2019-11-26 11:46:23
问题 I\'m trying to get Appfuse + tomcat + jRebel working. Appfuse by default uses Cargo to download tomcat (ver. 7.0.33) and deploy the application to it. I wish to use an already installed tomcat (ver. 7.0.27) instead of the downloaded one. I made the change following the appfuse FAQ. After deploying with mvn cargo:run , how can I know that the actual running tomcat is indeed 7.0.27? I used to type a wrong URL (ex. localhost:8080/dfsfsdf ) to see it in the error page, but now it shows nothing.