<?xml version="1.0"?>
<!--
 Licensed to the Apache Software Foundation (ASF) under one or more
 contributor license agreements.  See the NOTICE file distributed with
 this work for additional information regarding copyright ownership.
 The ASF licenses this file to You under the Apache License, Version 2.0
 (the "License"); you may not use this file except in compliance with
 the License.  You may obtain a copy of the License at

      http://www.apache.org/licenses/LICENSE-2.0

 Unless required by applicable law or agreed to in writing, software
 distributed under the License is distributed on an "AS IS" BASIS,
 WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 See the License for the specific language governing permissions and
 limitations under the License.
-->
<document>
 <properties>
  <title>Building</title>
  <author email="dev@commons.apache.org">Commons Documentation Team</author>
 </properties>
<body>
<!-- ================================================== -->
<section name="Overview">
<p>
  Commons Discovery uses <a href="http://maven.apache.org">Maven</a> or
  <a href="http://ant.apache.org">Ant</a> as a build system.
</p>
</section>
<!-- ================================================== -->
<section name="Maven Goals">
  <p>
    To build a jar file, change into Discovery's root directory and run 
    <strong><code>mvn package</code></strong>.
    The result will be in the "target" subdirectory.
  </p>
  <p>
    To build the Javadocs, run <strong><code>mvn javadoc:javadoc</code></strong>.
    The result will be in "target/site/apidocs".
  </p>
  <p>
    To build the full website, run <strong><code>mvn site</code></strong>.

    The result will be in "target/site".
  </p>
  <p>
	Further details can be found in the
	<a href="http://commons.apache.org/building.html">commons build instructions</a>.
  </p>
</section>
<!-- ================================================== -->
<section name="Ant Goals">
  <p>
    To build a jar file and the javadocs, change into Discovery's root directory
    and run <strong><code>ant dist</code></strong>.
    The result will be in the "dist" subdirectory.
  </p>
</section>

<!-- ================================================== -->
<section name="Nightly Builds">
  <p>
      <a href="http://people.apache.org/builds/commons/nightly/commons-discovery/">Nightly Builds</a>
      are built once a day from the current SVN HEAD. These are provided purely for test purposes and are <b>NOT
      official releases</b> of the Apache Software Foundation - Released versions of Commons Discovery are
      available <a href="http://commons.apache.org/discovery/download_discovery.cgi">here</a>.
  </p>
</section>

<!-- ================================================== -->
</body>
</document>
