- Commons Collections uses Ant as its - primary build system, however Maven - is used for site generation. + Commons Collections uses Maven 2 as its + primary build system, however an Ant + build is also available.
You may also be interested in the v3.2 release notes.
- To build a jar file, change into Collection's root directory and run "ant jar". - The result will be in the "build" subdirectory. -
-- All tests can be run with "ant test". - A single test can be run with "ant -Dtestcase=org.apache.commons.collections.TestXxx test". -
-- To build the Javadocs, run "ant javadoc". - The result will be in "build/docs/apidocs". + The following Maven 2 commands can be used to build collections:
+mvn clean
- clean upmvn test
- compile and run the unit testsmvn site
- create io documentationmvn package
- build the jarmvn install
- build the jar and install in local maven repositorymvn site assembly:assembly
- Create the source and binary distributions- To build the Javadocs, change into Collection's root directory and run "maven javadoc". - The result will be in "target/docs/apidocs". + The following Maven 1 commands can be used to build collections:
+maven clean
- clean upmaven test
- compile and run the unit testsmaven site
- create io documentationmaven jar
- build the jarmaven dist
- Create the source and binary distributions- To build the full website, run "maven site". - The result will be in "target/docs". + The following Ant commands can be used to build collections:
+ant clean
- clean upant test
- compile and run the unit testsant javadoc
- create javadocsant jar
- build the jarant dist
- Create the source and binary distributions