m2e-android (一個集成ADT和 Maven Android Plugin的mave...

Getting Started

The Android Configurator is an Maven Integration for Eclipse (m2e) plug-in that adds maven support for Android Developer Tools (ADT) and the Maven Android Plugin. It brings the power of Maven dependency management into the ADT. android

1. Before you start

You will need Eclipse Indigo or Juno installed. app

2. Install Android Connector

You can install the Android Connector for Maven via the Eclipse Marketplace. Select Help -> Eclipse Marketplace... and search for "android m2e". eclipse

Click the Install button next to the Android Connector for Maven that appears and follow the path through the wizard dialog to install the plug-in and its dependencies (including the Android Development Toolkit and the Maven for Eclipse m2e plug-in). Accept the terms-and-conditions and click Finish. maven

Once you restart your Eclipse workspace you should be ready to start using the Android Connector. ui

3. Create Eclipse project

If you already have an Android project please make sure you have created a POM for your project using version 3.0.0 or greater of the maven-android-plugin. this

Then right-click on your project and select Configure -> Convert to Maven Project. google

If you are starting with a new project you can use the Maven Android archetypes to create Android projects completely within Eclipse: spa

  1. Create a new Maven Project (File -> New -> Project... then select Maven -> Maven Project).
  2. When prompted to Select Archetype click Add Archetype...
  3. In the dialog that appears enter "de.akquinet.android.archetypes" for Archetype Group Id.
  4. In Archetype Artifact Id enter "android-quickstart".
  5. In Archetype Version enter "1.0.8" and continue.
  6. When prompted enter your desired project group and artifact ID, version and, optionally, set the "platform" property for the Android version (defaults to '10').
  7. Click Finish

Either way you should end up with an Eclipse project looking something like this: rest

相關文章
相關標籤/搜索