Phillip, thank you, but I'm afraid I don't know maven well enough to
learn much from such a substantial example!

Anyone have a simpler example I could start with?  If it involved a
cocoon block, that'd be perfect, but I'll take whatever I can get :-)

Johann, Phillip, thanks so much!

On 2/27/07, Phillip Rhodes <[EMAIL PROTECTED]> wrote:
I have a working hibernate3/annotations/maven project.  It successfully exports 
ddl.

Feel free to download it and compare the maven files to yours.
http://www.authsum.org/downloads/





----- Original Message -----
From: "Lally Singh" <[EMAIL PROTECTED]>
To: [email protected]
Sent: Tuesday, February 27, 2007 2:22:12 PM (GMT-0500) America/New_York
Subject: Re: [mojo-user] Basic Hibernate3/Annotations setup

sorry, still an empty file.  here's a tarfile of the entire project
(it's really small, just getting everything set up).

On 2/26/07, Johann Reyes <[EMAIL PROTECTED]> wrote:
> Hello Lally
>
> Hmm everything looks fine, might be that there is no class compiled in your
> target directory? Try running the plugin as follows:
>
> mvn compile hibernate3:hbm2ddl
>
> If this doesn't work, could you send me the annotated file to run some tests
> on it.
>
> Regards
>
> Johann Reyes
>
> -----Original Message-----
> From: Lally Singh [mailto:[EMAIL PROTECTED]
> Sent: Monday, February 26, 2007 4:03 PM
> To: [email protected]
> Subject: [mojo-user] Basic Hibernate3/Annotations setup
>
> Hey all, I must be completely lost.  The hibernate3 plugin has stopped
> complaining, but the generated schema.sql file is empty :-(.
>
> The setup is as such:
>   I have some starting annotations set up in
> edu.vt.iddl.meval.schema.SequencePoint
>   I've copy-pasted next to anything I could from the
> hibernate3-maven-plugin documentation, and set up a hibernate.cfg.xml
> file appropriately (afaik).
>
> $  mvn hibernate3:hbm2ddl
>
> Generates an empty schema.sql file.
>
> I've attached the relevant pom.xml and hibernate.cfg.xml files, and
> below's the output from maven.
>
> Seriously, thanks for any help.
>
> -ls
>
> [EMAIL PROTECTED] qgenerator]$ !mvn
> mvn hibernate3:hbm2ddl
> [INFO] Scanning for projects...
> [INFO] Searching repository for plugin with prefix: 'hibernate3'.
> [INFO]
> ----------------------------------------------------------------------------
> [INFO] Building qgenerator
> [INFO]    task-segment: [hibernate3:hbm2ddl]
> [INFO]
> ----------------------------------------------------------------------------
> [INFO] Preparing hibernate3:hbm2ddl
> [INFO] [resources:resources]
> [INFO] Using default encoding to copy filtered resources.
> [WARNING]
>         Artifact junit:junit:jar:3.8.1:test retains local scope 'test'
> overriding broader scope 'compile'
>         given by a dependency. If this is not intended, modify or
> remove the local scope.
>
> [INFO] [hibernate3:hbm2ddl]
> [INFO] Configuration XML file loaded:
> /Users/lally/Work/School/GRA/IDDL/New_System/meval/trunk/whole/qgenerator/sr
> c/main/resources/hibernate.cfg.xml
> [INFO] Configuration XML file loaded:
> /Users/lally/Work/School/GRA/IDDL/New_System/meval/trunk/whole/qgenerator/sr
> c/main/resources/hibernate.cfg.xml
> [INFO] src/main/resources/database.properties not found within the
> project. Trying absolute path.
> [INFO] No hibernate properties file loaded.
> [INFO]
> ------------------------------------------------------------------------
> [INFO] BUILD SUCCESSFUL
> [INFO]
> ------------------------------------------------------------------------
> [INFO] Total time: 3 seconds
> [INFO] Finished at: Mon Feb 26 15:50:48 EST 2007
> [INFO] Final Memory: 5M/10M
> [INFO]
> ------------------------------------------------------------------------
> [EMAIL PROTECTED] qgenerator]$ !cat
> cat `find . -name "*.sql" -print`
> [EMAIL PROTECTED] qgenerator]$
>
>
>
> ---------------------------------------------------------------------
> To unsubscribe from this list please visit:
>
>     http://xircles.codehaus.org/manage_email
>
>


---------------------------------------------------------------------
To unsubscribe from this list please visit:

    http://xircles.codehaus.org/manage_email



---------------------------------------------------------------------
To unsubscribe from this list please visit:

   http://xircles.codehaus.org/manage_email

Reply via email to