Converting IDEA10 Android project to use Maven framework

Hey.

I'm wondering if it's supposed to be rather easy to convert a normal IDEA 10 Android project to add support for Maven framework. At the moment the only thing it does is generate a rather lousy pom file when I right click the "Add framework support" in the project view. It doesn't seem to copy the settings from the IDEA project files, so sources directory is wrong, links to other libraries is wrong etc.

Right clicking project and opening Project structure doesn't open the normal "maven" properties either (as shown here: http://www.teleal.org/weblog/software/Building%20Android%20applications%20with%20Maven%20and%20IntelliJ.html ).

Do I have to setup maven support for android manually, and setup the pom.xml file before I import it into IDEA like described here http://www.sonatype.com/books/mvnref-book/reference/android-dev-sect-config-build.html ?

I have done this before, but I'd rather want IDEA to take care of this for me .. at least the initial settings...

Anyone else stuck with this problem? Or is everyone making their pom file from scratch and does things "manually"?

EDIT: forgot to tick of this thread as a question, so any moderator be free to tick it for me as I don't see the option when I'm editing my thread.

2 comments
Comment actions Permalink

Hello Roy,

At the moment we don't have any special support for generating a POM file
based on an existing Android project. You're welcome to submit a feature
request at http://youtrack.jetbrains.net/

I'm wondering if it's supposed to be rather easy to convert a normal
IDEA 10 Android project to add support for Maven framework. At the
moment the only thing it does is generate a rather lousy pom file when
I right click the "Add framework support" in the project view. It
doesn't seem to copy the settings from the IDEA project files, so
sources directory is wrong, links to other libraries is wrong etc.

Right clicking project and opening Project structure doesn't open the
normal "maven" properties either (as shown here:
http://www.teleal.org/weblog/software/Building%20Android%20application
s%20with%20Maven%20and%20IntelliJ.html ).

Do I have to setup maven support for android manually, and setup the
pom.xml file before I import it into IDEA like described here
http://www.sonatype.com/books/mvnref-book/reference/android-dev-sect-c
onfig-build.html ?

I have done this before, but I'd rather want IDEA to take care of this
for me .. at least the initial settings...

Anyone else stuck with this problem? Or is everyone making their pom
file from scratch and does things "manually"?


--
Dmitry Jemerov
Development Lead
JetBrains, Inc.
http://www.jetbrains.com/
"Develop with Pleasure!"


0
Comment actions Permalink

Did someone add this as a new feature request?

I am using some external libraries that are using other external libraries and I want to use Maven's dependency support. Since IDEA sets up an ant build for Android, it makes it unflexable to change to some other build projects.

Mark

0

Please sign in to leave a comment.