報(bào)這個(gè)是什么原因?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.
2019-02-15
是不是你再引用maven依賴的時(shí)候沒有指明版本號<version></version>?
2021-10-24
我也遇到了這個(gè)問題,在 pom.xml 文件里添加版本號解決的。
在兩個(gè)?mysql-connector-java(一個(gè)在dependency中,另一個(gè)在plugin的dependency中) 中分別添加版本號即可,我這里對應(yīng)的是<version>8.0.26</version>
2019-05-17
給mybaits-connector-java添加版本號
2019-02-15
老師這種用maven命令的方式我真找不出原因,不是版本沒配置……
我用的是Java類寫的方法執(zhí)行,然后生成了對應(yīng)的文件。
謝謝啦!