http://blog.csdn.net/you23hai45/article/details/50792430

1、错误描述

  1. F:\workspaces\Mybatis>mvn mybatis-genertor:generate
  2. [INFO] Scanning for projects...
  3. Downloading: https://repo.maven.apache.org/maven2/org/apache/maven/plugins/maven
  4. -metadata.xml
  5. Downloading: https://repo.maven.apache.org/maven2/org/codehaus/mojo/maven-metada
  6. ta.xml
  7. Downloaded: https://repo.maven.apache.org/maven2/org/codehaus/mojo/maven-metadat
  8. a.xml (20 KB at 3.6 KB/sec)
  9. Downloaded: https://repo.maven.apache.org/maven2/org/apache/maven/plugins/maven-
  10. metadata.xml (13 KB at 2.1 KB/sec)
  11. [INFO] ------------------------------------------------------------------------
  12. [INFO] BUILD FAILURE
  13. [INFO] ------------------------------------------------------------------------
  14. [INFO] Total time: 7.671 s
  15. [INFO] Finished at: 2016-03-03T22:58:54+08:00
  16. [INFO] Final Memory: 11M/171M
  17. [INFO] ------------------------------------------------------------------------
  18. [ERROR] No plugin found for prefix 'mybatis-genertor' in the current project and
  19. in the plugin groups [org.apache.maven.plugins, org.codehaus.mojo] available fr
  20. om the repositories [local (C:\Users\Administrator\.m2\repository), central (htt
  21. ps://repo.maven.apache.org/maven2)] -> [Help 1]
  22. [ERROR]
  23. [ERROR] To see the full stack trace of the errors, re-run Maven with the -e swit
  24. ch.
  25. [ERROR] Re-run Maven using the -X switch to enable full debug logging.
  26. [ERROR]
  27. [ERROR] For more information about the errors and possible solutions, please rea
  28. d the following articles:
  29. [ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/NoPluginFoundF
  30. orPrefixException
  31. F:\workspaces\Mybatis>

2、错误原因

由错误提示可知,在当前项目中没有找到前缀为“mybatis-generator”

3、解决办法

(1)将Maven项目先clean,接着install下

(2)运行mvn mybatis-generator:generate命令

No plugin found for prefix 'mybatis-generator' in the current project的更多相关文章

  1. no plugin found for prefix 'tomcat 7' in the current project

    使用maven build编译出错 “no plugin found for prefix 'tomcat 7' in the current project..........” 参照下面方法 ht ...

  2. no plugin found for prefix 'tomcat 7' in the current project and in the plugin groups的解决方法

    解决方法一: 找到这个settings.xml文件,进行编辑,在pluginGroups标签下加入下面的配置 <pluginGroups><pluginGroup>org.ap ...

  3. SpringBoot入门篇--整合mybatis+generator自动生成代码+druid连接池+PageHelper分页插件

    原文链接 我们这一篇博客讲的是如何整合Springboot和Mybatis框架,然后使用generator自动生成mapper,pojo等文件.然后再使用阿里巴巴提供的开源连接池druid,这个连接池 ...

  4. 利用mybatis generator实现数据库之间的表同步

    项目背景: 项目需要对两个服务器上的表进行同步,表的结构可能不一样.比如服务器A上的表i同步数据到服务器B上的表j,i和j的结构可能不一样,当然大部分字段是一样的.项目看起来很简单,网上一搜也是很多, ...

  5. 2016.7.12 eclipse和IDEA中mybatis generator插件的安装与使用

    Eclipse中的安装 http://jingyan.baidu.com/article/9faa7231506ed8473c28cbee.html 1.下载插件 2.将插件generator的fea ...

  6. mybatis generator 整合lombok

    <?xml version="1.0" encoding="UTF-8"?> <!DOCTYPE generatorConfiguration ...

  7. spingBoot整合mybatis+generator+pageHelper

    spingBoot整合mybatis+generator+pageHelper 环境/版本一览: 开发工具:Intellij IDEA 2018.1.4 springboot: 2.0.4.RELEA ...

  8. mybatis generator 生成中文注释

    mybatis generator默认生成 的注释太奇葩了,完全不能拿到生产去用,不过幸亏提供了接口可以自己扩展.长话短说,要生成如下的domain, package com.demo.domain; ...

  9. mybatis generator 自动生成dao层映射代码

    资源: doc url :http://www.mybatis.org/generator/ download:https://github.com/mybatis/generator/release ...

  10. mybatis generator maven插件自动生成代码

    如果你正为无聊Dao代码的编写感到苦恼,如果你正为怕一个单词拼错导致Dao操作失败而感到苦恼,那么就可以考虑一些Mybatis generator这个差价,它会帮我们自动生成代码,类似于Hiberna ...

随机推荐

  1. ngrok反向隧道--获取内网IP

    ngrok反向隧道 前情提要:小明与小白各有一台主机,两台主机在同一内网,小明想直接通过内网ssh到小白的主机上.但是小白的ip地址会不断的变化,而小明不想每次都要麻烦小白查看ip.于是小明催生了一个 ...

  2. Think twice before doing~

    1.遇到任何矛盾,对事不对人. 2.接到朋友等人的求助电话后,一定要先问清楚对方有什么事情,然后再告诉他(她)能不能帮她(他). 3.如果没有十足的把握和必要,就不要轻易说假话. 4.少提自己的私事, ...

  3. delphi 2010与delphi XE破解版的冲突

    在系统中同时安装了Dephi 2010LITE版与Delphi XE lite后,总是会有一个有问题 是因为两者都是读取C:\ProgramData\Embarcadero目录下的license文件, ...

  4. MSSQLServer 纵向表转横向表 横向表转纵向表 行转列 列转行

    MSSQLServer 纵向表转横向表  横向表转纵向表 建表语句及插入数据语句: CREATE TABLE Test_y( ) NULL, ) NULL, [Grade] [int] NULL ) ...

  5. swift3.0变化总结

    Swift 3.0 做出的改变很大,在这篇文章中,我将尽我所能,利用代码样例给大家解释Swift 3.0最重要(要命)的改变,希望大家能够做好升级Swift 3.0 的准备.Swift 3.0的改变不 ...

  6. hibernate学习一(hibernate简介与准备)

    一.hibernate简介 Hibernate是一个开放源代码的对象-关系映射(Object/Relational Mapping 即 ORM)框架,它对JDBC进行了非常轻量级的对象封装,它将POJ ...

  7. c语言第一章第一节 认识变量

    声明:本人大一新生,闲着无聊..写写c语言教程..菜鸟一枚..大神勿喷!!! 接下来我们都用dev来进行编译..vc++太古老了,没提示功能,不好上手,并且老是出毛病..vs太大了,编个c不至于,运行 ...

  8. 爬取https页面遇到“SSLError: hostname 'xxx' doesn't match either of”的解决方法

    使用python requests 框架包访问https://itunes.apple.com 页面是遇到 SSLError: hostname 'itunes.apple.com' doesn't ...

  9. C和指针 第十六章 习题

    16.8 计算平均年龄 #include <stdlib.h> #include <stdio.h> #define MAX_LEN 512 int main() { int ...

  10. web 安全杂谈

    以前写过一篇关于session.cookie的博文,都是简单的介绍.不过session和cookie和网络安全可有着密切的关系. 今天主要从这几个方面总结下最近学到的东西: 1. session 两种 ...