- html - 出于某种原因,IE8 对我的 Sass 文件中继承的 html5 CSS 不友好?
- JMeter 在响应断言中使用 span 标签的问题
- html - 在 :hover and :active? 上具有不同效果的 CSS 动画
- html - 相对于居中的 html 内容固定的 CSS 重复背景?
我已经看到了这两个 SO 问题:
Plugin execution not covered by lifecycle configuration error
我尝试按照建议的问题安装连接器。它消除了一些错误,但我仍然遇到错误:
Plugin execution not covered by lifecycle configuration:
com.jayway.maven.plugins.android.generation2:android-maven-plugin:3.2.0:ndk-build (execution: ndk-
build, phase: compile)
我是 Maven 的新手,我不知道如何解决这个问题。
这是我的整个pom.xml
,我评论了错误的来源:
<?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/maven-v4_0_0.xsd">
<modelVersion>4.0.0</modelVersion>
<groupId>info.kghost.android</groupId>
<artifactId>openvpn</artifactId>
<version>0.9.4</version>
<packaging>apk</packaging>
<name>OpenVpn</name>
<profiles>
<profile>
<id>sign</id>
<activation>
<file>
<exists>signkey.keystore</exists>
</file>
</activation>
<build>
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-jarsigner-plugin</artifactId>
<version>1.2</version>
<executions>
<execution>
<id>signing</id>
<goals>
<goal>sign</goal>
</goals>
<inherited>true</inherited>
<configuration>
<includes>
<include>target/*.apk</include>
</includes>
<keystore>${basedir}/signkey.keystore</keystore>
<alias>CERT</alias>
<arguments>
<argument>-digestalg</argument>
<argument>SHA1</argument>
<argument>-sigalg</argument>
<argument>MD5withRSA</argument>
</arguments>
</configuration>
</execution>
</executions>
</plugin>
<plugin>
<groupId>com.jayway.maven.plugins.android.generation2</groupId>
<artifactId>android-maven-plugin</artifactId>
<version>3.2.0</version>
<configuration>
<sign>
<debug>false</debug>
</sign>
</configuration>
</plugin>
</plugins>
</build>
</profile>
</profiles>
<dependencies>
<dependency>
<groupId>android</groupId>
<artifactId>android</artifactId>
<version>4.1.2_r4</version>
<scope>provided</scope>
</dependency>
<dependency>
<groupId>xpp3</groupId>
<artifactId>xpp3</artifactId>
<version>1.1.4c</version>
<scope>provided</scope>
</dependency>
<dependency>
<groupId>org.khronos</groupId>
<artifactId>opengl-api</artifactId>
<version>gl1.1-android-2.1_r1</version>
<scope>provided</scope>
</dependency>
<dependency>
<groupId>junit</groupId>
<artifactId>junit</artifactId>
<version>4.4</version>
<scope>test</scope>
</dependency>
</dependencies>
<url>https://github.com/kghost/ics-openvpn</url>
<inceptionYear>2011</inceptionYear>
<properties>
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
<scm.branch>master</scm.branch>
<maven.version>3.0.3</maven.version>
</properties>
<scm>
<url>https://github.com/kghost/ics-openvpn/tree/${scm.branch}</url>
<connection>scm:git:git://github.com/kghost/ics-openvpn.git</connection>
<developerConnection>scm:git:git@github.com:kghost/ics-openvpn.git</developerConnection>
</scm>
<issueManagement>
<system>Github Issue Tracking</system>
<url>https://github.com/kghost/ics-openvpn/issues</url>
</issueManagement>
<licenses>
<license>
<name>GPL</name>
<url>LICENSE</url>
</license>
</licenses>
<build>
<sourceDirectory>src</sourceDirectory>
<plugins>
<plugin>
<groupId>com.jayway.maven.plugins.android.generation2</groupId>
<artifactId>android-maven-plugin</artifactId>
<version>3.2.0</version>
<executions>
<!-- ERROR HERE -->
<execution>
<id>ndk-build</id>
<goals>
<goal>ndk-build</goal>
</goals>
<configuration>
<target>all</target>
<attachNativeArtifacts>false</attachNativeArtifacts>
</configuration>
</execution>
<execution>
<id>zipalign</id>
<phase>package</phase>
<goals>
<goal>zipalign</goal>
</goals>
</execution>
</executions>
<configuration>
<sdk>
<platform>16</platform>
</sdk>
<emulator>
<avd>22</avd>
</emulator>
<zipalign>
<verbose>true</verbose>
</zipalign>
<deleteConflictingFiles>true</deleteConflictingFiles>
<undeployBeforeDeploy>true</undeployBeforeDeploy>
</configuration>
<extensions>true</extensions>
</plugin>
<plugin>
<artifactId>maven-clean-plugin</artifactId>
<version>2.4.1</version>
<configuration>
<filesets>
<fileset>
<directory>libs</directory>
</fileset>
<fileset>
<directory>obj</directory>
</fileset>
</filesets>
</configuration>
</plugin>
<plugin>
<artifactId>maven-install-plugin</artifactId>
<version>2.3.1</version>
</plugin>
<plugin>
<artifactId>maven-site-plugin</artifactId>
<version>2.1</version>
</plugin>
<plugin>
<artifactId>maven-deploy-plugin</artifactId>
<version>2.5</version>
</plugin>
<plugin>
<artifactId>maven-resources-plugin</artifactId>
<version>2.4.3</version>
</plugin>
<plugin>
<artifactId>maven-surefire-plugin</artifactId>
<version>2.5</version>
</plugin>
<plugin>
<groupId>org.codehaus.mojo</groupId>
<artifactId>versions-maven-plugin</artifactId>
<version>1.2</version>
</plugin>
<plugin>
<artifactId>maven-scm-plugin</artifactId>
<version>1.3</version>
<configuration>
<scmVersionType>branch</scmVersionType>
<scmVersion>${scm.branch}</scmVersion>
</configuration>
</plugin>
<plugin>
<artifactId>maven-release-plugin</artifactId>
<version>2.0</version>
<configuration>
<autoVersionSubmodules>true</autoVersionSubmodules>
</configuration>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-jar-plugin</artifactId>
<version>2.3.1</version>
<configuration>
<archive>
<manifestEntries>
<Build-Source-Version>1.6</Build-Source-Version>
<Build-Target-Version>1.6</Build-Target-Version>
</manifestEntries>
</archive>
</configuration>
</plugin>
<plugin>
<artifactId>maven-enforcer-plugin</artifactId>
<version>1.0-beta-1</version>
<executions>
<execution>
<id>enforce-maven</id>
<goals>
<goal>enforce</goal>
</goals>
<configuration>
<rules>
<requireMavenVersion>
<version>[${maven.version},)</version>
<message>Check for Maven version >=${maven.version} failed.
Update your Maven install.</message>
</requireMavenVersion>
</rules>
</configuration>
</execution>
</executions>
</plugin>
</plugins>
</build>
</project>
请帮帮我,谢谢你的帮助。
回答
感谢回答者,我设法编辑了他的代码,这是我的工作 pom.xml :
<?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/maven-v4_0_0.xsd">
<modelVersion>4.0.0</modelVersion>
<groupId>info.kghost.android</groupId>
<artifactId>openvpn</artifactId>
<version>0.9.4</version>
<packaging>apk</packaging>
<name>OpenVpn</name>
<profiles>
<profile>
<id>sign</id>
<activation>
<file>
<exists>signkey.keystore</exists>
</file>
</activation>
<build>
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-jarsigner-plugin</artifactId>
<version>1.2</version>
<executions>
<execution>
<id>signing</id>
<goals>
<goal>sign</goal>
</goals>
<inherited>true</inherited>
<configuration>
<includes>
<include>target/*.apk</include>
</includes>
<keystore>${basedir}/signkey.keystore</keystore>
<alias>CERT</alias>
<arguments>
<argument>-digestalg</argument>
<argument>SHA1</argument>
<argument>-sigalg</argument>
<argument>MD5withRSA</argument>
</arguments>
</configuration>
</execution>
</executions>
</plugin>
<plugin>
<groupId>com.jayway.maven.plugins.android.generation2</groupId>
<artifactId>android-maven-plugin</artifactId>
<version>3.2.0</version>
<configuration>
<sign>
<debug>false</debug>
</sign>
</configuration>
</plugin>
</plugins>
</build>
</profile>
</profiles>
<dependencies>
<dependency>
<groupId>android</groupId>
<artifactId>android</artifactId>
<version>4.1.2_r4</version>
<scope>provided</scope>
</dependency>
<dependency>
<groupId>xpp3</groupId>
<artifactId>xpp3</artifactId>
<version>1.1.4c</version>
<scope>provided</scope>
</dependency>
<dependency>
<groupId>org.khronos</groupId>
<artifactId>opengl-api</artifactId>
<version>gl1.1-android-2.1_r1</version>
<scope>provided</scope>
</dependency>
<dependency>
<groupId>junit</groupId>
<artifactId>junit</artifactId>
<version>4.4</version>
<scope>test</scope>
</dependency>
</dependencies>
<url>https://github.com/kghost/ics-openvpn</url>
<inceptionYear>2011</inceptionYear>
<properties>
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
<scm.branch>master</scm.branch>
<maven.version>3.0.3</maven.version>
</properties>
<scm>
<url>https://github.com/kghost/ics-openvpn/tree/${scm.branch}</url>
<connection>scm:git:git://github.com/kghost/ics-openvpn.git</connection>
<developerConnection>scm:git:git@github.com:kghost/ics-openvpn.git</developerConnection>
</scm>
<issueManagement>
<system>Github Issue Tracking</system>
<url>https://github.com/kghost/ics-openvpn/issues</url>
</issueManagement>
<licenses>
<license>
<name>GPL</name>
<url>LICENSE</url>
</license>
</licenses>
<build>
<sourceDirectory>src</sourceDirectory>
<plugins>
<plugin>
<groupId>org.eclipse.m2e</groupId>
<artifactId>lifecycle-mapping</artifactId>
<version>1.0.0</version>
<configuration>
<lifecycleMappingMetadata>
<pluginExecutions>
<pluginExecution>
<pluginExecutionFilter>
<groupId>com.jayway.maven.plugins.android.generation2</groupId>
<artifactId>android-maven-plugin</artifactId>
<versionRange>[3.0.0-alpha-13,)</versionRange>
<goals>
<goal>ndk-build</goal>
</goals>
</pluginExecutionFilter>
<action>
<execute />
</action>
</pluginExecution>
</pluginExecutions>
</lifecycleMappingMetadata>
</configuration>
</plugin>
<plugin>
<groupId>com.jayway.maven.plugins.android.generation2</groupId>
<artifactId>android-maven-plugin</artifactId>
<version>3.2.0</version>
<executions>
<!-- <execution>
<id>ndk-build</id>
<goals>
<goal>ndk-build</goal>
</goals>
<configuration>
<target>all</target>
<attachNativeArtifacts>false</attachNativeArtifacts>
</configuration>
</execution> -->
<execution>
<id>zipalign</id>
<phase>package</phase>
<goals>
<goal>zipalign</goal>
</goals>
</execution>
</executions>
<configuration>
<sdk>
<platform>16</platform>
</sdk>
<emulator>
<avd>22</avd>
</emulator>
<zipalign>
<verbose>true</verbose>
</zipalign>
<deleteConflictingFiles>true</deleteConflictingFiles>
<undeployBeforeDeploy>true</undeployBeforeDeploy>
</configuration>
<extensions>true</extensions>
</plugin>
<plugin>
<artifactId>maven-clean-plugin</artifactId>
<version>2.4.1</version>
<configuration>
<filesets>
<fileset>
<directory>libs</directory>
</fileset>
<fileset>
<directory>obj</directory>
</fileset>
</filesets>
</configuration>
</plugin>
<plugin>
<artifactId>maven-install-plugin</artifactId>
<version>2.3.1</version>
</plugin>
<plugin>
<artifactId>maven-site-plugin</artifactId>
<version>2.1</version>
</plugin>
<plugin>
<artifactId>maven-deploy-plugin</artifactId>
<version>2.5</version>
</plugin>
<plugin>
<artifactId>maven-resources-plugin</artifactId>
<version>2.4.3</version>
</plugin>
<plugin>
<artifactId>maven-surefire-plugin</artifactId>
<version>2.5</version>
</plugin>
<plugin>
<groupId>org.codehaus.mojo</groupId>
<artifactId>versions-maven-plugin</artifactId>
<version>1.2</version>
</plugin>
<plugin>
<artifactId>maven-scm-plugin</artifactId>
<version>1.3</version>
<configuration>
<scmVersionType>branch</scmVersionType>
<scmVersion>${scm.branch}</scmVersion>
</configuration>
</plugin>
<plugin>
<artifactId>maven-release-plugin</artifactId>
<version>2.0</version>
<configuration>
<autoVersionSubmodules>true</autoVersionSubmodules>
</configuration>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-jar-plugin</artifactId>
<version>2.3.1</version>
<configuration>
<archive>
<manifestEntries>
<Build-Source-Version>1.6</Build-Source-Version>
<Build-Target-Version>1.6</Build-Target-Version>
</manifestEntries>
</archive>
</configuration>
</plugin>
<plugin>
<artifactId>maven-enforcer-plugin</artifactId>
<version>1.0-beta-1</version>
<executions>
<execution>
<id>enforce-maven</id>
<goals>
<goal>enforce</goal>
</goals>
<configuration>
<rules>
<requireMavenVersion>
<version>[${maven.version},)</version>
<message>Check for Maven version >=${maven.version} failed.
Update your Maven install.</message>
</requireMavenVersion>
</rules>
</configuration>
</execution>
</executions>
</plugin>
</plugins>
</build>
</project>
最佳答案
按照 android-maven-plugin 示例代码,您可以尝试将以下内容添加到您的代码中(在 pluginManagement 标签内):
<plugins>
<plugin>
<groupId>com.jayway.maven.plugins.android.generation2</groupId>
<artifactId>android-maven-plugin</artifactId>
<version>3.8.2</version>
</plugin>
</plugins>
还包括以下内容:
<plugin>
<groupId>org.eclipse.m2e</groupId>
<artifactId>lifecycle-mapping</artifactId>
<version>1.0.0</version>
<configuration>
<lifecycleMappingMetadata>
<pluginExecutions>
<pluginExecution>
<pluginExecutionFilter>
<groupId>com.jayway.maven.plugins.android.generation2</groupId>
<artifactId>android-maven-plugin</artifactId>
<versionRange>[3.2.0,)</versionRange>
<goals>
<goal>manifest-update</goal>
</goals>
</pluginExecutionFilter>
<action>
<execute/>
</action>
</pluginExecution>
</pluginExecutions>
</lifecycleMappingMetadata>
</configuration>
</plugin>
编辑:还有下面的 fragment :
<plugin>
<groupId>com.jayway.maven.plugins.android.generation2</groupId>
<artifactId>android-maven-plugin</artifactId>
<version>3.8.2</version>
<configuration>
<sdk>
<platform>16</platform>
</sdk>
<emulator>
<avd>23</avd>
<wait>10000</wait>
<!--<options>-no-skin</options> -->
</emulator>
<zipalign>
<verbose>true</verbose>
</zipalign>
<undeployBeforeDeploy>true</undeployBeforeDeploy>
</configuration>
</plugin>
关于java - Eclipse android Maven : Plugin execution not covered by lifecycle configuration (execution: ndk- build,阶段:编译),我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/23004186/
我将视差效果与 background-size: cover; 一起使用。当屏幕分辨率为 +1090px 时没有问题,但如果它更小,背景图像开始隐藏在底部 div 下。 这是我的 bg img 的 c
我想存储来自 Coverity® 的结果到 InfluxDB,我想知道 Coverity 是否有 REST API? 最佳答案 如果您只是想将数据转储到 InfluxDB,您可以从 REST API
这个问题在这里已经有了答案: How to remove the stripes that appears when using linear gradient property [duplica
我已经建立了一个项目来使用 Coverity Scan . 在分析设置→项目组件下我有 Component name Pattern Ignore in analysis
我是使用覆盖的新手,这可能不是一个非常具有挑战性的问题,但如果有人能指导我完成设置 . 我首先运行以下命令: cov-configure --compiler/usr/bin/gcc --compty
我使用封面图像填充侧边栏,但在未填充正文的封面图像和封面正文本身之间出现了一条黑线。您可以在实际中看到它 here .我很确定这不是边界或其他任何东西。 谢谢! HTML CSS .co
我正在尝试构建一个背景图片我希望始终填满整个屏幕的网站。 当浏览器窗口又短又宽时,我希望图像展开,以便它的顶部在纵向填满整个屏幕,而其余部分则不可见。 当浏览器窗口又高又薄时,我希望图像展开,以便它的
我需要在其中一个元素上设置“封面”背景。 使用 CSS background-size: cover 与实际 img 和 object-fit: cover 的优缺点是什么? 最佳答案 除了其他人所说
我正在尝试用图像填充 div,同时保持其纵横比。但是我不想使用带有 background-size: cover 的背景图像,甚至不想使用 object-fit: cover 属性,我想要它们使用 i
这是我非常简单的 C++/CMake .travis.yml env: global: # The next declaration is the encrypted COVERITY_SC
在我通过启动并运行一个 100% 覆盖率的小型 C++ 测试项目来了解更多关于自动化测试的过程中,我遇到了以下问题——尽管我所有的实际代码行和所有执行分支都是被测试覆盖,lcov 仍然报告两行未经测试
我已经用 coverity-scan 注册了一个项目过去。 我现在想从 coverity-scan 中删除该项目(或者至少从我的仪表板中删除;但我更希望完全删除该项目)。 我被卡住了,因为网络界面中似
我通过覆盖工具收到以下错误 - overrun-buffer-arg:通过将 4 字节的结构类型 in_addr 传递给使用参数“8UL”在字节偏移量 7 处访问它的函数来溢出 4 个字节。 示例代码
有一个覆盖警告类型:UNUSED_VALUE。这是由“代码可维护性问题”下的工具定义的 UNUSED_VALUE:当一个变量被分配一个从函数调用返回的指针值并且从未在源代码中的其他任何地方使用时,它不
对 Java 来说相对较新,但任务是检查 Coverity 缺陷。这件事真像我想的那么简单吗? (我无法说服代码所有者。) 50 // this method is used when
我想在本地虚拟机上使用 Coverity。我创建了简单的 HalloWorld 并使用 Coverity Wizard 来设置分析。一切正常。问题是当我想从终端运行 Coverity 时。它没有“找到
给定以下程序: int main(){ float x = non_det_float(); float y = NAN; if (isnan(y) && x == 1.0f){
我想实现如下的封面流程 我试过 Carousel,但它不是一回事。一些谷歌搜索是否无法找到甚至接近给定示例中实现的封面流程的内容。 最佳答案 一定要看看这个,FancyCoverFlow . Play
如果我使用 background-size: cover 并且我想确保我的图像在分辨率为 2880x1880 的视网膜 macbook pro 上看起来不错,我是否只需要使图像达到该分辨率,或者它是否
我有两个 block 元素,第一个 ( ) 是浏览器窗口的大小并呈现动态大小的背景图像(使用 background-size: cover; )。另一个是固定的 高度恒定为 62px 和更大的 z-
我是一名优秀的程序员,十分优秀!