|
RE: Hibernate 3 Plugin doesn't fire sometimes: msg#00292java.maven-plugins.mojo.devel
Hello Matt Once I'm able to publish the next snapshot you an use the following snippet of code: <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> You'll be able to bypass the plugin using the maven.test.skip flag Regards Johann Reyes -----Original Message----- From: Matt Raible [mailto:mraible@xxxxxxxxx] Sent: Saturday, January 06, 2007 12:03 AM To: dev@xxxxxxxxxxxxxxxxx Subject: Re: [mojo-dev] Hibernate 3 Plugin doesn't fire sometimes Sorry, I figured it out. It is wierd that after you manually execute "mvn hibernate3:hbm2ddl" that it works. I corrected my pom and now everything works. Here's what I had: <plugin> <groupId>org.codehaus.mojo</groupId> <artifactId>hibernate3-maven-plugin</artifactId> <version>2.0-SNAPSHOT</version> <configuration> <components> <component> <name>hbm2ddl</name> </component> </components> <componentProperties> <jdk5>true</jdk5> <!--scan-jars>true</scan-jars--> </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> Changing it to the following solved the problem: <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> </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> BTW, what's the best phase to execute this plugin during? I'd like to skip it when running mvn with -Dmaven.test.skip=true. Thanks, Matt On 1/5/07, Johann Reyes <jreyes@xxxxxxxxxxxxxx> wrote: > Hello Matt > > That's weird, from where I can download the code that's being run? > > Regards > > Johann Reyes > > -----Original Message----- > From: Matt Raible [mailto:mraible@xxxxxxxxx] > Sent: Friday, January 05, 2007 7:29 PM > To: dev@xxxxxxxxxxxxxxxxx > Subject: [mojo-dev] Hibernate 3 Plugin doesn't fire sometimes > > I'm having a weird issue with the Hibernate plugin (2.0-SNAPSHOT) > that's been reported by a few other folks using AppFuse. > > When creating a new project using our archetypes, the first time you > run "mvn jetty:run-war", it doesn't fire "hibernate3:hbm2ddl". > However, if you manually run "mvn hibernate3:hbm2ddl", it runs after > that. > > Any ideas? > > Thanks, > > Matt > > -- > http://raibledesigns.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 > > -- http://raibledesigns.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
|
|
| <Prev in Thread] | Current Thread | [Next in Thread> |
|---|---|---|
| Previous by Date: | [VOTE] Invite David Vicente as a Mojo Committer, Raphaël Piéroni |
|---|---|
| Next by Date: | Re: [vote] Release c-builds plugins (and tools) 1.0-alpha-3, John Casey |
| Previous by Thread: | Re: Hibernate 3 Plugin doesn't fire sometimes, Matt Raible |
| Next by Thread: | Re: Hibernate 3 Plugin doesn't fire sometimes, Matt Raible |
| Indexes: | [Date] [Thread] [Top] [All Lists] |
| News | FAQ | advertise |