先保证本机安装了gradle 2.0以上的版本然后在maven根目录下运行 gradle init --type pom 转载于:https://www.cnblogs.com/Zhongzz/p/10185732.html