]
Steve Ebersole closed HHH-4499.
-------------------------------
Resolution: Fixed
Account for modules needing JDK 1.6
-----------------------------------
Key: HHH-4499
URL:
http://opensource.atlassian.com/projects/hibernate/browse/HHH-4499
Project: Hibernate Core
Issue Type: Task
Components: build
Reporter: Steve Ebersole
Assignee: Steve Ebersole
Fix For: 3.5
Currently both the hibernate-infinispan and hibernate-jdb4-testing modules need JDK 1.6,
whereas the rest of Hibernate needs to be built using JDK 1.5. The solution is to fork
both javac and surefire to pass in the JDK:
</plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-compiler-plugin</artifactId>
<configuration>
<executable>${jdk16_home}/bin/javac</executable>
<fork>true</fork>
<verbose>true</verbose>
<compilerVersion>1.6</compilerVersion>
<source>1.6</source>
<target>1.6</target>
</configuration>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-surefire-plugin</artifactId>
<configuration>
<jvm>${jdk16_home}/bin/java</jvm>
...
</configuration>
</plugin>
Notice the use of the jdk16_home property to allow this to be customized to each
developers machine...
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: