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

  • 相关阅读:
    最长不重复子串
    add two nums
    logistic 回归
    threesum
    KNN算法思想与实现
    Python的易错点
    ccf 目录格式转换
    Azure 带宽
    Office 365 如何使用powershell查询邮件追踪
    Azure AD Connect 手动同步
  • 原文地址:https://www.cnblogs.com/melody-emma/p/5112722.html
Copyright © 2011-2022 走看看