yuchen931201 / maven-android-plugin

Automatically exported from code.google.com/p/maven-android-plugin
0 stars 0 forks source link

mvn android:mavenize #22

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. Be a new user.
2. Try to figure out how to set up an Android application project.
3.

What is the expected output?
It should be very easy.

What do you see instead?
I have to read through the long GettingStarted page, understand how to create 
my pom.xml, and understand the directory layout.

What version of maven-android-plugin are you using?
2.0.0-alpha4

What is the output of "mvn -version" on your machine?
Maven version: 2.0.10
Java version: 1.6.0_13
OS name: "linux" version: "2.6.28-11-generic" arch: "i386" Family: "unix"

Please use labels and text to provide additional information.

Create a new goal named "mavenize", which can take an existing project 
directory and:
 * create a pom.xml
 * restructure the directory to fit the desired layout

It should take a config parameter "layout", which tells the goal how to 
structure the directory. For example (some ideas):
 * -Dandroid.layout=eclipse means to make the directory structure compatible with Eclipse.
 * -Dandroid.layout=idea means to make the directory structure compatible with IntelliJ IDEA.
 * -Dandroid.layout=maven means to make a fully mavenized directory structure, which obeys all Maven conventions, but probably isn't compatible with Eclipse.

It should try to figure out the groupId and artifactId based on package name 
and any existing code, such as the main launcher Activity in 
AndroidManifest.xml.

Original issue reported on code.google.com by hugo.josefson.old@gmail.com on 20 Jun 2009 at 9:58

GoogleCodeExporter commented 9 years ago

Original comment by hugo.josefson.old@gmail.com on 11 Jul 2009 at 2:40

GoogleCodeExporter commented 9 years ago
The Android documentation is moderately catered towards Eclipse users.. Does it 
make
sense to use this as the default? I assume this is referring to using
<sourceDirectory>src</sourceDirectory> as opposed to Maven's src/main/java?

Original comment by bjdod...@gmail.com on 16 Jul 2009 at 3:44

GoogleCodeExporter commented 9 years ago
Yes, it seems many people use Eclipse :) I want to make it easy for everyone,
especially Eclipse users because there seems to many of them :), to use Maven 
Android
Plugin.

<sourceDirectory>src</sourceDirectory> is probably something we should go for 
when it
comes to the Eclipse layout. Please add any more insights here as comments.

If anyone of you know of something which *doesn't* work in Eclipse right now, I 
would
appreciate a specific Issue filed about that. Any comment, here or on the
mailinglist, is of course welcome!

Original comment by hugo.josefson.old@gmail.com on 16 Jul 2009 at 3:53

GoogleCodeExporter commented 9 years ago
I just tried checking out a project in eclipse, and the only problem seems to 
be the
generation of the R.java file. It built the .apk from the command fine. Have you
gotten the plugin to work with Eclipse?

Original comment by bjdod...@gmail.com on 16 Jul 2009 at 7:42

GoogleCodeExporter commented 9 years ago
I think I found my issue- the default.properties file is required for Eclipse to
build properly.

Also, the JAVA target needs to be set to 1.5.

Original comment by bjdod...@gmail.com on 16 Jul 2009 at 9:27

GoogleCodeExporter commented 9 years ago
That's great, Ben.

I think we should capture all Eclipse related helpful info on a Wiki page. 
Would you
please write down some of the details you have found, into a new Wiki page? I 
have
added you as committer to the project, which means you can now directly create 
and
edit Wiki pages here.

I'm specifically interested in exactly what the default.properties file should 
look
like to work, and how you used the m2eclipse plugin, or however you did it with 
for
example mvn eclipse:eclipse(?)... Also version numbers of which Eclipse version 
you
got it to work with is of interest.

That would be a big help. Thanks!

/Hugo

Original comment by hugo.josefson.old@gmail.com on 17 Jul 2009 at 8:04

GoogleCodeExporter commented 9 years ago
Postponing original issue until further notice, because we are now focusing on 
EclipseIntegration.

Original comment by hugo.josefson.old@gmail.com on 28 Jul 2009 at 8:31

GoogleCodeExporter commented 9 years ago

Original comment by hugo.josefson.old@gmail.com on 7 Aug 2009 at 4:09

GoogleCodeExporter commented 9 years ago
Closing since I doubt this is ever going to be useful/feasible for non-trivial 
projects.

Original comment by mosa...@gmail.com on 23 Feb 2013 at 7:25