From 2b78519c603439d946086722aaa378c598ed4dcd Mon Sep 17 00:00:00 2001
From: jvanzyl
+ The following generates java sources for the foo.xsd' schema,
+ in the 'com.foo.bar' package. The sources will use Java 2 collection
+ types.
+
+
+ The following generates java sources for the 'bar.xsd' schema.
+ The sources will not included marshalling support (marshal,
+ unmarshal, validate).
+
+
+
+
+ Goal Description
+
+ castor:prepare-filesystem
+
+ Creates the directories specified by the
+ ${maven.castor.dest} and
+ ${maven.castor.tstamp} properties.
+
+
- A plugin that currently just sets up castor for use in Jelly -
++ This plugin generates java sources from schemas using Castor. +
+| Document | Description |
|---|---|
| Goals | ++ This document provides detailed information on the various + goals that are available as part of the Maven Castor Plug-in. + | +
| Properties | ++ The behavior of the Maven Castor Plug-in can be altered via + several properties. This document describes each property + available, and the default used. + | +
| Tags | ++ The Castor plugin defines Jelly tags to generate java + sources. This document describes the tags and their + arguments. + | +
| Examples | ++ This document provides examples on how to use the Maven Castor + plugin. + | +
| Property name | -Optional? | Description | +Optional? | ||
|---|---|---|---|---|---|
| - | - | + | maven.castor.dest | +
+ Specifies the directory to place generated sources. + Defaults value is ${maven.build.dir}/castor/src + |
+ Yes | +
| maven.castor.tstamp | +
+ Specifies the directory to output timestamp files.
+ These are used to track source modifications against the
+ generated files, to avoid unecessary generation. + Default value is ${maven.build.dir}/castor/tstamp + |
+ Yes | +
| Property name | +Description | +Optional? | +
|---|---|---|
| maven.compile.src.set | ++ The source directories maven uses to compile java code. + The Castor plugin adds the directory it generates code to + this path, so that generated code is compiled seamlessly + | +Yes |
+ This document describes the + tags + that are available when using the Castor Plug-in with Maven. +
++ Please refer to the + Integration document for + more information on how to integrate these tags into + your project. +
+| Goal | Description |
|---|---|
| castor:generate | +Generate java sources from an XML Schema. | +
| castor:srcgen | +DEPRECATED. Use castor:generate instead | +
+ The castor:generate target generates java sources
+ from an XML Schema (XSD file).
+ Sources are generated in the
+ ${maven.castor.dest} directory.
+ Sources are only generated if the input schema is newer than any
+ existing generated source.
+
| Attribute Name | Description | Optional? | +
|---|---|---|
| schema | +The path to the XML schema | +No | +
| package | +The package for the generated source | +Yes | +
| types | +Sets which type factory to use. This is useful if you want
+ JDK 1.2 collections instead of JDK 1.1, or if you want to pass
+ in your own FieldInfoFactory. + If not specified, java.util.Vector will be used for + collections. + See + Collection Types + for valid values. + |
+ Yes | +
| marshal | +
+ If 'false', disables generation of the marshalling framework
+ methods (marshal, unmarshal, validate). + Defaults to 'true'. + |
+ Yes | +