- 环境检查
- MBG is built with Apache Maven. First you must get maven running. If you are new to Maven, here are the most simple steps (for Windows):
- Download a Maven distribution from http://maven.apache.org/
- Unzip the distribution somewhere convenient
- Setup environment variables and the PATH. Examples:
set JAVA_HOME=C:\Program Files\java\jdk1.8.0_91
set M2_HOME=C:\JavaTools\apache-maven-3.3.9
set PATH=%PATH%;%M2_HOME%\bin;
- Clone or fork the official Git repo on GitHub https://github.com/mybatis/generator
cmd窗口下执行 mvn–version查看maven版本
java –version