The JCaptcha build is based on a Maven2 module hierarchy

Mini-guides

Test and build the main jar

Build the jcaptcha-all jar

The jcaptcha-all jar contains all core dependencies like JHLabs imaging and commons-collections.

Deploy the entire site

Build the Zip distribution

A README.txt is included in the Zip and describes the distribution.

Specific testing

Some projects related to testing are located under the jcaptcha\testing directory.

Execute the command mvn test in this directory to launch all tests.

Compatibility tests requires JDK3 and JDK4 installation and settings.xml configuration like the following example :

<profiles>
      <profile>
        <id>jcaptcha</id>
        <properties>
          <siteDeployURL>file:///dev/projects/jcaptcha/site-deploy</siteDeployURL>
          <JDK3_HOME>E:\dev\apps\jdk\1.3.1_20</JDK3_HOME>
          <JDK4_HOME>E:\dev\apps\jdk\1.4.2_15</JDK4_HOME>
        </properties>
      </profile>
  </profiles>
  <activeProfiles>
    <activeProfile>jcaptcha</activeProfile>
  </activeProfiles>