Get started with the JCaptcha build



The JCaptcha build is based on a Maven2 module hierarchy

Mini-guides

Test and build the main jar

  • Execute mvn clean install in the jcaptcha directory

Build the jcaptcha-all jar

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

  • Execute mvn assembly:assembly in the jcaptcha directory

Deploy the entire site

  • Execute mvn site site:deploy in the main directory

Build the Zip distribution

  • Execute mvn clean install site site:deploy in the main directory
  • Execute mvn assembly:assembly -Dmaven.test.skip=true in the jcaptcha directory
  • Execute mvn package assembly:assembly -Dmaven.test.skip=true in the main directory

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>