Friday, June 29, 2012

Did you ask for Maven?

NetBeans team just announced availability of 7.2 release candidate build. This is a good news for NBAndroid project because now we can publish a new version that will be interesting to Maven users. They will be able to use improved XML editors in their Maven project used to develop Android application.

The only problem is that this new version depends on some changes introduced in NetBeans 7.2. That's why I keep existing update center and installation procedure for all user of NetBeans 6.9, 7.0, and 7.1 untouched at the moment. Meanwhile I've set up a new download center for those who want to try this Maven intergation:

  • add URL as an autoupdate center in Tools | Plugins | Settings
  • go to Available plugins, find Android here and install the plugin
  • make sure Android SDK location is set in Tools | Options | Miscellaneous | Android (it is not read from Maven settings file yet)
  • check how the editors in your projects depending on work
That's it. Share the news & enjoy this new feature. As always feedback is welcomed.


  1. Radim,

    The big elephant in the room is

    nbandroid should integrate with this plugin so we can get the best of both worlds.

  2. That's what we do: NBAndroid will enhances XML editor support for files in Maven project that have dependency on artifact. And this plugin is using this dependency. Or I am missing something? If I am send a message to one of mailing lists mentioned in

  3. With your plugin i had problems like:
    Some plugins require plugin Common Test Runner API to be installed.The plugin Common Test Runner API is requested in version >= 1.19.1 (release version 1) but only 1.23.1 (of release version different from 1) was found.
    This one worked for me:

  4. Hi, just want to say thanks for your plugin! I've already publish 4 apps using Netbeans + NBAndroid.

  5. Hey brother, Netbeans is my IDE of choice and I hate that there's limited support for android dev on it. If I had a job I'd send u some cash cos I'm loving that you're undertaking this task(unfortunately I do not), but I'd just like to extend a thanks for your contributions:) ironically or not I'm typing this on my iOS device haha. Best wishes!

  6. The new update is beautiful! Thank you!!!

  7. Sorry for the ignorance but i have a problem trying to install this update:

    Warning - could not install some modules: NB JUnit - The module named org.netbeans.libs.junit4 was needed and not found. 2 further modules could not be installed due to the above problems.

    I wonder if i should have installed the previous version of NBAndroid in order to make this update work???

    Im using NB 7.2.1


  8. Hi, I am trying to get my first NetBeans - Android - Maven project to build.

    I got the pom.xml file from:

    However, in the IDE's project view, the project disappeared and I only see the MindMap apk.

    When I "Clean and Build", the message is:
    Failed to execute goal (default-generate-sources) on project MindMap: Execution default-generate-sources of goal failed: Could not find tool 'aapt'. Please provide a proper Android SDK directory path as configuration parameter ... in the plugin . As an alternative, you may add the parameter to commandline: -Dandroid.sdk.path=... or set environment variable ANDROID_HOME. -> [Help 1]

    To see the full stack trace of the errors, re-run Maven with the -e switch.
    Re-run Maven using the -X switch to enable full debug logging.

    For more information about the errors and possible solutions, please read the following articles:
    [Help 1]

    Any advice, please?

    Thank you,