亚洲在线久爱草,狠狠天天香蕉网,天天搞日日干久草,伊人亚洲日本欧美

為了賬號安全,請及時綁定郵箱和手機立即綁定

運行mybatis-generator時報錯了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


正在回答

10 回答

1、git clone?https://github.com/mfriedenhagen/dummy-lifecycle-mapping-plugin

2、在拉下來的項目文件夾里mvn -Dmaven.test.skip -U clean install,這樣就可以把lifecycle-mapping拉到本地maven倉庫了

3、重新run mybatis-generator.xml

2 回復 有任何疑惑可以回復我~
#1

人生苦短,我選Python

遇到同樣的問題,解決了666
2019-08-27 回復 有任何疑惑可以回復我~
#2

weixin_慕妹3359172 回復 人生苦短,我選Python

請問是怎么解決的呢?我也遇到了相同的問題,上面的方法看不懂
2019-10-30 回復 有任何疑惑可以回復我~
#3

人生苦短,我選Python 回復 weixin_慕妹3359172

看不懂沒關系,照著操作就行
2019-10-30 回復 有任何疑惑可以回復我~
#4

cclibra

我是直接在上面的git鏈接手動下載pom文件和jar包,然后按照網頁中的安裝方法安裝就可以了。 mvn install:install-file -DpomFile=pom.xml -Dfile=lifecycle-mapping-1.0.0.jar
2019-11-20 回復 有任何疑惑可以回復我~
#5

慕少3479761

這安裝的時間也太久了吧,我安裝了一下午都沒裝好
2020-02-17 回復 有任何疑惑可以回復我~
#6

weixin_慕斯卡7437760

大佬 感謝
2021-04-24 回復 有任何疑惑可以回復我~
查看3條回復
<?xml?version="1.0"?encoding="UTF-8"?>

<project?xmlns="http://maven.apache.org/POM/4.0.0"?xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
??xsi:schemaLocation="http://maven.apache.org/POM/4.0.0?http://maven.apache.org/xsd/maven-4.0.0.xsd">
??<modelVersion>4.0.0</modelVersion>

??<groupId>com.miaoshaproject</groupId>
??<artifactId>miaosha</artifactId>
??<version>1.0-SNAPSHOT</version>

??<name>miaosha</name>

??<url>http://www.example.com</url>

??<parent>
????<groupId>org.springframework.boot</groupId>
????<artifactId>spring-boot-starter-parent</artifactId>
????<version>2.0.5.RELEASE</version>
??</parent>

??<properties>
????<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
????<maven.compiler.source>1.7</maven.compiler.source>
????<maven.compiler.target>1.7</maven.compiler.target>
??</properties>

??<dependencies>

????<dependency>
??????<groupId>org.springframework.boot</groupId>
??????<artifactId>spring-boot-starter-web</artifactId>
????</dependency>
????<!--?mysql-->
????<dependency>
??????<groupId>mysql</groupId>
??????<artifactId>mysql-connector-java</artifactId>
??????<version>5.1.41</version>
????</dependency>
????<!--?阿里巴巴druid數據庫連接池-->
????<dependency>
??????<groupId>com.alibaba</groupId>
??????<artifactId>druid</artifactId>
??????<version>1.1.3</version>
????</dependency>
????<dependency>
??????<groupId>org.mybatis.spring.boot</groupId>
??????<artifactId>mybatis-spring-boot-starter</artifactId>
??????<version>1.3.1</version>
????</dependency>

????<dependency>
??????<groupId>junit</groupId>
??????<artifactId>junit</artifactId>
??????<version>4.11</version>
??????<scope>test</scope>
????</dependency>

????<dependency>
??????<groupId>org.mybatis.generator</groupId>
??????<artifactId>mybatis-generator-core</artifactId>
??????<version>1.3.5</version>
????</dependency>
????<dependency>
??????<groupId>org.eclipse.m2e</groupId>
??????<artifactId>lifecycle-mapping</artifactId>
??????<version>1.0.0</version>
????</dependency>
????<!--<dependency>
??????<groupId>lifecycle-mapping</groupId>
??????<artifactId>lifecycle-mapping</artifactId>
??????<version>1.0.0</version>
????</dependency>-->

??</dependencies>


