I am looking to migrate Hibernate to use Maven for building.  I am
currently running into a problem porting the Hibernate testsuite.  The
Hibernate testsuite is mainly a bunch of functional and integration
tests and not really unit tests per-se.  But it is built on top of
Junit.

Anyway, the problem I am facing is in regards to the need to run the
Hibernate test suite against multiple databases and JDBC drivers.
Basically I need the ability to vary (1) Hibernate configuration and (2)
test dependencies (jdbc drivers) per "environment".  Logically one would
think of profiles to help solve this, with one profile per
"environment".  And in fact defining all the  profiles in the pom does
in fact work, as i can separately define (1) dependencies and (2)
resources (or properties) per profile.  

However, the trick is that I do not know all these execution
environments up front.  And thus I cannot define them in the pom.  "user
supplied" profiles.xmls would be an option, except that profiles.xml is
not allowed to specify either of the two things I need (ok, ok, I could
munge the requirements and get properties+resourceFilters to do the
trick for Hibernate configuration).  

Anyone have any thoughts on how this may be achievable?

Thanks,
Steve


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to