android-maven-plugin 3.8.2没有覆盖生命周期 [英] android-maven-plugin 3.8.2 not covered by lifecycle

查看:247
本文介绍了android-maven-plugin 3.8.2没有覆盖生命周期的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

在Eclipse 4.3.2中,我的POM正在使用 com.jayway.maven.plugins.android.generation2:android-maven-plugin:3.5.1 没有问题。我尝试将其升级到3.8.2(最新版本),我得到了可怕的插件执行不被生命周期配置覆盖错误。



所以当然我试过做发现新的m2e连接器的快速修复。但是,m2e Marketplace说没有市场项目可用。我该怎么办?



其他信息



我有m2e-wtp - Maven集成为WTP 1.0.1.20130911-1545安装了org.eclipse.m2e.wtp.feature.feature.group。当我试图从市场上安装Maven Integration for Eclipse(Juno and newer)1.4时,它告诉我没有什么可以更新的。当我试图从市场上安装Maven Integration for Eclipse WTP(Juno)1.0.1时,我被告知:

 无法找到一个或多个所需项目,无法完成安装。 
正在安装的软件:m2e-wtp - 用于WTP的JPA配置程序(可选)1.0.1.e42-20130821-1033(org.eclipse.m2e.wtp.jpa.feature.feature.group 1.0.1.e42- 20130821-1033)
缺少要求:Maven JPA Configurator 1.0.1.e42-20130821-1033(org.eclipse.m2e.wtp.jpa 1.0.1.e42-20130821-1033)需要bundle org.eclipse。 jpt.jpa.core [3.0.0,3.3.0]'但无法找到
无法满足依赖关系:
From:m2e-wtp - 用于WTP(可选)的1.0A的JPA配置器。 e42-20130821-1033(org.eclipse.m2e.wtp.jpa.feature.feature.group 1.0.1.e42-20130821-1033)
至:org.eclipse.m2e.wtp.jpa [1.0.1 .e42-20130821-1033]

(叹息)这个依赖项是失控的...我我完全失去了

解决方案

我注意到 maven-android-plugin changelog 版本3.8.2需要Maven 3.1.1+。我使用Maven 3.0.5(这是另一个客户端需要的)。我还注意到,更改日志提到,即将到来的3.9.0版本将从更改直接Aether使用到依赖关系树使用,允许与Maven 3.0.x兼容,因此IDE和其他具有这种嵌入式旧版本的Maven版本的工具



所以我切换到maven-android-plugin 3.7.0,指出Maven 3.0.x支持的最后一个版本,连接器错误消失了。 >

更新:截至2014-06-01,插件版本3.9.0-rc.2与Maven 3.0.5配合使用,所以我假设最后的版本也是如此。



更新2014-06-08:今天我更新到Eclipse 4.4RC4, 生活周期配置未涵盖的插件执行错误一遍又一遍。


On Eclipse 4.3.2 my POM was using com.jayway.maven.plugins.android.generation2:android-maven-plugin:3.5.1 with no problems. I tried to upgrade it to 3.8.2 (the latest), and I got the dreaded "Plugin execution not covered by lifecycle configuration" error.

So of course I tried to do a "Quick Fix" of "Discover new m2e connectors". But the m2e Marketplace says "No marketplace items are available". What do I do?

Other Information

I have m2e-wtp - Maven Integration for WTP 1.0.1.20130911-1545 org.eclipse.m2e.wtp.feature.feature.group installed. When I tried to install "Maven Integration for Eclipse (Juno and newer) 1.4" from the marketplace, it told me there was nothing to update. When I tried to install "Maven Integration for Eclipse WTP (Juno) 1.0.1" from the marketplace, I'm told:

Cannot complete the install because one or more required items could not be found.
Software being installed: m2e-wtp - JPA configurator for WTP (Optional) 1.0.1.e42-20130821-1033 (org.eclipse.m2e.wtp.jpa.feature.feature.group 1.0.1.e42-20130821-1033)
Missing requirement: Maven JPA Configurator 1.0.1.e42-20130821-1033 (org.eclipse.m2e.wtp.jpa 1.0.1.e42-20130821-1033) requires 'bundle org.eclipse.jpt.jpa.core [3.0.0,3.3.0)' but it could not be found
Cannot satisfy dependency:
  From: m2e-wtp - JPA configurator for WTP (Optional) 1.0.1.e42-20130821-1033 (org.eclipse.m2e.wtp.jpa.feature.feature.group 1.0.1.e42-20130821-1033)
  To: org.eclipse.m2e.wtp.jpa [1.0.1.e42-20130821-1033]

(sigh) This dependency stuff is out of control... I'm completely lost.

解决方案

I note in the maven-android-plugin changelog that version 3.8.2 requires Maven 3.1.1+. I'm using Maven 3.0.5 (which is required by another client). I also note that the changelog mentions that the upcoming version 3.9.0 will "[change] from direct Aether usage to Dependency Tree usage allowing compatibility with Maven 3.0.x and therefore with IDE's and other tools that have old Maven version like this embedded".

So I switched to maven-android-plugin 3.7.0, the last version that indicated Maven 3.0.x support, and the connector error went away.

Update: As of 2014-06-01, version 3.9.0-rc.2 of the plugin works with Maven 3.0.5, so I assume the final release will as well.

Update 2014-06-08: Today I updated to Eclipse 4.4RC4, and I'm getting the "Plugin execution not covered by lifecycle configuration" error all over again.

这篇关于android-maven-plugin 3.8.2没有覆盖生命周期的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