The Torque build process uses
Maven 1. The recommended
Maven version is Maven 1.0.2. A rudimentary
Maven 2 build exists (see below),
but is only used to build the Maven 2 plugin.
Note that the Maven 1 build uses the groupId torque
,
wheras the Maven 2 build uses the group id
org.apache.db.torque
.
Before you begin, you'll need to check out the trunks
part of the db/torque
SVN repository.
Please read the Torque Subversion page
for more information.
To build the Torque generator jar, first execute
maven jar:install
in the
templates
directory to install a copy
of the templates jar in your local Maven repository. Note that
maven jar:jar
does not suffice because the
main generator jar depends upon the template jar.
Afterwards, execute maven jar:jar
in the generator
directory to build the generator jar (maven jar:install
to install a copy of the jar in your local Maven repository).
To build and install the Torque Maven 1 plugin, execute maven
plugin:install
in the maven-plugin
directory.
You need to have the generator installed in your local repository
to do that (see paragraph above).
To build the Torque runtime jar execute maven jar:jar
in
the runtime
directory
(maven jar:install
to install a copy of the jar
in your local Maven repository).
If you need everything at once, run maven install
in the
top level directory. This will perform all the steps described above and
place the results into your local maven repository.
The Torque Maven 2 plugin cannot be built using Maven 1.
Torque is tested by running the test project. Please refer to the Test Project docs for information.