From b0823e1cbd8c5794a471abd4a49d0bf1105a0351 Mon Sep 17 00:00:00 2001 From: Jeremy Landis Date: Mon, 21 Apr 2014 21:20:54 -0400 Subject: [PATCH] Pom Corrections Fixed multi module pom to use 'waffle-parent' rather than 'build' as it was renamed. Fixed objenesis version with mockito Added explicit groupId for consistency Replace buildnumber-maven-plugin with git-commit-id-plugin to get git revisions Updated checkstyles plugin Downgraded commons-io and scm snapshots Removed unused changelog plugin Replaced scm svn dependencies with git Cleanup manifests Added build of test source jar & test javadoc jar Removed commented out configuration Note: git-commit-id-plugin works against local .git directory. POMs deeply nested will need to configure appropriately. --- Source/JNA/pom.xml | 2 +- .../waffle-demo-parent/waffle-filter/pom.xml | 7 + Source/JNA/waffle-parent/pom.xml | 236 +++++------------- 3 files changed, 75 insertions(+), 170 deletions(-) diff --git a/Source/JNA/pom.xml b/Source/JNA/pom.xml index 01879defa9..ee01c0c890 100644 --- a/Source/JNA/pom.xml +++ b/Source/JNA/pom.xml @@ -4,7 +4,7 @@ com.github.dblock.waffle waffle-parent 1.7-SNAPSHOT - build + waffle-parent waffle-pom pom diff --git a/Source/JNA/waffle-demo-parent/waffle-filter/pom.xml b/Source/JNA/waffle-demo-parent/waffle-filter/pom.xml index e911fe664a..83114e7070 100644 --- a/Source/JNA/waffle-demo-parent/waffle-filter/pom.xml +++ b/Source/JNA/waffle-demo-parent/waffle-filter/pom.xml @@ -17,6 +17,13 @@ + + pl.project13.maven + git-commit-id-plugin + + ../../../../.git + + org.apache.tomcat.maven tomcat6-maven-plugin diff --git a/Source/JNA/waffle-parent/pom.xml b/Source/JNA/waffle-parent/pom.xml index d8be17995f..8399c604a2 100644 --- a/Source/JNA/waffle-parent/pom.xml +++ b/Source/JNA/waffle-parent/pom.xml @@ -116,6 +116,12 @@ mockito-core ${mockito.version} test + + + objenesis + org.objenesis + + org.powermock @@ -136,7 +142,6 @@ test - @@ -157,10 +162,12 @@ 2.8.1 + org.apache.maven.plugins maven-enforcer-plugin 1.3.1 + org.apache.maven.plugins maven-gpg-plugin 1.5 @@ -240,36 +247,9 @@ - org.codehaus.mojo - buildnumber-maven-plugin - 1.2 - - - org.tmatesoft.svnkit - svnkit - 1.8.5 - - - jna - net.java.dev.jna - - - platform - net.java.dev.jna - - - - - net.java.dev.jna - jna-platform - 4.1.0 - - - org.antlr - antlr-runtime - 3.5.2 - - + pl.project13.maven + git-commit-id-plugin + 2.1.9 org.codehaus.mojo @@ -286,7 +266,7 @@ org.apache.maven.plugins maven-checkstyle-plugin - 2.12 + 2.12.1 org.apache.maven.plugins @@ -317,7 +297,7 @@ commons-io commons-io - 2.5-SNAPSHOT + 2.4 jaxen @@ -465,53 +445,6 @@ jdepend-maven-plugin 2.0-beta-2 - - org.apache.maven.plugins - maven-changelog-plugin - 2.3-SNAPSHOT - - - com.google.code.maven-scm-provider-svnjava - maven-scm-provider-svnjava - 2.1.1 - - - jna - net.java.dev.jna - - - platform - net.java.dev.jna - - - - - commons-io - commons-io - 2.5-SNAPSHOT - - - net.java.dev.jna - jna-platform - 4.1.0 - - - org.antlr - antlr-runtime - 3.5.2 - - - org.apache.maven.scm - maven-scm-provider-svn-commons - 1.10-SNAPSHOT - - - org.codehaus.plexus - plexus-utils - 3.0.17 - - - org.apache.maven.plugins maven-jxr-plugin @@ -541,42 +474,27 @@ org.apache.maven.plugins maven-scm-plugin - 1.10-SNAPSHOT + 1.9 - com.google.code.maven-scm-provider-svnjava - maven-scm-provider-svnjava - 2.1.1 - - - jna - net.java.dev.jna - - - platform - net.java.dev.jna - - - - - commons-io - commons-io - 2.5-SNAPSHOT + org.apache.maven.scm + maven-scm-provider-jgit + 1.9 - net.java.dev.jna - jna-platform - 4.1.0 + com.googlecode.javaewah + JavaEWAH + 0.8.5 - org.antlr - antlr-runtime - 3.5.2 + com.jcraft + jsch + 0.1.51 - org.apache.maven.scm - maven-scm-provider-svn-commons - 1.10-SNAPSHOT + org.eclipse.jgit + org.eclipse.jgit + 3.2.0.201312181205-r org.codehaus.plexus @@ -631,36 +549,21 @@ - org.codehaus.mojo - buildnumber-maven-plugin + pl.project13.maven + git-commit-id-plugin + + ../../../.git + - validate + git-commit-id - create + revision + validate - - false - false - true - - javasvn - - Final - - - - org.apache.maven.plugins @@ -669,16 +572,15 @@ true + true - ${project.name} - ${waffle.version}-b${buildNumber} ${maven.build.timestamp} - ${project.groupId} - ${project.name} - ${project.version}-b${buildNumber} ${maven.build.timestamp} - ${project.groupId} - ${git.revision} + ${maven.build.timestamp} ${copywrite} + ${git.commit.id} + ${os.name} + ${os.arch} + ${os.version} @@ -691,16 +593,15 @@ true + true - ${project.name} - ${waffle.version}-b${buildNumber} ${maven.build.timestamp} - ${project.groupId} - ${project.name} - ${project.version}-b${buildNumber} ${maven.build.timestamp} - ${project.groupId} - ${git.revision} + ${maven.build.timestamp} ${copywrite} + ${git.commit.id} + ${os.name} + ${os.arch} + ${os.version} @@ -711,6 +612,12 @@ jar + + attach-test-javadocs + + test-jar + + @@ -723,14 +630,12 @@ true - ${project.name} - ${waffle.version}-b${buildNumber} ${maven.build.timestamp} - ${project.groupId} - ${project.name} - ${project.version}-b${buildNumber} ${maven.build.timestamp} - ${project.groupId} - ${git.revision} + ${maven.build.timestamp} ${copywrite} + ${git.commit.id} + ${os.name} + ${os.arch} + ${os.version} @@ -741,9 +646,16 @@ jar + + attach-test-sources + + test-jar + + + org.apache.maven.plugins maven-enforcer-plugin @@ -810,9 +722,6 @@ - org.apache.maven.plugins maven-checkstyle-plugin @@ -868,8 +777,6 @@ - org.apache.maven.wagon wagon-ssh @@ -877,18 +784,6 @@ - checks @@ -1094,6 +989,7 @@ + org.apache.maven.plugins maven-gpg-plugin @@ -1106,6 +1002,7 @@ + org.apache.maven.plugins maven-javadoc-plugin @@ -1117,6 +1014,7 @@ + org.apache.maven.plugins maven-source-plugin