[zookeeper] 01/05: Install the Maven artifacts (Closes: #775893)

Emmanuel Bourg ebourg-guest at moszumanska.debian.org
Sun Jan 25 23:05:24 UTC 2015


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

ebourg-guest pushed a commit to branch master
in repository zookeeper.

commit 48b08b1933e098848b64f53e44ae2b8fe2b78420
Author: Emmanuel Bourg <ebourg at apache.org>
Date:   Wed Jan 21 21:44:27 2015 +0100

    Install the Maven artifacts (Closes: #775893)
---
 debian/changelog               |   3 ++
 debian/control                 |   1 +
 debian/libzookeeper-java.jlibs |   1 -
 debian/maven.rules             |   1 +
 debian/pom.xml                 | 113 +++++++++++++++++++++++++++++++++++++++++
 debian/rules                   |   5 ++
 6 files changed, 123 insertions(+), 1 deletion(-)

diff --git a/debian/changelog b/debian/changelog
index dc71608..017dada 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -8,6 +8,9 @@ zookeeper (3.4.6+dfsg-1) UNRELEASED; urgency=medium
   * New upstream version.  (Closes: #756982)
   * debian/patches: Refresh patches.
 
+  [ Emmanuel Bourg ]
+  * Install the Maven artifacts (Closes: #775893)
+
  -- James Page <james.page at ubuntu.com>  Tue, 25 Mar 2014 09:41:18 +0000
 
 zookeeper (3.4.5+dfsg-2) unstable; urgency=high
diff --git a/debian/control b/debian/control
index 5e4d0c9..ff938f7 100644
--- a/debian/control
+++ b/debian/control
@@ -30,6 +30,7 @@ Build-Depends:
  libtool,
  libxerces2-java,
  libxml2-dev,
+ maven-repo-helper,
  procps,
  python-all-dev (>= 2.6.6-3~)
 X-Python-Version: >= 2.6
diff --git a/debian/libzookeeper-java.jlibs b/debian/libzookeeper-java.jlibs
deleted file mode 100644
index 8c15053..0000000
--- a/debian/libzookeeper-java.jlibs
+++ /dev/null
@@ -1 +0,0 @@
-build/zookeeper.jar
diff --git a/debian/maven.rules b/debian/maven.rules
new file mode 100644
index 0000000..97cd292
--- /dev/null
+++ b/debian/maven.rules
@@ -0,0 +1 @@
+log4j log4j * s/.*/1.2.x/ * *
diff --git a/debian/pom.xml b/debian/pom.xml
new file mode 100644
index 0000000..ae74f52
--- /dev/null
+++ b/debian/pom.xml
@@ -0,0 +1,113 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!--
+   Apache Maven 2 POM generated by Apache Ivy
+   http://ant.apache.org/ivy/
+   Apache Ivy version: 2.2.0 20100923230623
+-->
+<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/maven-v4_0_0.xsd">
+
+  <modelVersion>4.0.0</modelVersion>
+  <groupId>org.apache.zookeeper</groupId>
+  <artifactId>zookeeper</artifactId>
+  <packaging>pom</packaging>
+  <version>3.4.6</version>
+  <dependencies>
+    <dependency>
+      <groupId>org.slf4j</groupId>
+      <artifactId>slf4j-api</artifactId>
+      <version>1.6.1</version>
+      <scope>compile</scope>
+    </dependency>
+    <dependency>
+      <groupId>org.slf4j</groupId>
+      <artifactId>slf4j-log4j12</artifactId>
+      <version>1.6.1</version>
+      <scope>compile</scope>
+    </dependency>
+    <dependency>
+      <groupId>org.apache.maven.wagon</groupId>
+      <artifactId>wagon-http</artifactId>
+      <version>2.4</version>
+      <optional>true</optional>
+    </dependency>
+    <dependency>
+      <groupId>org.apache.maven</groupId>
+      <artifactId>maven-ant-tasks</artifactId>
+      <version>2.1.3</version>
+      <optional>true</optional>
+    </dependency>
+    <dependency>
+      <groupId>log4j</groupId>
+      <artifactId>log4j</artifactId>
+      <version>1.2.16</version>
+      <scope>compile</scope>
+    </dependency>
+    <dependency>
+      <groupId>jline</groupId>
+      <artifactId>jline</artifactId>
+      <version>0.9.94</version>
+      <scope>compile</scope>
+    </dependency>
+    <dependency>
+      <groupId>io.netty</groupId>
+      <artifactId>netty</artifactId>
+      <version>3.7.0.Final</version>
+      <scope>compile</scope>
+    </dependency>
+    <dependency>
+      <groupId>org.vafer</groupId>
+      <artifactId>jdeb</artifactId>
+      <version>0.8</version>
+      <optional>true</optional>
+    </dependency>
+    <dependency>
+      <groupId>junit</groupId>
+      <artifactId>junit</artifactId>
+      <version>4.8.1</version>
+      <scope>test</scope>
+    </dependency>
+    <dependency>
+      <groupId>org.mockito</groupId>
+      <artifactId>mockito-all</artifactId>
+      <version>1.8.2</version>
+      <scope>test</scope>
+    </dependency>
+    <dependency>
+      <groupId>checkstyle</groupId>
+      <artifactId>checkstyle</artifactId>
+      <version>5.0</version>
+      <scope>test</scope>
+    </dependency>
+    <dependency>
+      <groupId>jdiff</groupId>
+      <artifactId>jdiff</artifactId>
+      <version>1.0.9</version>
+      <optional>true</optional>
+    </dependency>
+    <dependency>
+      <groupId>xerces</groupId>
+      <artifactId>xerces</artifactId>
+      <version>1.4.4</version>
+      <optional>true</optional>
+    </dependency>
+    <dependency>
+      <groupId>org.apache.rat</groupId>
+      <artifactId>apache-rat-tasks</artifactId>
+      <version>0.6</version>
+      <optional>true</optional>
+    </dependency>
+    <dependency>
+      <groupId>commons-lang</groupId>
+      <artifactId>commons-lang</artifactId>
+      <version>2.4</version>
+      <optional>true</optional>
+    </dependency>
+    <dependency>
+      <groupId>commons-collections</groupId>
+      <artifactId>commons-collections</artifactId>
+      <version>3.1</version>
+      <optional>true</optional>
+    </dependency>
+  </dependencies>
+</project>
diff --git a/debian/rules b/debian/rules
index 702351e..ab870a4 100755
--- a/debian/rules
+++ b/debian/rules
@@ -51,6 +51,10 @@ override_dh_install:
 		sed -e 's/__ARCH__/$(DEB_HOST_MULTIARCH)/g' debian/$$install.install.in \
 			> debian/$$install.install; \
 	done
+
+	# Install the Maven artifacts
+	mh_installpom -plibzookeeper-java debian/pom.xml
+	mh_installjar -plibzookeeper-java --java-lib --has-package-version debian/pom.xml build/zookeeper.jar
 	dh_install
 
 ifeq (,$(findstring nocheck, $(DEB_BUILD_OPTIONS)))
@@ -84,6 +88,7 @@ endif
 endif
 
 override_dh_clean:
+	mh_clean
 	dh_clean --exclude=src/java \
              --exclude=src/docs \
              --exclude=src/c \

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



More information about the pkg-java-commits mailing list