Thank you Jeff. Your help was very much appreciated. It took a little
while to getting working correctly with the Spring configuration, but I
have it now.
In case others are attempting this, we determined for some unknown
reason it did not work when added to our core library module and
referenced that in the plug in. We needed to create a new module with
only the plugin in it.
In the plugin for the generator it now looks as follows.
<plugin>
<groupId>org.mybatis.generator</groupId>
<artifactId>mybatis-generator-maven-plugin</artifactId>
<version>1.3.1</version>
<executions>
<execution>
<id>Generate MyBatis Artifacts</id>
<goals>
<goal>generate</goal>
</goals>
</execution>
</executions>
<dependencies>
<dependency>
<groupId>
com.tmghealth.app</groupId>
<artifactId>atlas-mybatis-plugin</artifactId>
<version>1.0-SNAPSHOT</version>
</dependency>
</dependencies>
</plugin>
In the pom for altas-mybatis-plugin we added the following dependency.
<dependency>
<groupId>org.mybatis.generator</groupId>
<artifactId>mybatis-generator-core</artifactId>
<version>1.3.1</version>
</dependency>
Thanks again and enjoy the long holiday weekend.
Steve.