Win a copy of The Little Book of Impediments (e-book only) this week in the Agile and Other Processes forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Android with Maven

 
Sonny Gill
Ranch Hand
Posts: 1211
IntelliJ IDE Mac
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
There seem to be a couple of Maven plugins for Android -
http://code.google.com/p/masa/
http://code.google.com/p/android-maven/

I have been using Ant so far, and happy with it.
I want to try Maven as soon as there is a full featured plugin, but not if it is going to be a hassle to set up (many other things to learn that I can spend my time on ).

Has anyone tried it? what was your experience like?

Cheers.
 
Jaikiran Pai
Marshal
Pie
Posts: 10447
227
IntelliJ IDE Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Sonny Gill wrote:
I have been using Ant so far, and happy with it.
I want to try Maven as soon as there is a full featured plugin, but not if it is going to be a hassle to set up (many other things to learn that I can spend my time on ).

Has anyone tried it? what was your experience like?

Cheers.


Are you asking about Maven and its comparison against Ant in general? Or are you asking specifically for using the plugins on Android. If you are looking for a general comparison, then our "Ant & other build tools" forum would be a good choice

Anyways, having used both Ant and Maven, i would say that both are targeted to do things in a different way. Each one has its advantages and its disadvantages. Maven works on the principle of conventions. So it regulates that your project has a standard folder hierarchy. Its a different point that you can always override the defaults. Ant on the other hand has no such convention and its upto the build configuration manager to create the appropriate "tasks" of pulling in the necessary source/resource from various locations.

Maven also works on the principle that your project dependencies (like dependency on a logging library) should come from a repository.
 
Sonny Gill
Ranch Hand
Posts: 1211
IntelliJ IDE Mac
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,

Sorry, if I wasn't clear.. I was asking specifically about the Android plugins.

My workplace prefers Maven where possible, so at some stage I will have to move from Ant to Maven for the Android development I am doing. I don't have to do it right away, so I just wanted to find out what other people's experience has been with using the Maven plugins.

As an aside, I was rather reluctant to switch from Ant to Maven for a long time. But it changed when I found "mvn jetty:run"
Now I use Maven where ever I can.
 
Hugo Josefson
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Let me recommend you to check out http://code.google.com/p/maven-android-plugin

It is being actively developed and we use it ourselves at Jayway, dogfood-wise

/Hugo
 
Sonny Gill
Ranch Hand
Posts: 1211
IntelliJ IDE Mac
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi Hugo,

Welcome to JavaRanch.

Yeah I just happened to find out about that yesterday via Peter Neubauer - http://twitter.com/peterneubauer/status/2116964127

Thanks for putting that together. Good Work!

Sonny

Hugo Josefson wrote:Let me recommend you to check out http://code.google.com/p/maven-android-plugin

It is being actively developed and we use it ourselves at Jayway, dogfood-wise

/Hugo
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic