Pure Ant Distros

If you don't want to require Maven in your shipped source distributions, JAM provides two commands that can help:

  1. jam:get-libs - generates an Ant script with http 'gets' for each dependency.
  2. jam:copy-libs - copies all dependencies from the local repository to the project lib directory.

Distro Light

The jam:get-libs goal is for light distros or distributions shipped without the dependency libraries. You can call the generated get-libs.xml module from your install script to download the dependencies the first time a user builds your application. You will probably have to add build dependencies to your project.xml file such as XDoclet and JUnit that are normally managed by JAM to make your installations go smoothly.

Classic Distro

The jam:copy-libs goal is meant for complete, stand-alone distros or distributions that ship with all the dependency libraries. Perform these steps to create a stand-alone distro:

  • Add build dependencies to your project.xml file such as XDoclet and JUnit that are normally managed by JAM. You can use the project.xml file in JAM's install directory as a superset template. (note: at some point it would be nice to automate this task!)
  • type: maven jam:copy-libs
  • Now point maven.repo at the lib directory in the top of your build file.
  • Verify that you have all the required dependencies by doing a clean build. Add dependencies as needed.
  • Optionally you can place a copy of JAM within your project and point jam.home to this location.