运行"mvn appfuse:gen"什么也没做 [英] running "mvn appfuse:gen" does nothing
问题描述
我正在将 Oracle数据库与 Appfuse 一起使用,但是使用上面的命令( mvn appfuse:gen )时,它什么也没做.例如,如果使用以下命令,则有望在 dao 文件夹中生成一个 PersonDao/PersonDaoHibernate 类.但是什么都没发生同时,我访问了以下页面:
I'm Using Oracle db alongside the Appfuse ,but it does nothing when using command above (mvn appfuse:gen).for example, it's expected to generate a PersonDao/PersonDaoHibernate class in the dao folder if we use the command . but nothing's happened. Meanwhile, I'v visited the following Pages:
http://static.appfuse.org/plugins/appfuse-maven-plugin/gen-model-mojo.html
http://static.appfuse.org/plugins/appfuse-maven-plugin
但不能重建在实践中满足.请问有人可以显示一个基本解释细节的教程吗(例如,从生成pojos ..到jsp文件)?
but couldn't reconstruct it's content in practice. Does anybody can show a tutorial that basically explain the details ,please (Say, from generating the pojos .. to jsp files)?
推荐答案
一旦有了JavaBean(POJO类),就可以使用以下命令生成所有层:
Once you have a JavaBean (POJO class), you could generate all layers with following command:
mvn appfuse:gen -Dentity=Name
其中"名称"必须替换为JavaBean(实体)的名称.或者,您可以使用:
where 'Name' has to be replaced with Name of your JavaBean (Entity). Alternatively, you can use:
mvn appfuse:gen -Damp.genericCore=false -Dentity=Name
如果您不想使用GenericDao和GenericManager.
if you don't want to use GenericDao and GenericManager.
为进一步调查,我建议: http://appfuse.org/display/APF/AppFuse+Maven + Plugin#AppFuseMavenPlugin-amp-crud
For further investigation I suggest: http://appfuse.org/display/APF/AppFuse+Maven+Plugin#AppFuseMavenPlugin-amp-crud
这篇关于运行"mvn appfuse:gen"什么也没做的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!