Android for Maven Eclipse

Related tags

Plugin m2e-android
Overview

#Android for Maven Eclipse No Maintenance Intended Build Status Codacy Badge

Join the chat at https://gitter.im/rgladwell/m2e-android

Copyright (c) 2009, 2010, 2011, 2012, 2013, 2014, 2015 Ricardo Gladwell, Hugo Josefson, Anthony Dannane, Mykola Nikishov, Raphael Ackermann, Csaba Kozák, and Sonatype Inc.. All rights reserved. This program and the accompanying materials are made available under the terms of the Eclipse Public License 1.0 which accompanies this distribution

Android for Maven Eclipse (m2e-android) adds Maven support to the Android Developer Tools (ADT). This is developer documentation, for user instructions on how to install please see the project web site.

Lead Maintainer: Ricardo Gladwell

Special thanks to our patrons who crowdfunded project development through Patreon:

#Building

Before you start you need to:

  • Install the Android SDK.
  • Create ANDROID_HOME environment variable containing the Android SDK install path.
  • Ensure you have installed the requried Android dependencies (execute android update sdk --filter platform-tools,build-tools-21.1.1,android-18,addon-google_apis-google-18,android-10,addon-google_apis-google-10,android-8,addon-google_apis-google-8 --no-ui --force).
  • Install the latest Maven 3 for command line Tycho support.
  • Install the Maven Android SDK Deployer and deploy the 4.1 and 4.3 APIs (mvn install -P 4.3,2.2).

To build execute the following command from the project folder:

$ mvn install

###Eclipse Set-up

To configure your development environment please follow these steps:

This project consists of several sub-modules, including:

  • Parent POM.
  • Core Eclipse plugin.
  • Test suite.
  • Eclipse feature.
  • Various target definitions.
  • and the update site.

To clone them into your Eclipse workspace follow these steps:

  • Clone this git repository into your local workspace.
  • In Eclipse select File -> Import... in the menu and then select Maven -> Existing Maven Projects.
  • Select the m2e-android folder you just cloned and select the parent and some of the sub-projects (excluding the targets i.e. luna, mars, etc., but including the compile target).
  • Click Finish.
  • This should install some additional m2e extensions if not already installed
  • Restart Eclipse when prompted.
  • In Preferences -> Plug-In Development -> Target Platform choose Maven for Android Eclipse and click OK. It may take some time to downloads the dependencies required to compile m2e-android.

##Further Reading

For more information on developing the m2e-android plug-in please see the following:

