Versions Compared


  • This line was added.
  • This line was removed.
  • Formatting was changed.
Comment: Migrated to Confluence 5.3

The maven-antrun-plugin runs ant with JAVA_HOME set to the jre subdirectory of the JDK, even if the JAVA_HOME for the overall run is a JDK.

 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 antrun, which is a plugin.

 The following profile does the job. The '..' in the path hauls up past the 'jre' directory to the lib directory.

The present author got into this pickle by building out a project on a Mac, where there is no separate tools.jar, and then having the resulting build fail on a hudson instance on Linux.

Code Block
                    <value>Sun Microsystems Inc.</value>