Eclipse custom extension tool
- Run-->External Tools-->External Tools Configration
- New a Program
- Enter the name as mybatis-generator, select mvn.bat (maven's executable file) for location, set the work directory to the project path, and set the command to run in Arguments: mybatis-generator:generate
- Check the external tools option in the display in favorites menu in common (there will be a command with this name in the drop-down list of external tools in the future)
- Run the selected project