cdk-maven-mojos


A couple of useful maven Mojo's to work with the CDK toolkit

CDK maven mojos

These mojos are designed to help you to integrated the CDK into your own project.

Plugin Configuration

``` com.blogspot.codingandmore cdk-maven-mojo 1.0 true

<executions>
    <execution>
        <id>update</id>
        <phase>process-resources</phase>

<configuration>
    <version>CDK_VERSION_OF_CHOICE</version>
           <cdkDirectory>CDK_DIR_HERE</cdkDirectory>
</configuration>
        <goals>
            <goal>register</goal>
        </goals>
    </execution>
</executions>

```

You also need to include this repository, so that maven know where to find this plugin

<pluginRepositories> <pluginRepository> <id>cdk-maven-mojos</id> <name>cdk-maven-mojos-repository</name> <url>http://cdk-maven-mojos.googlecode.com/svn/trunk/repo</url> </pluginRepository> </pluginRepositories>

Environment

You need to download the cdk sources of your choice and compile them with the ant build file.

Using the CDK files in maven as dependencies

once you installed the files using the provide mojo you can access them like normal maven dependencies.

``` org.openscience.cdk cdk-core 1.3.1

    <dependency>
        <groupId>org.openscience.cdk</groupId>
        <artifactId>cdk-inchi</artifactId>
        <version>1.3.1</version>
    </dependency>

```

Since this mojo resist in a svn based repository you also need to configure the SVN wagon. The documentation for the Wagon can be found here

If you just want to invoke it from the command line you can use the following command

mvn com.blogspot.codingandmore:cdk-maven-mojo:register -DcdkDirectory=/Users/wohlgemuth/Documents/workspace//cdk-jchempaint -Dversion=1.3.2

Project Owner/Maintainer

Gert Wohlgemuth alias berlinguyinca

Project Information

Labels:
cdk maven mojo plugin