Comments
  • Ensure source folders appear first in the classpath list.

    Ensure source folders appear first in the classpath list.

    After running the other Classpath Configuration classes the source folders are out of sequence, causing all sorts of problems looking up source. This is an attempt to re-order the classpaths. It hasn't yet been tied into the code, but here for code review and comment.

    opened by kingargyle 67
  • Generate project properties from POM

    Generate project properties from POM

    The project.properties file determines which Android target should be the project built against. This information is already defined in the maven-android-plugin configuration, by the android.sdk.platform property. This commit adds the ability to m2e-android to read this property and generate the project.properties file automatically at project import.

    opened by WonderCsabo 42
  • Modifying classpath takes previous attributes into account

    Modifying classpath takes previous attributes into account

    This little PR is loosely related to #182. It is not a good practice to create new entries, this change takes previous attributes into account. Also i refactored the code so i think it is a little bit cleaner now. I did not add any tests, since there is nothing to test in this PR.

    opened by WonderCsabo 34
  • Added working JUnit Launcher test

    Added working JUnit Launcher test

    Added test to verify JUnit launcher itself is correctly compiling and executing unit tests. This is currently failing with an unexpected result.

    Someone needs to look at this and find a way to get this to reliably work.

    waffle:in progress 
    opened by rgladwell 34
  • Implementation of Issue #106

    Implementation of Issue #106

    More info about this in the initial issue #106

    There is still some unsolved problems like:

    • force maven update project after end of import, do you know how to do it?
    • solve this http://stackoverflow.com/questions/12032753/eclipse-pde-how-to-add-marker-with-quick-action
    • this bug http://code.google.com/p/android/issues/detail?id=36460 (windows only?)

    But I think that you can make some core review already.

    I still think that is very uncomfortable use it. I mean that user must import main project, open pom.xml, see what's wrong, perform quick action. Better would be if everything will work directly after import. We will se what users will say...

    opened by tprochazka 32
  • Support 'android' as well as 'com.google.android' as group ids.

    Support 'android' as well as 'com.google.android' as group ids.

    The maven android sdk deployer by default uses 'android' as the group id instead of com.google.android. I believe google with Gradle is starting to move toward the com.google.android groupID but for legacy projects the 'android' groupID still needs to be supported otherwise projects can't be configured.

    waffle:in progress 
    opened by kingargyle 27
  • Fix order of source folders in classpath.

    Fix order of source folders in classpath.

    During classpath configuration the order of source code folders changes causing problems with source code lookup, for example during debugging:

    https://github.com/rgladwell/m2e-android/issues/issue/245

    The order should always be:

    src/main/java src/main/resources src/test/java src/test/resources Android Framework Android Private Libraries Android Dependencies Maven Dependencies Non-runtime Maven Dependencies

    This change reorders the classpath as above. Includes tests.

    opened by rgladwell 25
  • Ignore optional warnings in

    Ignore optional warnings in "gen" folder

    When the configuration entry "ignoreOptionalWarningsInGenFolder" is set to "true" in the configuration of the Android Maven Plugin, the optional warnings in the "gen" folder are ignored by the Eclipse IDE.

    This pull request provides an answer to issue #144.

    opened by gallandarakhneorg 22
  • Initial implementation using Andmore

    Initial implementation using Andmore

    This is proof of concept change to leverage the Andmore plugins instead of ADT. This will need some future work to allow for either module to be injected depending on what plugins are installed.

    This will fail to build until there is a public milestone of andmore available. It is mainly here for discussion on how to support andmore and what current modifications are needed to use the renamed plugins.

    opened by kingargyle 21
  • Fixed JUnit launcher test

    Fixed JUnit launcher test

    I finally fixed the JUnit launcher test. The problem was indeed the project was not compiled, so the JUnit classpath referenced nonexistent files/folders. I managed to compile the project, but it is a little bit tricky, since a simple project.build() call was not enough, so i had to use a workaround. Please see the comments of #235 of my really long investigation...

    With the modified buildAndroidProject()method, the ignoreTestBuildDirectoryContainsCompiledClasses test would pass, too. I did not re-enable it because i was not 100% sure why did you disable it in the first place.

    opened by WonderCsabo 21
  • Improving library path resolution for multi module maven project

    Improving library path resolution for multi module maven project

    By default the library path is "../libraryname" but in most cases a maven Android project is multi-module so the library path resolution fails.

    I used a code found on stackoverflow to make the library path relative to the target project. It works on MAC OS but i couldn't test it on a windows machine.

    opened by tguerin 20
  • Modifies EclipseAndroidWorkspace to treat misconfigured workspace pro…

    Modifies EclipseAndroidWorkspace to treat misconfigured workspace pro…

    …jects as warnings, not cascaded exceptions (Issue #369)

    The caught NullPointerException is the specific issue in the case we're running into in issue #369, but the CoreException catch is to allow it to recover from other such problems with unrelated projects.

    opened by jesse-gallagher 2
Releases(1.4.0)
Owner
Ricardo Gladwell
Senior full-stack developer
Ricardo Gladwell
An Eclipse builder for Android projects using Scala

OBSOLETE This is an Eclipse plugin for the obsolete Android Eclipse development system, and isn't relevant for modern Scala on Android. OVERVIEW Andro

James Moore 136 Nov 25, 2022
Maven Plugin for Android Application development and more

ANDROID MAVEN PLUGIN A plugin for Android application development with Apache Maven 3.0.5+ and the Android SDK. Please check out our website for furth

simpligility 1k Jan 4, 2023
Maven Archetypes for Android development

android-archetypes This projects provides several Maven archetypes for Android. Those archetypes allows to quickly bootstrap a Maven project to develo

akquinet AG 444 Nov 25, 2022
A plugin for Android Studio and Intellij IDEA that speeds up your day to day android development.

ADB Idea A plugin for Android Studio and Intellij IDEA that speeds up your day to day android development. The following commands are provided: Uninst

Philippe Breault 2k Dec 28, 2022
IntelliJ / Android Studio plugin for Android Holo Colors

This project is not maintained anymore. Holo Colors doesn't make sense since the introduction of Material Design and the ability to set the primary co

Jérôme Van Der Linden 644 Nov 10, 2022
gradle-android-scala-plugin adds scala language support to official gradle android plugin

gradle-android-scala-plugin gradle-android-scala-plugin adds scala language support to official gradle android plugin. See also sample projects at htt

saturday06 345 Dec 10, 2022
[Deprecated] Android Studio IDE support for Android gradle unit tests. Prepared for Robolectric.

#[Deprecated] Google has finally released a proper solution for unit testing. Therefore this plugin will no longer be activlty maintained. android-stu

Evan Tatarka 236 Dec 30, 2022
ADB WIFI Android Studio plugin for debug android app over Wi-Fi.

ADB WIFI ADB WIFI Android Studio plugin for debug android app over Wi-Fi. How to install in Android Studio: go to Preferences

Sutachad Wichai 298 Jan 3, 2023
Android Studio plug-in for generating ButterKnife injections from selected layout XML.

ButterKnifeZelezny Simple plug-in for Android Studio/IDEA that allows one-click creation of Butterknife view injections. How to install in Android Stu

Avast 3.4k Dec 14, 2022
GPP is Android's unofficial release automation Gradle Plugin. It can do anything from building, uploading, and then promoting your App Bundle or APK to publishing app listings and other metadata.

Gradle Play Publisher Gradle Play Publisher is Android's unofficial release automation Gradle Plugin. It can do anything from building, uploading, and

null 3.9k Dec 30, 2022
IntelliJ Plugin for Android Parcelable boilerplate code generation.

IntelliJ/Android Studio Plugin for Android Parcelable boilerplate code generation This tool generates an Android Parcelable implementation based on fi

Michał Charmas 2.1k Dec 27, 2022
Android Studio plugin which automatically generates drawable selectors from appropriately named resources.

SelectorChapek for Android This Android Studio plugin automatically generates drawable selectors from appropriately named Android resources. How to in

Inmite s.r.o. 1.6k Dec 29, 2022
Gradle plugin which downloads and manages your Android SDK.

DEPRECATED This plugin is deprecated and is no longer being developed. Tools and dependencies are automatically downloaded using version 2.2.0 of the

Jake Wharton 1.4k Dec 29, 2022
A Gradle plugin to support the Groovy language for building Android apps

Groovy language support for Android Deprecated: This plugin has been deprecated in favor of Kotlin which has the full support of JetBrains and Google.

Groovy programming language 853 Dec 21, 2022
Add a different ribbon to each of your Android app variants using this gradle plugin. Of course, configure it as you will

Easylauncher gradle plugin for Android Modify the launcher icon of each of your app-variants using simple gradle rules. Add ribbons of any color, over

Mikel 960 Dec 18, 2022
An easy-to-use sbt plugin for working with all Android projects

Build Android Projects Using SBT http://scala-android.org/ Change log | FAQ Auto-import from gradle using sbt-android-gradle NOTE: 1.6.0 is the last v

Scala on Android 749 Nov 20, 2022
A Gradle Plugin that removes unused resources in Android projects.

#Lint Cleaner Plugin Removes unused resources reported by Android lint including strings, colors and dimensions. Depracated As of Android Studio 2.0+

Marco RS 705 Nov 25, 2022
A Leiningen plugin for building Clojure/Android projects

lein-droid A Leiningen plugin to simplify Clojure development for Android platform. It acts as a build-tool for Clojure/Android projects. Usage First

Clojure/Android 643 Dec 15, 2022