为了账号安全,请及时绑定邮箱和手机立即绑定

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

[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 回答

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

0 回复 有任何疑惑可以回复我~

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

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

0 回复 有任何疑惑可以回复我~

给mybaits-connector-java添加版本号

0 回复 有任何疑惑可以回复我~

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

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

谢谢啦!

0 回复 有任何疑惑可以回复我~
#1

qq_一曲离殇丶笑看人世繁华_3

我也遇到这个问题,怎么解决啊
2019-03-25 回复 有任何疑惑可以回复我~
#2

晴颜 提问者 回复 qq_一曲离殇丶笑看人世繁华_3

我没用老师这种方式,是写一个Java类执行来逆向生成的。maven可能环境变量没配置正确
2019-04-09 回复 有任何疑惑可以回复我~

举报

0/150
提交
取消

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

我要回答 关注问题
意见反馈 帮助中心 APP下载
官方微信