same pb with 2.2-SNAPSHOT
running with -X logs the plugin is lookib for src/main/resources/hibernate.cfg.xml and src/main/resources/database.properties instead of target/classes/hibernate.cfg.xml and target/test-classes/jdbc.properties.

Pablo Ruggia a écrit :
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>
....

--
*Jean-Christophe Lagache*
SOGET SA <http://www.soget.fr>
[EMAIL PROTECTED] <mailto:[EMAIL PROTECTED]>

<http://www.linkedin.com/in/jclagache> <http://del.icio.us/jclagache>
        Docks Dombasle
4, rue des Lamaneurs
76085 LE HAVRE, France
work: +33 2 35 19 25 61
fax: +33 2 35 19 02 93



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

   http://xircles.codehaus.org/manage_email


Reply via email to