Hello Matt

For hibernate3, yes I recommend "process-classes". I sent a reply about that
like a week ago at [EMAIL PROTECTED] Here's the pom that I posted as an example.

            <plugin>
                <groupId>org.codehaus.mojo</groupId>
                <artifactId>hibernate3-maven-plugin</artifactId>
                <version>2.0-SNAPSHOT</version>
                <configuration>
                    <components>
                        <component>
                            <name>hbm2ddl</name>
 
<implementation>annotationconfiguration</implementation>
                        </component>
                    </components>
                    <componentProperties>
                        <jdk5>true</jdk5>
 
<propertyfile>target/classes/jdbc.properties</propertyfile>
                        <skip>${maven.test.skip}</skip>
                    </componentProperties>
                </configuration>
                <executions>
                    <execution>
                        <phase>process-classes</phase>
                        <goals>
                            <goal>hbm2ddl</goal>
                        </goals>
                    </execution>
                </executions>
                <dependencies>
                    <dependency>
                        <groupId>${jdbc.groupId}</groupId>
                        <artifactId>${jdbc.artifactId}</artifactId>
                        <version>${jdbc.version}</version>
                    </dependency>
                </dependencies>
            </plugin>

Also I just released a new snapshot of the plugin, I'll do an alpha release
probably next week.

Regards

Johann Reyes

-----Original Message-----
From: mraible [mailto:[EMAIL PROTECTED] 
Sent: Wednesday, January 31, 2007 1:50 PM
To: [email protected]
Subject: [mojo-user] DbUnit and Hibernate3 Plugins running out of order


Our users are experiencing an interesting issue on the AppFuse
project.  For some reason, sometimes the dbunit plugin fires before
the hibernate3 plugin.  Here's the bug:

http://issues.appfuse.org/browse/APF-606

Apparently, changing the phase of hbm2ddl to "process-classes" solves
the problem.  Is this recommended by these plugins' developers?

Thanks,

Matt

       <plugins>
           <plugin>
               <groupId>org.codehaus.mojo</groupId>
               <artifactId>hibernate3-maven-plugin</artifactId>
               <version>2.0-SNAPSHOT</version>
               <configuration>
                   <components>
                       <component>
                           <name>hbm2ddl</name>
                           <implementation>jpaconfiguration</implementation>
                       </component>
                   </components>
                   <componentProperties>
                       <jdk5>true</jdk5>

<propertyfile>target/test-classes/jdbc.properties</propertyfile>
                   </componentProperties>
               </configuration>
               <executions>
                   <execution>
                       <phase>test-compile</phase>
                       <goals>
                           <goal>hbm2ddl</goal>
                       </goals>
                   </execution>
               </executions>
               <dependencies>
                   <dependency>
                       <groupId>${jdbc.groupId}</groupId>
                       <artifactId>${jdbc.artifactId}</artifactId>
                       <version>${jdbc.version}</version>
                   </dependency>
               </dependencies>
           </plugin>
           <plugin>
               <groupId>org.codehaus.mojo</groupId>
               <artifactId>dbunit-maven-plugin</artifactId>
               <version>1.0-beta-1</version>
               <configuration>
                   <driver>${jdbc.driverClassName}</driver>
                   <username>${jdbc.username}</username>
                   <password>${jdbc.password}</password>
                   <url>${jdbc.url}</url>
                   <src>src/test/resources/sample-data.xml</src>
                   <type>CLEAN_INSERT</type>
                   <skip>${maven.test.skip}</skip>
               </configuration>
               <executions>
                   <execution>
                       <phase>test-compile</phase>
                       <goals>
                           <goal>operation</goal>
                       </goals>
                   </execution>
               </executions>
               <dependencies>
                   <dependency>
                       <groupId>${jdbc.groupId}</groupId>
                       <artifactId>${jdbc.artifactId}</artifactId>
                       <version>${jdbc.version}</version>
                   </dependency>
               </dependencies>
           </plugin>
       </plugins>


-- 
View this message in context:
http://www.nabble.com/DbUnit-and-Hibernate3-Plugins-running-out-of-order-tf3
150268.html#a8734280
Sent from the mojo - user mailing list archive at Nabble.com.


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