Hi Johann,
On 11/30/06, Johann Reyes <[EMAIL PROTECTED]> wrote:
Hello Kotis
...
2) The configuration-per-execution is not supported!
I had to use a global element, whcih is awkward,
since i use the hibernate3-plugin 3 times, to produce 3 diffeerent DDL
files for 3 different databases, so i NEED 3 configuration sections.
Actually, the configuration-per-execution pattern might render the
'configuration.goals' node-tree unecessary.
- Can you give me an example of this how you used to do it?
Be my guest to my old pom:
<plugin>
<groupId>org.codehaus.mojo</groupId>
<artifactId>hibernate3-maven-plugin</artifactId>
<executions>
<execution>
<id>export-db-schema</id>
<phase>process-classes</phase>
<goals>
<goal>schema-export</goal>
</goals>
</execution>
<execution>
<id>export-SYBASE</id>
<phase>site</phase>
<goals>
<goal>schema-export</goal>
</goals>
<configuration>
<hibernate>
<propertyFile>src/main/config/SYBASE.properties</propertyFile>
</hibernate>
<outputFile>SYBASE.frepor-ddl.sql</outputFile>
<drop>true</drop>
</configuration>
</execution>
<execution>
<id>export-MYSQL</id>
<phase>site</phase>
<goals>
<goal>schema-export</goal>
</goals>
<configuration>
<hibernate>
<propertyFile>src/main/config/MYSQL.properties</propertyFile>
</hibernate>
<outputFile>MYSQL.frepor-ddl.sql</outputFile>
<drop>true</drop>
</configuration>
</execution>
</executions>
<configuration>
<hibernate>
<namingStrategy>org.hibernate.cfg.ImprovedNamingStrategy</namingStrategy>
<propertyFile>src/main/config/database.properties</propertyFile>
</hibernate>
<outputFile>frepor-ddl.sql</outputFile>
<drop>true</drop>
</configuration>
<dependencies>
<dependency>
<groupId>org.jvnet.hyperjaxb2</groupId>
<artifactId>hyperjaxb2-shared</artifactId>
<version>0.5.1</version>
</dependency>
</dependencies>
</plugin>
3) I'm wondering whether it is proper behavior to break plugin config
compatiblity so much, considering that *no stable version has ever
been released*?
- Yes, I debated before going this road but because this is a snapshot, this
is the best moment to do such refactoring of the code (I know this is the
second refactoring that this plugin has gone through) since I want to offer
the flexibility that its ANT counterpart has. When I started the plugin it
was based on 2 configurations (annotations was in the works) and now we have
4. So I decided to stick more to mode of programming that the
hibernate-tools uses, so if they add something more or change something
else, it's easy to implement the changes in the MAVEN side. Probably what
I'm going to do is release this as 2.0-SNAPSHOT so these changes won't break
up any build that's working right now, and give opportunity to upgrade their
respective projects if they want to use Annotations or JPA.
I can see the merits of the new configuration, and i agree with you
that it is superior to the old functionality.
I also agree with the move to 2.0-SNAPSHOT and i would augment it with
2 actions:
a) Fork old 1.0-SNAPSHOT svn revison (based on rev 2536?), and
b) release 1.0. (i don't know whether you can use the sandbox for a release)
---
In a more personal and funny note, Johann,
I see that you preffer the "Kotis" over my proper name, "Kostis"
(a variant of "Kostas", from "Konstantine", from latin "constant").
I'm curious whether you know the word "kotis" to have a certain meaning?
Regards,
Kostis
---------------------------------------------------------------------
To unsubscribe from this list please visit:
http://xircles.codehaus.org/manage_email