Tree [r15627] / cdk-pom / trunk /
History



File Date Author Commit
src 2009-08-25 sea36 [r14762] Set source plugin version
README.txt 2009-02-03 sea36 [r14055] Moved code from branches/sea36 to trunk
dependencies.txt 2009-08-25 sea36 [r14760] Updated dependencies
pom.xml 2009-02-03 sea36 [r14055] Moved code from branches/sea36 to trunk

Read Me

CDK Maven POM Builder

This package constructs a set of Maven projects for the modules of a CDK build.
The main class is net.sf.cdk.tools.maven.POMBuilder.  This should be run with two
arguments - the CDK build version and the path to the CDK directory. The version
argument specifies the value of the <version>...</version> tags in Maven POM,
and has no other effect.


Before running, ensure that doclet has been run on the CDK build:
cdk-1.2.x> ant runDoclet

And ensure that the dependencies.txt file (found int the same directory as this
README) contains entries for each jar CDK depends on.  These entries map CDK jar
dependencies to Maven artifacts.


To run using maven:
mvn exec:java -Dexec.args="\"1.2.x-SNAPSHOT\" ../cdk-1.2.x"

Otherwise:
java -cp <path to compiled classes> net.sf.cdk.tools.maven.POMBuilder 1.2.x-SNAPSHOT ../cdk-1.2.x
(This must be run from the directory containing dependencies.txt)


POMBuilder will create a subdirectory 'maven' in the CDK directory, and
construct a POM for each CDK module (eg: cdkdir/maven/standard/pom.xml), along
with a parent POM (cdkdir/maven/pom.xml) allowing all modules to be built together.

The POMs point directly to the CDK source tree, so all usual maven goals can
be executed; compile, package, install, deploy etc...

Note: test modules are currently ignored