Skip to content

Instantly share code, notes, and snippets.

@enzinier
Created March 15, 2017 01:47
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save enzinier/a65d2ecfe27acd073079770212170048 to your computer and use it in GitHub Desktop.
Save enzinier/a65d2ecfe27acd073079770212170048 to your computer and use it in GitHub Desktop.
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
Copy link

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