??<build>
????<pluginManagement><!--?lock?down?plugins?versions?to?avoid?using?Maven?defaults?(may?be?moved?to?parent?pom)?-->
??????<plugins>
????????<!--?clean?lifecycle,?see?https://maven.apache.org/ref/current/maven-core/lifecycles.html#clean_Lifecycle?-->
????????<plugin>
??????????<artifactId>maven-clean-plugin</artifactId>
??????????<version>3.1.0</version>
????????</plugin>
????????<!--?default?lifecycle,?jar?packaging:?see?https://maven.apache.org/ref/current/maven-core/default-bindings.html#Plugin_bindings_for_jar_packaging?-->
????????<plugin>
??????????<artifactId>maven-resources-plugin</artifactId>
??????????<version>3.0.2</version>
????????</plugin>
????????<plugin>
??????????<artifactId>maven-compiler-plugin</artifactId>
??????????<version>3.8.0</version>
????????</plugin>
????????<plugin>
??????????<artifactId>maven-surefire-plugin</artifactId>
??????????<version>2.22.1</version>
????????</plugin>
????????<plugin>
??????????<artifactId>maven-jar-plugin</artifactId>
??????????<version>3.0.2</version>
????????</plugin>
????????<plugin>
??????????<artifactId>maven-install-plugin</artifactId>
??????????<version>2.5.2</version>
????????</plugin>
????????<plugin>
??????????<artifactId>maven-deploy-plugin</artifactId>
??????????<version>2.8.2</version>
????????</plugin>
????????<!--?site?lifecycle,?see?https://maven.apache.org/ref/current/maven-core/lifecycles.html#site_Lifecycle?-->
????????<plugin>
??????????<artifactId>maven-site-plugin</artifactId>
??????????<version>3.7.1</version>
????????</plugin>
????????<plugin>
??????????<artifactId>maven-project-info-reports-plugin</artifactId>
??????????<version>3.0.0</version>
????????</plugin>


????????<!--<plugin>
??????????<artifactId>lifecycle-mapping</artifactId>
??????????<version>1.0.0</version>
????????</plugin>
????????<plugin>
??????????<artifactId>org.eclipse.m2e</artifactId>
??????????<version>1.3</version>
????????</plugin>-->
????????<!--?-->
????????<!--<plugin>
??????????<groupId>org.eclipse.m2e</groupId>
??????????<artifactId>lifecycle-mapping</artifactId>
??????????<version>1.0.0</version>
??????????<configuration>
????????????<lifecycleMappingMetadata>
??????????????<pluginExecutions>
????????????????<pluginExecution>
??????????????????<pluginExecutionFilter>
????????????????????<groupId>org.codehaus.mojo</groupId>
????????????????????<artifactId>aspectj-maven-plugin</artifactId>
????????????????????<versionRange>[1.0,)</versionRange>
??????????????????</pluginExecutionFilter>
??????????????????<action>
????????????????????<execute?/>
??????????????????</action>
????????????????</pluginExecution>
??????????????</pluginExecutions>
????????????</lifecycleMappingMetadata>
??????????</configuration>
????????</plugin>-->

????????<plugin>
??????????<groupId>org.mybatis.generator</groupId>
??????????<artifactId>mybatis-generator-maven-plugin</artifactId>
??????????<version>1.3.5</version>
??????????<dependencies>
????????????<!--<dependency>
??????????????<groupId>org.mybatis.generator</groupId>
??????????????<artifactId>mybatis-generator-core</artifactId>
??????????????<version>1.3.5</version>
????????????</dependency>-->

????????????<dependency>
??????????????<groupId>mysql</groupId>
??????????????<artifactId>mysql-connector-java</artifactId>
??????????????<version>5.1.41</version>
????????????</dependency>
??????????</dependencies>
??????????<executions>
????????????<execution>
??????????????<id>mybatis?generator</id>
??????????????<phase>package</phase>
??????????????<goals>
????????????????<goal>generate</goal>
??????????????</goals>
????????????</execution>
??????????</executions>
??????????<configuration>
????????????<!--?允許移動生成的文件-->
????????????<verbose>true</verbose>
????????????<!--?允許自動覆蓋文件?實際開發過程中不要開-->
????????????<overwrite>true</overwrite>
????????????<configurationFile>
??????????????src/main/resources/mybatis-generator.xml
????????????</configurationFile>
??????????</configuration>
????????</plugin>
??????</plugins>
????</pluginManagement>
??</build>
</project>


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

親們,你們這個最后怎么解決的?。?/p>

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

戰斗王子貝吉塔

我也遇到這樣的問題,你怎么解決的
2019-10-31 回復 有任何疑惑可以回復我~

https://www.jianshu.com/p/5ac7dfaae2d0這個地址有相應的答案,

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

剛剛看到一個答案:(好像被刪除了)

git clone https://github.com/mfriedenhagen/dummy-lifecycle-mapping-plugin.git

