From 7c0e04087bce5c75e1cb39138dead99843d16c80 Mon Sep 17 00:00:00 2001 From: Heath Borders Date: Tue, 10 Jun 2014 10:55:25 -0500 Subject: [PATCH 1/2] Removed duplicated maven.compiler.plugin declarations Maven 3 doesn't like duplicate declarations either in the same file or same pom hierarchy [1]. ``` [WARNING] [WARNING] Some problems were encountered while building the effective model for com.octo.android:android-sample-tests:apk:0.0.1-SNAPSHOT [WARNING] 'build.plugins.plugin.(groupId:artifactId)' must be unique but found duplicate declaration of plugin org.apache.maven.plugins:maven-compiler-plugin @ line 113, column 12 [WARNING] 'build.plugins.plugin.version' for org.codehaus.mojo:build-helper-maven-plugin is missing. @ line 95, column 12 [WARNING] [WARNING] It is highly recommended to fix these problems because they threaten the stability of your build. [WARNING] [WARNING] For this reason, future Maven versions might no longer support building such malformed projects. [WARNING] ``` [1] http://doc.nuxeo.com/display/public/CORG/Maven+coding+rules --- android-sample-tests/pom.xml | 3 --- 1 file changed, 3 deletions(-) diff --git a/android-sample-tests/pom.xml b/android-sample-tests/pom.xml index fc1b0e3..51aa962 100644 --- a/android-sample-tests/pom.xml +++ b/android-sample-tests/pom.xml @@ -89,9 +89,6 @@ android-maven-plugin - - maven-compiler-plugin - org.codehaus.mojo build-helper-maven-plugin From 2aaeb49f8c5024fe44e9c0fd543543fe674d6b78 Mon Sep 17 00:00:00 2001 From: Heath Borders Date: Tue, 10 Jun 2014 11:02:46 -0500 Subject: [PATCH 2/2] Added missing version for build-helper-maven-plugin. A version property existed in the pom, but wasn't used. ``` [WARNING] [WARNING] Some problems were encountered while building the effective model for com.octo.android:android-sample-tests:apk:0.0.1-SNAPSHOT [WARNING] 'build.plugins.plugin.version' for org.codehaus.mojo:build-helper-maven-plugin is missing. @ line 92, column 12 [WARNING] [WARNING] It is highly recommended to fix these problems because they threaten the stability of your build. [WARNING] [WARNING] For this reason, future Maven versions might no longer support building such malformed projects. [WARNING] ``` --- android-sample-tests/pom.xml | 1 + 1 file changed, 1 insertion(+) diff --git a/android-sample-tests/pom.xml b/android-sample-tests/pom.xml index 51aa962..529afef 100644 --- a/android-sample-tests/pom.xml +++ b/android-sample-tests/pom.xml @@ -92,6 +92,7 @@ org.codehaus.mojo build-helper-maven-plugin + ${build-helper-maven-plugin.version} add-source