pom.xml

<projectxmlns="http://maven.apache.org/POM/4.0.0"xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"xsi:schemaLocation="http://maven.apache.org/POM/4.0.0http://maven.apache.org/xsd/maven-4.0.0.xsd">

<modelVersion>4.0.0</modelVersion>

<parent>

<groupId>com.xxx.xx</groupId>

<artifactId>xxx-parent</artifactId>

<version>1.0-SNAPSHOT</version>

<!--<relativePath>../parent/</relativePath>-->

</parent>

<groupId>xxxxx</groupId>

<artifactId>mybatis-generator</artifactId>

<version>0.0.1-SNAPSHOT</version>

<build>

<finalName>mybatis-generator</finalName>

<plugins>

<plugin>

<groupId>org.mybatis.generator</groupId>

<artifactId>mybatis-generator-maven-plugin</artifactId>

<version>1.3.2</version>

<configuration>

<configurationFile>src/main/resources/generatorConfig.xml</configurationFile>

<verbose>true</verbose>

<overwrite>true</overwrite>

</configuration>

<executions>

<execution>

<id>GenerateMyBatisArtifacts</id>

<goals>

<goal>generate</goal>

</goals>

</execution>

</executions>

</plugin>

</plugins>

</build>

</project>

相关推荐