Hi Johann,

Thanks for the info.  I've updated my pom.xml to reflect your suggestions.  I 
don't see the errors any more, but the hbm2java goal doesn't seem to be doing 
anything right now.  Here's my pom.xml:

<plugin>
                <groupId>org.codehaus.mojo</groupId>
                <artifactId>hibernate3-maven-plugin</artifactId>
                <version>2.0-alpha-2</version>
                <configuration>
                    <components>
                        <component>
                            <name>hbm2java</name>
                            <implementation>
                                jpaconfiguration
                            </implementation>
                        </component>
                    </components>
                    <componentProperties>
                        <jdk5>true</jdk5>
                        <ejb3>false</ejb3>
                        <drop>false</drop>
                        <create>false</create>
                    </componentProperties>
                </configuration>
            </plugin>

Here's the command line output:

C:\workspace\create831>mvn hibernate3:hbm2java
[INFO] Scanning for projects...
[INFO] Searching repository for plugin with prefix: 'hibernate3'.
Downloading: http://repo1.maven.org/maven2/oracle/jdbc/driver/oracle.jdbc.driver
/10.2.0.3/oracle.jdbc.driver-10.2.0.3.pom
[INFO] -------------------------------------------------------------------------
---
[INFO] Building Create EDI 831 file from EDI 820 file
[INFO]    task-segment: [hibernate3:hbm2java]
[INFO] -------------------------------------------------------------------------
---
[INFO] Preparing hibernate3:hbm2java
[INFO] [resources:resources]
[INFO] Using default encoding to copy filtered resources.
Downloading: http://repo1.maven.org/maven2/oracleApps/oracleApps/1.0/oracleApps-
1.0.pom
[INFO] [hibernate3:hbm2java]
[INFO] using jpaconfiguration task.
16:46:45,916  INFO org.hibernate.ejb.Version - Hibernate EntityManager 3.2.0.GA
16:46:45,931  INFO org.hibernate.cfg.annotations.Version - Hibernate Annotations
 3.2.0.GA
16:46:45,947  INFO org.hibernate.cfg.Environment - Hibernate 3.2.0.cr5
16:46:45,947  INFO org.hibernate.cfg.Environment - hibernate.properties not foun
d
16:46:45,947  INFO org.hibernate.cfg.Environment - Bytecode provider name : cgli
b
16:46:45,947  INFO org.hibernate.cfg.Environment - using JDK 1.4 java.sql.Timest
amp handling
[INFO] src/main/resources/hibernate.cfg.xml not found within the project. Trying
 absolute path.
[INFO] No hibernate configuration file loaded.
[INFO] src/main/resources/database.properties not found within the project. Tryi
ng absolute path.
[INFO] No hibernate properties file loaded.
16:46:46,244  INFO org.hibernate.tool.Version - Hibernate Tools 3.2.0.b9
[INFO] ------------------------------------------------------------------------
[INFO] BUILD SUCCESSFUL
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 2 seconds
[INFO] Finished at: Sat Jan 12 16:46:46 PST 2008
[INFO] Final Memory: 4M/7M
[INFO] ------------------------------------------------------------------------

I guess I'm still a little new to Maven, but it doesn't seem to do anything.  
I've tried playing around with my persistence.xml file - trying to see if it 
even does a connection to the DB.  It seemingly doesn't - i.e. when I change 
the connection properties, nothing is different in the command line output...  
So somehow, something is wrong.  Do you have any suggestions?  Thanks!

----- Original Message ----
From: Johann Reyes <[EMAIL PROTECTED]>
To: [email protected]
Sent: Saturday, January 12, 2008 9:55:07 AM
Subject: Re: [mojo-user] Hibernate3 plugin issue - invalid configuration from 
hbm2java goal


Hello Lawrence

First of all, you need to use "jpaconfiguration", no "annotationconfiguration"

And you don't need to specify the configurationfile property when is JPA.

Regards


Johann Reyes







      
____________________________________________________________________________________
Never miss a thing.  Make Yahoo your home page. 
http://www.yahoo.com/r/hs

Reply via email to