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!