这个报错 有几个可能
0 你mybatis-generator:generate 打错了
这是有可能的
1 最简单的解决方法
maven runs as :
maven clear
maven install
基本没法解决问题
2 你的pom.xml配置有问题
缺了 plugin 或者 mojo之类的
给一个pom.xml
<dependencies>
<dependency>
<groupId>oracle</groupId>
<artifactId>ojdbc14</artifactId>
</dependency>
<dependency>
<groupId>org.mybatis</groupId>
<artifactId>mybatis</artifactId>
</dependency>
<dependency>
<groupId>org.mybatis</groupId>
<artifactId>mybatis-spring</artifactId>
</dependency>
<dependency>
<groupId>org.springframework</groupId>
<artifactId>spring-core</artifactId>
</dependency>
<dependency>
<groupId>org.springframework</groupId>
<artifactId>spring-context