M2E - 插件执行未涵盖的生命周期 [英] M2e - plugin execution not covered by lifecycle
问题描述
操作系统:Ubuntu的11.10
OS: ubuntu 11.10
的Eclipse:Java EE的IDE为Web开发人员。版本:靛蓝服务版本2版本ID:20120216-1857 Java的:jdk1.7.0_03 SDK ADB:安卓调试桥版本1.0.29
Eclipse: Java EE IDE for Web Developers. Version: Indigo Service Release 2 Build id: 20120216-1857 Java: jdk1.7.0_03 SDK adb :Android Debug Bridge version 1.0.29
尝试使用M2E的Android(2.8.4)建立javaocr在月食。 它会导致项目正在建设,在pom.xml的错误:
Trying to build javaocr in eclipse by using m2e android (2.8.4). it results in project being built with errors in pom.xml:
Description Resource Path Location Type
Plugin execution not covered by lifecycle configuration: com.jayway.maven.plugins.android.generation2:maven-android-plugin:2.8.4:generate-sources (execution: default-generate-sources, phase: generate-sources) pom.xml /javaocr-sampler line 20 Maven Project Build Lifecycle Mapping Problem
Plugin execution not covered by lifecycle configuration: com.jayway.maven.plugins.android.generation2:maven-android-plugin:2.8.4:unpack (execution: default-unpack, phase: process-classes) pom.xml /javaocr-sampler line 20 Maven Project Build Lifecycle Mapping Problem
Plugin execution not covered by lifecycle configuration: org.apache.maven.plugins:maven-resources-plugin:2.5:resources (execution: default-resources, phase: process-resources) pom.xml /javaocr-sampler line 11 Maven Project Build Lifecycle Mapping Problem
Plugin execution not covered by lifecycle configuration: org.apache.maven.plugins:maven-resources-plugin:2.5:testResources (execution: default-testResources, phase: process-test-resources) pom.xml /javaocr-sampler line 11 Maven Project Build Lifecycle Mapping Problem
pom.xml的:
pom.xml:
<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/maven-v4_0_0.xsd">
<modelVersion>4.0.0</modelVersion>
<parent>
<groupId>net.sourceforge.javaocr.demos</groupId>
<artifactId>javaocr-demos-parent</artifactId>
<version>1.102-SNAPSHOT</version>
</parent>
<groupId>net.sourceforge.javaocr.demos</groupId>
<artifactId>javaocr-sampler</artifactId>
<packaging>apk</packaging>
<name>Android sampler</name>
<description>
Demo appliocation to gather samples for further training
of matchers
</description>
<build>
<sourceDirectory>src</sourceDirectory>
<plugins>
<plugin>
<groupId>com.jayway.maven.plugins.android.generation2</groupId>
<artifactId>maven-android-plugin</artifactId>
<version>2.8.4</version>
<configuration>
<sdk>
<platform>7</platform>
</sdk>
<emulator>
<avd>16</avd>
</emulator>
<deleteConflictingFiles>true</deleteConflictingFiles>
<undeployBeforeDeploy>true</undeployBeforeDeploy>
</configuration>
<extensions>true</extensions>
</plugin>
</plugins>
</build>
<dependencies>
<dependency>
<groupId>net.sourceforge.javaocr</groupId>
<artifactId>javaocr-core</artifactId>
<version>${pom.version}</version>
</dependency>
<dependency>
<groupId>net.sourceforge.javaocr.demos</groupId>
<artifactId>javaocr-android-camera-utils</artifactId>
<version>${pom.version}</version>
</dependency>
<dependency>
<groupId>com.google.android</groupId>
<artifactId>android</artifactId>
<version>2.1_r1</version>
<scope>provided</scope>
</dependency>
</dependencies>
</project>
我是完全新的使用Maven,但环顾四周,这一解决方案,但我拿出空。 这是IDEA(据我所知)开发了一个项目,它应该很好地工作在那里,我只是不能让办学理念既不: - / 它javaocr SVN链接。
I am completely new to maven, but have looked around for solutions for this, but i come up empty. It is a project developed in IDEA (AFAIK) and it should work perfectly there, i just cant get IDEA to run neither :'-/ It javaocr svn link.
推荐答案
我有同样的问题。这是我如何解决它。 在pom.xml文件,修改
I had the same problem. This is how I solved it. In the pom.xml file, change
<artifactId>maven-android-plugin</artifactId>
<version>2.8.3</version>
为
<artifactId>android-maven-plugin</artifactId>
<version>3.4.1</version>
至少是解决了对我来说:)
That solves it at least for me :)
这篇关于M2E - 插件执行未涵盖的生命周期的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!