Message-ID: <830664669.1213.1432338750838.JavaMail.firstname.lastname@example.org> Subject: Exported From Confluence MIME-Version: 1.0 Content-Type: multipart/related; boundary="----=_Part_1212_1937985074.1432338750837" ------=_Part_1212_1937985074.1432338750837 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.