Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
Example for mybatis-generator maven plugin.
<plugin>
<groupId>org.mybatis.generator</groupId>
<artifactId>mybatis-generator-maven-plugin</artifactId>
<version>${mybatis-generator.version}</version>
<executions>
<execution>
<id>Generate MyBatis Artifacts</id>
<goals>
<goal>generate</goal>
</goals>
<phase>none</phase>
<configuration>
<configurationFile>${basedir}/src/main/resources/config/mysqlGeneratorConfig.xml</configurationFile>
<overwrite>true</overwrite>
<jdbcDriver>com.mysql.jdbc.Driver</jdbcDriver>
<jdbcURL>jdbc:mysql://localhost:3306/sakira</jdbcURL>
<jdbcUserId>root</jdbcUserId>
<jdbcPassword>root.local</jdbcPassword>
<verbose>true</verbose>
</configuration>
</execution>
</executions>
</plugin>
@nmwael

This comment has been minimized.

Copy link

@nmwael nmwael commented Mar 7, 2019

thanks for this 👍

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment