running “mvn appfuse:gen” does nothing

拜拜、爱过 提交于 2019-12-13 04:46:07

问题


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

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)?


回答1:


Once you have a JavaBean (POJO class), you could generate all layers with following command:

mvn appfuse:gen -Dentity=Name

where 'Name' has to be replaced with Name of your JavaBean (Entity). Alternatively, you can use:

mvn appfuse:gen -Damp.genericCore=false -Dentity=Name 

if you don't want to use GenericDao and GenericManager.

For further investigation I suggest: http://appfuse.org/display/APF/AppFuse+Maven+Plugin#AppFuseMavenPlugin-amp-crud



来源:https://stackoverflow.com/questions/26210109/running-mvn-appfusegen-does-nothing

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!