Apache Commons logo Commons Collections

Building Commons Collections

Commons Collections uses Maven 2 as its primary build system, however an Ant build is also available.

Maven 2 Goals

The following Maven 2 commands can be used to build collections:

  • mvn clean - clean up
  • mvn test - compile and run the unit tests
  • mvn site - create site documentation
  • mvn package - build the jar
  • mvn install - build the jar and install in local maven repository
  • mvn site assembly:assembly - Create the source and binary distributions

Ant Goals

The following Ant commands can be used to build collections:

  • ant clean - clean up
  • ant test - compile and run the unit tests
  • ant javadoc - create javadocs
  • ant jar - build the jar
  • ant dist - Create the source and binary distributions