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
不积跬步,无以至千里

浙公网安备 33010602011771号