[
http://opensource.atlassian.com/projects/hibernate/browse/HHH-4499?page=c...
]
Chris Wilson commented on HHH-4499:
-----------------------------------
Also on Linux:
[INFO] ------------------------------------------------------------------------
[ERROR] BUILD ERROR
[INFO] ------------------------------------------------------------------------
[INFO] An Ant BuildException has occured: Error running ${jdk16_home}/bin/javac compiler
This seems not to be a very good fix. I think that fixing HHH-4622 (which seems trivial)
and reverting this patch would be better.
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.0-Beta-2
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:
http://opensource.atlassian.com/projects/hibernate/secure/Administrators....
-
For more information on JIRA, see:
http://www.atlassian.com/software/jira