报这个是什么原因?version can neither be null, empty nor blank

来源:2-4 Mybatis自动生成器使用方式

晴颜

2019-02-15 00:46

[WARNING] The POM for org.eclipse.m2e:lifecycle-mapping:jar:1.0.0 is missing, no dependency information available

[WARNING] Failed to retrieve plugin descriptor for org.eclipse.m2e:lifecycle-mapping:1.0.0: Plugin org.eclipse.m2e:lifecycle-mapping:1.0.0 or one of its dependencies could not be resolved: Failure to find org.eclipse.m2e:lifecycle-mapping:jar:1.0.0 in https://repo.maven.apache.org/maven2 was cached in the local repository, resolution will not be reattempted until the update interval of central has elapsed or updates are forced

[INFO]                                                                         

[INFO] ------------------------------------------------------------------------

[INFO] Building seconds 1.0-SNAPSHOT

[INFO] ------------------------------------------------------------------------

[WARNING] The POM for org.eclipse.m2e:lifecycle-mapping:jar:1.0.0 is missing, no dependency information available

[WARNING] Failed to retrieve plugin descriptor for org.eclipse.m2e:lifecycle-mapping:1.0.0: Plugin org.eclipse.m2e:lifecycle-mapping:1.0.0 or one of its dependencies could not be resolved: Failure to find org.eclipse.m2e:lifecycle-mapping:jar:1.0.0 in https://repo.maven.apache.org/maven2 was cached in the local repository, resolution will not be reattempted until the update interval of central has elapsed or updates are forced

[INFO] 

[INFO] --- mybatis-generator-maven-plugin:1.3.5:generate (default-cli) @ seconds ---

[INFO] ------------------------------------------------------------------------

[INFO] BUILD FAILURE

[INFO] ------------------------------------------------------------------------

[INFO] Total time: 1.194 s

[INFO] Finished at: 2019-02-15T00:21:46+08:00

[INFO] Final Memory: 20M/226M

[INFO] ------------------------------------------------------------------------

[ERROR] version can neither be null, empty nor blank

[ERROR] 

[ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch.

[ERROR] Re-run Maven using the -X switch to enable full debug logging.


写回答 关注

4回答

  • 离离香草生故乡
    2019-02-15 13:53:26
    已采纳

    是不是你再引用maven依赖的时候没有指明版本号<version></version>?

  • rocketeerLi
    2021-10-24 10:58:04

    我也遇到了这个问题,在 pom.xml 文件里添加版本号解决的。

    在两个 mysql-connector-java(一个在dependency中,另一个在plugin的dependency中) 中分别添加版本号即可,我这里对应的是<version>8.0.26</version>

  • 行走的瓜皮
    2019-05-17 14:09:52

    给mybaits-connector-java添加版本号

  • 晴颜
    2019-02-15 19:48:15

    老师这种用maven命令的方式我真找不出原因,不是版本没配置……

    我用的是Java类写的方法执行,然后生成了对应的文件。

    谢谢啦!

    晴颜 回复qq_一曲离...

    我没用老师这种方式,是写一个Java类执行来逆向生成的。maven可能环境变量没配置正确

    2019-04-09 00:07:02

    共 2 条回复 >

SpringBoot构建电商基础秒杀项目

应用SpringBoot快速搭建拥有用户、商品、交易及秒杀活动的电商秒杀应用。

49020 学习 · 954 问题

查看课程

相似问题