Message-ID: <1355752045.1897.1425273147700.JavaMail.email@example.com> Subject: Exported From Confluence MIME-Version: 1.0 Content-Type: multipart/related; boundary="----=_Part_1896_334079729.1425273147700" ------=_Part_1896_334079729.1425273147700 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.