Configuration issues with Android maven

Source: Internet
Author: User

We download the Android-maven project on SVN, and the possible configuration error is as follows:

Plugin execution not covered by lifecycle configuration:

Com.jayway.maven.plugins.android.generation2:android-maven-plugin:3.8.2:consume-aar (Execution:

Default-consume-aar, Phase:compile)

Search a lot of solutions, think this solution is the most reliable, as follows:

First windows-preference-maven-lifecycle mapping in Eclipse, click "Open Workspace ... mappings metdata" and edit the following:

<?xml version= "1.0" encoding= "UTF-8"?>
<lifecycleMappingMetadata>
<pluginExecutions>

<pluginExecution>
<pluginExecutionFilter>
<groupId>com.jayway.maven.plugins.android.generation2</groupId>
<artifactId>android-maven-plugin</artifactId>
<goals>
<goal>compile</goal>
<goal>generate-sources</goal>
<goal>proguard</goal>
<goal>process-classes</goal>
</goals>
<versionrange>[3.5,) </versionRange>
</pluginExecutionFilter>
<action>
<ignore/>
</action>
</pluginExecution>

</pluginExecutions>
</lifecycleMappingMetadata>

GroupId and Artifactid content is pom.xml error plug-in name, and that group of goals content, is in the error message in a paragraph of text, such as Phase:compile, then add a <goal>compile> </goal>, if there are errors like phase:generate-sources, add a <goal> and then save in the default workspace .../.metadata/.plugins/ Org.eclipse.m2e.core/lifecycle-mapping-metadata.xml Last Click "Reload Workspaces Lifecycle Mappings Metdata"

Configuration issues with Android maven

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.