On Nov 7, 2007 6:30 PM, cloude1080 <[EMAIL PROTECTED]> wrote:
>
> Hi Matt,
>
> The exact steps were
>
> 1/mvn archetype:create -DarchetypeGroupId=org.appfuse.archetypes
> -DarchetypeArtifactId=appfuse-modular-spring
> -DremoteRepositories=http://static.appfuse.org/releases
> -DarchetypeVersion=2.0 -DgroupId=com.mycompany.app -DartifactId=myproject
>
> 2/ cd myproject
>
> 3/ mvn eclipse:eclipse
>
> 4/ Create a Person.java in com.mycompany.app.model package with generated
> getters & setters & annotations.

Since you're using a modular archetype, I'm assuming you're doing this
in the "core" module?

>
> 5/ Add the mapping to hibernate.cfg.xml & cd core

FWIW, if you don't modify hibernate.cfg.xml in core, it'll be added for you.

>
> 6/ mvn appfuse:gen -Dentity=Person
>
> 7/ mvn appfuse:install -Dentity=Person

There's no need to run install with 2.0. It won't hurt, but gen will
run it for you.

>
> After this, I got person-generic-bean, personmanager-bean &
> person-sample-date.
>
> Replace the first step with struts archetype and I have webpages & actions
> generated for me.

The only way this could have happened is if you were using a "basic"
archetype for Struts. To complete the steps so everything works with a
modular archetype, try this:

cd core
mvn install
cd ../web
mvn appfuse:gen -Dentity=Person

HTH,

Matt

>
> I hope this should be details enough.
>
> Regards,
> Steve.
>
>
> mraible wrote:
> >
> > Can you please provide the exact steps you're using and the POJO
> > you're trying to generate from? I'd like to try to reproduce your
> > issue locally.
> >
> > Matt
> >
>
> --
> View this message in context: 
> http://www.nabble.com/Appfuse---Spring-MVC-tf4763259s2369.html#a13640351
> Sent from the AppFuse - User mailing list archive at Nabble.com.
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>



-- 
http://raibledesigns.com

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to