To use Commons Betwixt in a Maven 2 project, add the following
dependency to your project's pom.xml
:
Example 6.2. Adding a Dependency on Commons Betwixt
<dependency> <groupId>commons-betwixt</groupId> <artifactId>commons-betwixt</artifactId> <version>0.8</version> </dependency>
If you are not sure what this means, I'd suggest reading Maven: The Definitive
Guide. When you depend on a library in Maven 2, all you need to
do is add the dependency groupId
,
artifactId
, and version
to your
project's dependencies. Once you do this, Maven 2 will download the
dependency and make it available on your project's classpath.
Betwixt allows you to translate from beans to XML and vice versa.
Beans are serialized to XML documents using a BeanWriter
, and they are read from XML using a
BeanReader
. The structure of the XML
can be automatically generated or customized using an XML document to
bind properties to elements or attributes.
For more information about Commons Betwixt, see the Commons Betwixt project page at http://jcommons.apache.org/betwixt.