cd dummy-lifecycle-mapping-plugin/

mvn -Dmaven.test.skip -U clean install


大概就是上面3行指令結束后,重新run吧。


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

sgdy23 提問者

搞錯了,已經采納了。。
2019-01-15 回復 有任何疑惑可以回復我~
#2

晴顏 回復 sgdy23 提問者

兄弟,你這個問題怎么解決的?我的也是報 The POM for org.eclipse.m2e:lifecycle-mapping:jar:1.0.0 is missing, no dependency information available version can neither be null, empty nor blank
2019-02-15 回復 有任何疑惑可以回復我~
#3

慕萊塢5288264 回復 晴顏

兄弟你的解決了嗎?
2019-07-31 回復 有任何疑惑可以回復我~
#4

慕萊塢5288264 回復 sgdy23 提問者

兄弟你的解決了嗎?我的也報
2019-07-31 回復 有任何疑惑可以回復我~
#5

晴顏 回復 慕萊塢5288264

我沒有用老師的這種生成方式,自己寫了一個main方法加載mybatis-generator.xml文件逆向生成的
2019-08-07 回復 有任何疑惑可以回復我~
查看2條回復

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

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

sgdy23 提問者

Can you understand Chinese? 你解決了這個問題嗎? 或許你說的對,但我沒有其它的配置文件可供參考 你有正確的mybatis-generator.xml文件嗎?
2019-01-14 回復 有任何疑惑可以回復我~

Hi, Have you found what's wrong within your code? I made the same mistake with you.?

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

親測,連接驅動錯了https://img1.sycdn.imooc.com//5c3964f90001970d07200181.jpg

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

sgdy23 提問者

好的,我試試。。(原諒我是個菜雞。。)
2019-01-14 回復 有任何疑惑可以回復我~
#2

sgdy23 提問者

我把你說的這個屬性改成和視頻里面的一致,還是報這個錯:) <jdbcConnection driverClass="com.mysql.jdbc.Driver"
2019-01-14 回復 有任何疑惑可以回復我~
#3

sgdy23 提問者

老鐵,要不你代碼給我看看,可以嗎
2019-01-14 回復 有任何疑惑可以回復我~
#4

qq_影_53 回復 sgdy23 提問者

可以啊 GitHub地址是https://github.com/FORyc/shop-test1.git
2019-01-14 回復 有任何疑惑可以回復我~
查看1條回復

問題的根本原因是不存在的插件?lifecycle-mapping

無法從任何存儲庫org.eclipse.m2e下載工件:lifecycle-mapping:pom:1.0.0

您的問題的解決方案是:m2e生命周期映射未找到

- -雖然我還是沒有解決

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

qq_影_53

題主是mybatis-generator.xml中jdbcConnerctior的連接驅動配置錯了,你看看你的是不是也是這個問題
2019-01-12 回復 有任何疑惑可以回復我~

感覺是沒有吧mybatis-generator依賴進來,你把鏡像換成阿里的,然后reimport一下maven試試欸

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

sgdy23 提問者

不會呀,哥
2019-01-11 回復 有任何疑惑可以回復我~
#2

Tye_V

我用的是阿里的鏡像 也重新reimport了 還是不行 同樣的問題
2019-01-11 回復 有任何疑惑可以回復我~
#3

qq_影_53 回復 sgdy23 提問者

我先去看看你的源碼
2019-01-12 回復 有任何疑惑可以回復我~
#4

qq_影_53 回復 Tye_V

他的問題我找到了,mybatis-generator.xml中jdbcConnerctior的連接驅動配置錯了,你也檢查一下你的是不是這個問題
2019-01-12 回復 有任何疑惑可以回復我~
#5

戰斗王子貝吉塔 回復 Tye_V

我也出現這種問題,你怎么解決的
2019-10-31 回復 有任何疑惑可以回復我~
#6

戰斗王子貝吉塔 回復 Tye_V

我也遇到這樣的問題,你怎么解決的
2019-10-31 回復 有任何疑惑可以回復我~
#7

戰斗王子貝吉塔

這樣也不行,到底該怎么解決
2019-10-31 回復 有任何疑惑可以回復我~
查看4條回復

舉報

0/150
提交
取消

運行mybatis-generator時報錯了org.eclipse.m2e:lifecycle-mapping:jar:1.0.0 is missing, no dependency information available

我要回答 關注問題
微信客服

購課補貼
聯系客服咨詢優惠詳情

幫助反饋 APP下載

慕課網APP
您的移動學習伙伴

公眾號

掃描二維碼
關注慕課網微信公眾號