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 http://nbandroid.org/release72/updates/updates.xml 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 com.google.android:android work
That's it. Share the news & enjoy this new feature. As always feedback is welcomed.


8 comments:

  1. Radim,

    The big elephant in the room is http://code.google.com/p/maven-android-plugin/

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

    ReplyDelete
  2. That's what we do: NBAndroid will enhances XML editor support for files in Maven project that have dependency on com.google.android:android 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 http://www.nbandroid.org/p/contacts.html

    ReplyDelete
  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: http://kenai.com/downloads/nbandroid/updatecenter/updates.xml

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

    ReplyDelete
  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!

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

    ReplyDelete
  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

    Thanks

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

    I got the pom.xml file from:
    https://github.com/ruffythepirate/MindMap/blob/master/pom.xml

    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 com.jayway.maven.plugins.android.generation2:android-maven-plugin:3.5.0:generate-sources (default-generate-sources) on project MindMap: Execution default-generate-sources of goal com.jayway.maven.plugins.android.generation2:android-maven-plugin:3.5.0:generate-sources 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] http://cwiki.apache.org/confluence/display/MAVEN/PluginExecutionException
    ------------------------------------------------------------------------

    Any advice, please?

    Thank you,
    Jabez

    ReplyDelete