運(yùn)行mybatis-generator時(shí)報(bào)錯(cuò)了org.eclipse.m2e:lifecycle-mapping:jar:1.0.0 is missing, no dependency information available
[INFO] Scanning for projects...
[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 http://repo.maven.apache.org/maven2 was cached in the local repository, resolution will not be reattempted until the update interval of nexus has elapsed or updates are forced
[INFO]? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ?
[INFO] ------------------------------------------------------------------------
[INFO] Building miaosha 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 http://repo.maven.apache.org/maven2 was cached in the local repository, resolution will not be reattempted until the update interval of nexus has elapsed or updates are forced
[INFO]?
[INFO] --- mybatis-generator-maven-plugin:1.3.5:generate (default-cli) @ miaosha ---
[INFO] Connecting to the Database
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 1.935 s
[INFO] Finished at: 2019-01-10T17:13:57+08:00
[INFO] Final Memory: 22M/228M
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal org.mybatis.generator:mybatis-generator-maven-plugin:1.3.5:generate (default-cli) on project miaosha: Execution default-cli of goal org.mybatis.generator:mybatis-generator-maven-plugin:1.3.5:generate failed: Exception getting JDBC Driver: COM.ibm.db2.jdbc.app.DB2Driver -> [Help 1]
[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.
[ERROR]?
[ERROR] For more information about the errors and possible solutions, please read the following articles:
[ERROR] [Help 1]
http://cwiki.apache.org/confluence/display/MAVEN/PluginExecutionException代碼已上傳到github?https://github.com/shawbs/miaosha-demo
2019-01-15
1、git clone?https://github.com/mfriedenhagen/dummy-lifecycle-mapping-plugin
2、在拉下來的項(xiàng)目文件夾里mvn -Dmaven.test.skip -U clean install,這樣就可以把lifecycle-mapping拉到本地maven倉庫了
3、重新run mybatis-generator.xml
2019-07-29
2019-07-29
親們,你們這個(gè)最后怎么解決的啊?
2019-07-11
https://www.jianshu.com/p/5ac7dfaae2d0這個(gè)地址有相應(yīng)的答案,
2019-01-15
剛剛看到一個(gè)答案:(好像被刪除了)
git clone https://github.com/mfriedenhagen/dummy-lifecycle-mapping-plugin.git
cd dummy-lifecycle-mapping-plugin/
mvn -Dmaven.test.skip -U clean install
大概就是上面3行指令結(jié)束后,重新run吧。
2019-01-13
Actually, the thing is we cannot directly use the mybatis-generator.xml downloaded online. We have to delete several lines in it and modify the directory, jdbc driver , user name and password exactly.? Sorry for my english, I don't have pinyin in library's computer
2019-01-13
Hi, Have you found what's wrong within your code? I made the same mistake with you.?
2019-01-12
親測(cè),連接驅(qū)動(dòng)錯(cuò)了
2019-01-11
問題的根本原因是不存在的插件?
lifecycle-mapping
您的問題的解決方案是:m2e生命周期映射未找到
- -雖然我還是沒有解決
2019-01-10
感覺是沒有吧mybatis-generator依賴進(jìn)來,你把鏡像換成阿里的,然后reimport一下maven試試欸