Hi !
I configured successfully my project to run a schema export on
process-test-resources phase.
But when I try to run the same goal from console (instead of executing it
automatically), it seams that the plugin doesn't look at my configuration.
Running mvn:hbm2ddl gives me an error because it's totally ignoring the
configuration that it actually use successfully when runs automatically on
process-test-resources.
Here is the interesting portion of my pom:
....
<build>
<plugins>
.....
<plugin>
<groupId>org.codehaus.mojo</groupId>
<artifactId>hibernate3-maven-plugin</artifactId>
<version>2.1</version>
<configuration>
<components>
<component>
<name>hbm2ddl</name>
<implementation>annotationconfiguration</implementation>
</component>
</components>
<componentProperties>
<drop>true</drop>
<jdk5>true</jdk5>
<propertyfile>target/test-classes/jdbc.properties</propertyfile>
<configurationfile>target/classes/hibernate.cfg.xml</configurationfile>
<skip>${maven.test.skip}</skip>
</componentProperties>
</configuration>
<executions>
<execution>
<phase>process-test-resources</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>
...
</plugins>
</build>
....