gpt4 book ai didi

android - M2e - 生命周期未涵盖的插件执行

转载 作者:塔克拉玛干 更新时间:2023-11-02 08:02:59 25 4
gpt4 key购买 nike

操作系统:ubuntu 11.10

Eclipse:面向 Web 开发人员的 Java EE IDE。版本:Indigo Service Release 2 内部版本号:20120216-1857Java: jdk1.7.0_03SDK adb :Android Debug Bridge 版本 1.0.29

尝试使用 m2e android (2.8.4) 在 eclipse 中构建 javaocr。它导致项目构建时在 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:

<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 (AFAIK) 中开发的项目,它应该在那里完美运行,我只是无法让 IDEA 运行:'-/它javaocr svn link .

最佳答案

我遇到了同样的问题。我就是这样解决的。在 pom.xml 文件中,更改

<artifactId>maven-android-plugin</artifactId>
<version>2.8.3</version>

对于

<artifactId>android-maven-plugin</artifactId>
<version>3.4.1</version>

这至少对我来说解决了:)

关于android - M2e - 生命周期未涵盖的插件执行,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/10229332/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com