Message-ID: <1782655791.6499.1419209112440.JavaMail.firstname.lastname@example.org> Subject: Exported From Confluence MIME-Version: 1.0 Content-Type: multipart/related; boundary="----=_Part_6498_1637774770.1419209112439" ------=_Part_6498_1637774770.1419209112439 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Content-Location: file:///C:/exported.html
The maven-antrun-plugin runs ant with JAVA_HOME set to the jre s= ubdirectory of the JDK, even if the JAVA_HOME for the overall run is a JDK.==20
There is documentation elsewhere about how to create a dependency = at the project level for the JDK's tools.jar, but this does not help out an= trun, which is a plugin.=20
The following profile does the job. The '..' in the path hauls up = past the 'jre' directory to the lib directory.=20
The present author got into this pickle by building out a project on a M=
ac, where there is no separate tools.jar, and then having the resulting bui=
ld fail on a hudson instance on Linux.