OK I understand. That's a bit above my current knowledge but it would be nice to have a test-with-jdk6 profile for annotations and entitymanager that runs the test suite under JDK 6. If anyone has free time and maven knowledge, feel free to chime in :)
On 29 oct. 09, at 02:31, Steve Ebersole wrote: > The issue is that Maven wants to use the same jvm for everything. > Specifically the jvm used to lanuch maven. You can point it at > different jdks for various tasks within the build, but that is static > info unless you use a profile or such. We do this today for a few > things. We have defined a standard property for pointing to JDK 1.6 > (named jdk16_home) in Hibernate so you could make use of that like > we do > here: > http://fisheye.jboss.org/browse/Hibernate/core/trunk/jdbc4-testing/pom.xml?r=17780#l41 > > or here: > http://fisheye.jboss.org/browse/Hibernate/core/trunk/entitymanager/pom.xml?r=17850#l106 > > > > On Thu, 2009-10-29 at 01:30 +0100, Emmanuel Bernard wrote: >> Some enforcer has been added to maven to avoid improper compilation >> with the incorrect JDK. >> One of the problem with that is I can't test annotations / >> entitymanager (ie run tests) with JDK 6. Is there a way around that? >> _______________________________________________ >> hibernate-dev mailing list >> hibernate-dev@lists.jboss.org >> https://lists.jboss.org/mailman/listinfo/hibernate-dev > -- > Steve Ebersole <st...@hibernate.org> > Hibernate.org > _______________________________________________ hibernate-dev mailing list hibernate-dev@lists.jboss.org https://lists.jboss.org/mailman/listinfo/hibernate-dev