Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

I'm very new to Maven, and on top of that I'm forced to use the IntelliJ which is new environment as well for me.

While building project with the Maven in IntelliJ 12.0.3 I'm getting compilation error:

Failed to execute goal com.jayway.maven.plugins.android.generation2:android-maven-plugin:3.5.0:generate-sources (default-generate-sources) on project merchant: Execution default-generate-sources of goal com.jayway.maven.plugins.android.generation2:android-maven-plugin:3.5.0:generate-sources failed: Path "C:\adt-bundle-windows-x86_64\adt-bundle-windows\sdk\platform-tools\platforms" is not a directory. 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]

I added to Environmental variables: ANDROID_HOME with parameter: C:...\sdk\platform-tools but it seems that it's still incorrect.

Yesterday, when this error occured on a different branch I was using, one guy was able to fix it with some settings in the File --> Settings --> Maven --> Runner --> Add Maven Property. I've checked the list there but it was not conclusive :(. I think he added a property name and the value by hand.

Thanks for your help!

share|improve this question
    
can you post your pom.xml? mat's solution works for me. –  fxp Aug 23 '13 at 15:47

1 Answer 1

You can add the Android-SDK-Path to the commandline:

In Settings -> Maven -> Runner add a propery with

Name  = android.sdk.path
Value = <path to your android-sdk>

This fixed the Problem for me

share|improve this answer
    
I added that property (IntelliJ 12.1.3) but it's still not working. –  TOUDIdel May 24 '13 at 10:49

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.