Skip to content

castor-data-binding/castor

Repository files navigation

Castor - Data binding made easy

Build Status Maven Central

Castor is an open source data binding framework for Java[tm]. It provides direct, short paths between Java objects and XML documents. Castor essentially provides Java-to-XML binding and more.

Project documentation: http://castor-data-binding.github.io/castor/

Note: The persistence part of Castor has been migrated to a separate GitHub repository.

Download

Maven

To use Castor XML, you need to use following Maven dependency:

<dependency>
  <groupId>org.codehaus.castor</groupId>
  <artifactId>castor-xml</artifactId>
  <version>${castor-xml-version}</version>
</dependency>

or download jars from Maven Central.

To use Castor's source generator, you need to use the following Maven dependency:

<dependency>
  <groupId>org.codehaus.castor</groupId>
  <artifactId>castor-codegen</artifactId>
  <version>${castor-codegen-version}</version>
</dependency>

Non-Maven

If you are not using Maven as build too, you can still get the binary JARs for a particular release in form of a binary distribution.

Please browse to Sonatype's OSS repository or Sonatype's OSS snapshot repository, select the required (snapshot) release and download one of the available distributions:

  • Castor XML binaries only (named castor-distribution-x.y.z-xml-bin.zip)
  • Castor XML binaries with dependencies (e.g. castor-distribution-x.y.z-xml-bin-with-dependencies.zip)

or

  • Castor XML codegen binaries only (named castor-distribution-x.y.z-codegen-bin.zip)
  • Castor XML codegen binaries with dependencies (e.g. castor-distribution-x.y.z-codegen-bin-with-dependencies.zip)

Participation

The easiest ways to participate beyond using Castor is to join one or many of the Castor mailing lists at freelists.org:

  • Castor Announce: Announcement-only list for new Castor releases and other events related to Castor
  • Castor User: List dedicated for discussion on Castor usage
  • Castor Dev: List for developers of Castor core components and modules, discussing implementation details, API changes.

Documentation

Web sites