Skip to end of metadata
Go to start of metadata

You are viewing an old version of this page. View the current version.

Compare with Current View Page History

« Previous Version 12 Next »



The JCaptcha build is based on a Maven2 module hierarchy

Module hierarchy

  • Site Skin
  • API
  • Common test
  • JCaptcha
  • Testing
    • JCaptcha 1.0 compatibility with JDK3
    • JCaptcha SNAPSHOT compatibility with JDK4
    • Load Testing
  • Extension EHCache Store
  • Extension JBossCache Store
  • Extension Buffered Engine
  • Extension Sound FreeTTS
  • Integration Acegi
  • Integration Filter
  • Integration Struts
  • Integration Roller

For more explanations please refers to the maven site

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>
  • No labels