zoukankan      html  css  js  c++  java
  • maven的坑2

    导入工程后,pom.xml文件中以下插件报错:

                <plugin>
                    <groupId>com.jayway.maven.plugins.android.generation2</groupId>
                    <artifactId>android-maven-plugin</artifactId>
                    <version>3.8.1</version>
                    <extensions>true</extensions>
                    <configuration>
                        <sdk>
                            <!-- platform or api level (api level 4 = platform 1.6)-->
                            <platform>20</platform>
                            <!--<path></path>-->
                        </sdk>
                        <emulator>
                            <!-- the name of the avd device to use for starting the emulator -->
                            <avd>16</avd>
                        </emulator>
                        <deleteConflictingFiles>true</deleteConflictingFiles>
                        <undeployBeforeDeploy>true</undeployBeforeDeploy>
                    </configuration>
                </plugin>

    提示:

    Plugin execution not covered by lifecycle configuration: 
     com.jayway.maven.plugins.android.generation2:android-maven-plugin:3.8.0:consume-aar (execution:
     default-consume-aar, phase: compile)

    解决办法:

    打开 'Problems'视图: 'Window' -> 'Show View' -> 'Problems'

    找到报错的这一条,右键,打开Quick Fix

    点击选择'Permanently mark goal generate in pom.xml as ignored in Eclipse build' -> 'Finish' -> 'OK'

    修改完后,右键项目—> Maven —> Update Project

  • 相关阅读:
    POJ1850Code
    POJ1019Number Sequence
    POJ2115C Looooops
    POJ1496Word Index
    POJ3292Semiprime Hnumbers
    POJ1942Paths on a Grid
    搞笑!
    个人感觉vs 提高效率的快捷键
    PYTHON实现 字符串转化为十六进制串
    scapy发送伪装包(1) 获取本机信息
  • 原文地址:https://www.cnblogs.com/melody-emma/p/5112722.html
Copyright © 2011-2022 走看看