From 0b1d8fc40e9acba5f0b12942966ee3120e69db1f Mon Sep 17 00:00:00 2001 From: Miguel Lavigne Date: Mon, 17 Jun 2013 16:33:31 -0400 Subject: [PATCH 1/2] Adding basic maven building support Added basic support for maven both the library and the example project. Added maven 'target' directory to .gitignore. Moved the dependencies and plugins version to properties in the parent. --- .gitignore | 1 + android-mapviewballoons-example/pom.xml | 45 ++++++++++++++++ android-mapviewballoons/pom.xml | 39 ++++++++++++++ pom.xml | 71 +++++++++++++++++++++++++ 4 files changed, 156 insertions(+) create mode 100644 android-mapviewballoons-example/pom.xml create mode 100644 android-mapviewballoons/pom.xml create mode 100644 pom.xml diff --git a/.gitignore b/.gitignore index 08a0f3b..43a526e 100644 --- a/.gitignore +++ b/.gitignore @@ -5,3 +5,4 @@ android-mapviewballoons/gen/ android-mapviewballoons-example/local.properties android-mapviewballoons-example/bin/ android-mapviewballoons-example/gen/ +target/ diff --git a/android-mapviewballoons-example/pom.xml b/android-mapviewballoons-example/pom.xml new file mode 100644 index 0000000..d465aad --- /dev/null +++ b/android-mapviewballoons-example/pom.xml @@ -0,0 +1,45 @@ + + + 4.0.0 + + + com.github.jgilfelt.mapviewballoons + parent + 1.5.2-SNAPSHOT + ../pom.xml + + + example + apk + MapViewBalloons - Example + + + + com.google.android + android + provided + + + com.google.android.maps + maps + provided + + + ${project.groupId} + mapviewballoons + ${project.version} + apklib + + + + + src + + + + com.jayway.maven.plugins.android.generation2 + android-maven-plugin + + + + diff --git a/android-mapviewballoons/pom.xml b/android-mapviewballoons/pom.xml new file mode 100644 index 0000000..156b3cb --- /dev/null +++ b/android-mapviewballoons/pom.xml @@ -0,0 +1,39 @@ + + + 4.0.0 + + + com.github.jgilfelt.mapviewballoons + parent + 1.5.2-SNAPSHOT + ../pom.xml + + + mapviewballoons + apklib + MapViewBalloons - Library + + + + com.google.android + android + provided + + + com.google.android.maps + maps + provided + + + + + src + + + + com.jayway.maven.plugins.android.generation2 + android-maven-plugin + + + + diff --git a/pom.xml b/pom.xml new file mode 100644 index 0000000..ecfcbdb --- /dev/null +++ b/pom.xml @@ -0,0 +1,71 @@ + + + 4.0.0 + + com.github.jgilfelt.mapviewballoons + parent + 1.5.2-SNAPSHOT + pom + MapViewBalloons - PARENT + + + UTF-8 + + + 1.6 + 15 + 3.6.0 + 2.3.2 + 2.2.1 + + + 4.1.1.4 + 8_r2 + + + + android-mapviewballoons + android-mapviewballoons-example + + + + + + com.google.android + android + ${android.version} + + + com.google.android.maps + maps + ${android.maps.version} + + + + + + + + + com.jayway.maven.plugins.android.generation2 + android-maven-plugin + ${android-maven-plugin.version} + true + + + ${sdk.platform} + + + + + maven-compiler-plugin + ${maven-compiler-plugin.version} + + ${jdk.version} + ${jdk.version} + + + + + + From 3ddfb10349eb25fbe94afcb11b2812912efb4eaa Mon Sep 17 00:00:00 2001 From: Miguel Lavigne Date: Mon, 17 Jun 2013 17:47:13 -0400 Subject: [PATCH 2/2] Reformat pom files --- android-mapviewballoons-example/pom.xml | 26 +++++----- android-mapviewballoons/pom.xml | 22 ++++---- pom.xml | 68 +++++++++++++------------ 3 files changed, 61 insertions(+), 55 deletions(-) diff --git a/android-mapviewballoons-example/pom.xml b/android-mapviewballoons-example/pom.xml index d465aad..ff9cdb1 100644 --- a/android-mapviewballoons-example/pom.xml +++ b/android-mapviewballoons-example/pom.xml @@ -1,17 +1,19 @@ - + 4.0.0 - + com.github.jgilfelt.mapviewballoons parent - 1.5.2-SNAPSHOT - ../pom.xml + 1.5.2-SNAPSHOT + ../pom.xml - - example - apk - MapViewBalloons - Example + + example + apk + MapViewBalloons - Example @@ -27,19 +29,19 @@ ${project.groupId} mapviewballoons - ${project.version} - apklib + ${project.version} + apklib src - + com.jayway.maven.plugins.android.generation2 android-maven-plugin - + diff --git a/android-mapviewballoons/pom.xml b/android-mapviewballoons/pom.xml index 156b3cb..1615476 100644 --- a/android-mapviewballoons/pom.xml +++ b/android-mapviewballoons/pom.xml @@ -1,17 +1,19 @@ - + 4.0.0 - + com.github.jgilfelt.mapviewballoons parent - 1.5.2-SNAPSHOT - ../pom.xml + 1.5.2-SNAPSHOT + ../pom.xml - - mapviewballoons - apklib - MapViewBalloons - Library + + mapviewballoons + apklib + MapViewBalloons - Library @@ -28,12 +30,12 @@ src - + com.jayway.maven.plugins.android.generation2 android-maven-plugin - + diff --git a/pom.xml b/pom.xml index ecfcbdb..25fa768 100644 --- a/pom.xml +++ b/pom.xml @@ -1,28 +1,30 @@ - - 4.0.0 - - com.github.jgilfelt.mapviewballoons - parent - 1.5.2-SNAPSHOT - pom - MapViewBalloons - PARENT - - - UTF-8 - - - 1.6 - 15 - 3.6.0 - 2.3.2 - 2.2.1 - - - 4.1.1.4 - 8_r2 - - + + 4.0.0 + + com.github.jgilfelt.mapviewballoons + parent + 1.5.2-SNAPSHOT + pom + MapViewBalloons - PARENT + + + UTF-8 + + + 1.6 + 15 + 3.6.0 + 2.3.2 + 2.2.1 + + + 4.1.1.4 + 8_r2 + + android-mapviewballoons android-mapviewballoons-example @@ -42,7 +44,7 @@ - + @@ -57,14 +59,14 @@ - - maven-compiler-plugin - ${maven-compiler-plugin.version} - - ${jdk.version} - ${jdk.version} - - + + maven-compiler-plugin + ${maven-compiler-plugin.version} + + ${jdk.version} + ${jdk.version} + +