[metrics] 01/01: Add or ignore maven plugins to kick off module build

Tim Potter tpot-guest at moszumanska.debian.org
Tue Nov 11 07:10:18 UTC 2014


This is an automated email from the git hooks/post-receive script.

tpot-guest pushed a commit to branch master
in repository metrics.

commit d98766984dfa112b8faa362cd493b890f8d04855
Author: Tim Potter <tpot at hp.com>
Date:   Tue Nov 11 18:09:50 2014 +1100

    Add or ignore maven plugins to kick off module build
---
 debian/control                           |  2 +-
 debian/libmetrics-java.poms              | 28 ++++++++++++++++++++++++++++
 debian/maven.ignoreRules                 |  2 ++
 debian/patches/dont-require-maven3.patch | 12 ++++++++++++
 debian/patches/series                    |  1 +
 5 files changed, 44 insertions(+), 1 deletion(-)

diff --git a/debian/control b/debian/control
index 716ee90..edb4421 100644
--- a/debian/control
+++ b/debian/control
@@ -2,7 +2,7 @@ Source: metrics
 Section: java
 Priority: optional
 Maintainer: Tim Potter <tpot at hp.com>
-Build-Depends: debhelper (>= 9), maven-debian-helper, default-jdk, javahelper, libslf4j-java, libjackson2-databind-java, liblog4j1.2-java, liblogback-java, libehcache-java, libgmetric4j-java, libservlet3.1-java
+Build-Depends: debhelper (>= 9), maven-debian-helper, default-jdk, javahelper, libslf4j-java, libjackson2-databind-java, liblog4j1.2-java, liblogback-java, libehcache-java, libgmetric4j-java, libservlet3.1-java, libmaven-bundle-plugin-java, libmaven-source-plugin-java, libmaven-enforcer-plugin-java, libmaven-javadoc-plugin-java
 Standards-Version: 3.9.6
 Homepage: https://dropwizard.github.io/metrics/3.1.0/
 Vcs-Git: git://anonscm.debian.org/collab-maint/metrics.git
diff --git a/debian/libmetrics-java.poms b/debian/libmetrics-java.poms
new file mode 100644
index 0000000..64b1188
--- /dev/null
+++ b/debian/libmetrics-java.poms
@@ -0,0 +1,28 @@
+# List of POM files for the package
+# Format of this file is:
+# <path to pom file> [option]*
+# where option can be:
+#   --ignore: ignore this POM and its artifact if any
+#   --ignore-pom: don't install the POM. To use on POM files that are created
+#     temporarily for certain artifacts such as Javadoc jars. [mh_install, mh_installpoms]
+#   --no-parent: remove the <parent> tag from the POM
+#   --package=<package>: an alternative package to use when installing this POM
+#      and its artifact
+#   --has-package-version: to indicate that the original version of the POM is the same as the upstream part
+#      of the version for the package.
+#   --keep-elements=<elem1,elem2>: a list of XML elements to keep in the POM
+#      during a clean operation with mh_cleanpom or mh_installpom
+#   --artifact=<path>: path to the build artifact associated with this POM,
+#      it will be installed when using the command mh_install. [mh_install]
+#   --java-lib: install the jar into /usr/share/java to comply with Debian
+#      packaging guidelines
+#   --usj-name=<name>: name to use when installing the library in /usr/share/java
+#   --usj-version=<version>: version to use when installing the library in /usr/share/java
+#   --no-usj-versionless: don't install the versionless link in /usr/share/java
+#   --dest-jar=<path>: the destination for the real jar.
+#     It will be installed with mh_install. [mh_install]
+#   --classifier=<classifier>: Optional, the classifier for the jar. Empty by default.
+#   --site-xml=<location>: Optional, the location for site.xml if it needs to be installed.
+#     Empty by default. [mh_install]
+#
+pom.xml --no-parent --has-package-version --java-lib
diff --git a/debian/maven.ignoreRules b/debian/maven.ignoreRules
new file mode 100644
index 0000000..4a583d1
--- /dev/null
+++ b/debian/maven.ignoreRules
@@ -0,0 +1,2 @@
+org.apache.maven.plugins maven-release-plugin * * * *
+org.codehaus.mojo findbugs-maven-plugin * * * *
diff --git a/debian/patches/dont-require-maven3.patch b/debian/patches/dont-require-maven3.patch
new file mode 100644
index 0000000..6cc979e
--- /dev/null
+++ b/debian/patches/dont-require-maven3.patch
@@ -0,0 +1,12 @@
+Index: metrics/pom.xml
+===================================================================
+--- metrics.orig/pom.xml
++++ metrics/pom.xml
+@@ -2,7 +2,6 @@
+ <project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
+     <modelVersion>4.0.0</modelVersion>
+     <prerequisites>
+-        <maven>3.0.0</maven>
+     </prerequisites>
+ 
+     <groupId>io.dropwizard.metrics</groupId>
diff --git a/debian/patches/series b/debian/patches/series
new file mode 100644
index 0000000..027e26f
--- /dev/null
+++ b/debian/patches/series
@@ -0,0 +1 @@
+dont-require-maven3.patch

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-java/metrics.git



More information about the pkg-java-commits mailing list