[maven-shade-plugin] 02/24: [svn-inject] Applying Debian modifications to trunk

Emmanuel Bourg ebourg-guest at moszumanska.debian.org
Mon Jan 18 12:52:36 UTC 2016


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

ebourg-guest pushed a commit to branch master
in repository maven-shade-plugin.

commit ec8632662cf43f0a1e6d2ae3b60311e06915de3d
Author: Ludovic Claude <ludovic.claude at laposte.net>
Date:   Thu Jun 11 14:29:17 2009 +0000

    [svn-inject] Applying Debian modifications to trunk
---
 debian/build.properties                |  5 +++++
 debian/changelog                       |  6 ++++++
 debian/compat                          |  1 +
 debian/control                         | 38 ++++++++++++++++++++++++++++++++++
 debian/copyright                       | 22 ++++++++++++++++++++
 debian/libmaven-shade-plugin-java.poms |  1 +
 debian/maven-settings.xml              |  9 ++++++++
 debian/maven.rules                     |  6 ++++++
 debian/orig-tar.sh                     | 16 ++++++++++++++
 debian/patches/descriptor.patch        | 11 ++++++++++
 debian/patches/series                  |  1 +
 debian/rules                           | 27 ++++++++++++++++++++++++
 debian/watch                           |  3 +++
 13 files changed, 146 insertions(+)

diff --git a/debian/build.properties b/debian/build.properties
new file mode 100644
index 0000000..2237f60
--- /dev/null
+++ b/debian/build.properties
@@ -0,0 +1,5 @@
+javadoc.dir=target/api
+build.directory=target
+maven.test.skip=true
+maven.generate.target=org.codehaus.plexus:plexus-component-metadata:${plexus-component-metadata.version}:generate-metadata
+maven.generate.target2=plugin:descriptor
diff --git a/debian/changelog b/debian/changelog
new file mode 100644
index 0000000..6c1538e
--- /dev/null
+++ b/debian/changelog
@@ -0,0 +1,6 @@
+maven-shade-plugin (1.2.1-0ubuntu1~ppa8) jaunty; urgency=low
+
+  * Initial release. (Closes: #XXXX)
+
+ -- Ludovic Claude <ludovic.claude at laposte.net>  Fri, 15 May 2009 19:27:41 +0100
+
diff --git a/debian/compat b/debian/compat
new file mode 100644
index 0000000..1e8b314
--- /dev/null
+++ b/debian/compat
@@ -0,0 +1 @@
+6
diff --git a/debian/control b/debian/control
new file mode 100644
index 0000000..efd3c3c
--- /dev/null
+++ b/debian/control
@@ -0,0 +1,38 @@
+Source: maven-shade-plugin
+Section: java
+Priority: optional
+Maintainer: Debian Java Maintainers <pkg-java-maintainers at lists.alioth.debian.org>
+Uploaders: Ludovic Claude <ludovic.claude at laposte.net>
+Build-Depends: default-jdk, debhelper (>= 6), cdbs, quilt
+Build-Depends-Indep: maven-repo-helper, maven-ant-helper (>> 4), ant, ant-optional,
+ junit, libmaven-plugin-tools-java, libplexus-velocity-java, velocity,
+ libplexus-component-metadata-java (>= 1.0~beta3.0.7),
+ libmaven2-core-java, libplexus-container-default-java, 
+ libplexus-utils-java, libasm3-java, libjdom1-java, libmaven-dependency-tree-java
+Standards-Version: 3.8.1
+Vcs-Svn: svn://svn.debian.org/svn/pkg-java/trunk/maven-shade-plugin
+Vcs-Browser: http://svn.debian.org/wsvn/pkg-java/trunk/maven-shade-plugin/
+Homepage: http://maven.apache.org/plugins/maven-shade-plugin/
+
+Package: libmaven-shade-plugin-java
+Architecture: all
+Depends: ${misc:Depends}, libmaven2-core-java, libplexus-container-default-java, 
+ libplexus-utils-java, libasm3-java, libjdom1-java, libmaven-dependency-tree-java
+Description: Maven shade plugin
+ Maven is a software project management and comprehension tool. Based on the
+ concept of a project object model (POM), Maven can manage a project's build,
+ reporting and documentation from a central piece of information.
+ .
+ Maven's primary goal is to allow a developer to comprehend the complete
+ state of a development effort in the shortest period of time. In order to
+ attain this goal there are several areas of concern that Maven attempts
+ to deal with:
+ .
+    * Making the build process easy
+    * Providing a uniform build system
+    * Providing quality project information
+    * Providing guidelines for best practices development
+    * Allowing transparent migration to new features
+ .
+ This package ships the maven shade plugin which is used to build an Uber-JAR 
+ from the current project, including dependencies.
diff --git a/debian/copyright b/debian/copyright
new file mode 100644
index 0000000..b7085cb
--- /dev/null
+++ b/debian/copyright
@@ -0,0 +1,22 @@
+Format-Specification: http://dep.debian.net/deps/dep5/
+Name: Maven Shade Plugin
+Maintainer: Apache Maven team
+Source: http://maven.apache.org/
+
+Files: *
+Copyright: 2001-2009, The Apache Software Foundation.
+License: Apache-2.0
+
+Files: debian/*
+Copyright: 2009, Ludovic Claude <ludovic.claude at laposte.net>
+License: GPL-3+
+
+License: Apache-2.0
+  On Debian GNU/Linux system you can find the complete text of the
+  Apache 2.0 license in '/usr/share/common-licenses/Apache-2.0'.
+
+License: GPL-3
+  On Debian GNU/Linux system you can find the complete text of the
+  GNU General Public License version 3 license in 
+  '/usr/share/common-licenses/GPL-3'.
+
diff --git a/debian/libmaven-shade-plugin-java.poms b/debian/libmaven-shade-plugin-java.poms
new file mode 100644
index 0000000..43e746b
--- /dev/null
+++ b/debian/libmaven-shade-plugin-java.poms
@@ -0,0 +1 @@
+pom.xml --no-parent
diff --git a/debian/maven-settings.xml b/debian/maven-settings.xml
new file mode 100644
index 0000000..01f8769
--- /dev/null
+++ b/debian/maven-settings.xml
@@ -0,0 +1,9 @@
+<!--
+  This is a minimal settings.xml that switches maven to offline mode
+  and uses the Debian repo as the local repo.
+-->
+
+<settings>
+  <localRepository>/usr/share/maven-repo</localRepository>
+  <offline>true</offline>
+</settings>
diff --git a/debian/maven.rules b/debian/maven.rules
new file mode 100644
index 0000000..b30be07
--- /dev/null
+++ b/debian/maven.rules
@@ -0,0 +1,6 @@
+# keep the version for all Maven plugins as versionless plugins don't work
+* * maven-plugin *
+s/jdom/org.jdom/ jdom jar s/1\..*/debian/
+asm * * s/3\..*/3.x/
+org.codehaus.plexus plexus-container-default jar s/1\.0-alpha.*/1.0-alpha/
+junit junit jar s/3\..*/3.x/
diff --git a/debian/orig-tar.sh b/debian/orig-tar.sh
new file mode 100644
index 0000000..116ae4c
--- /dev/null
+++ b/debian/orig-tar.sh
@@ -0,0 +1,16 @@
+#!/bin/sh -e
+
+TAR=../maven-shade-plugin_$2.orig.tar.gz
+DIR=maven-shade-plugin-$2
+TAG=maven-shade-plugin-$2
+
+svn export http://svn.apache.org/repos/asf/maven/plugins/tags/$TAG $DIR
+tar -c -z -f $TAR $DIR
+rm -rf $DIR ../$TAG
+
+# move to directory 'tarballs'
+if [ -r .svn/deb-layout ]; then
+  . .svn/deb-layout
+  mv $TAR $origDir
+  echo "moved $TAR to $origDir"
+fi
diff --git a/debian/patches/descriptor.patch b/debian/patches/descriptor.patch
new file mode 100644
index 0000000..005ba73
--- /dev/null
+++ b/debian/patches/descriptor.patch
@@ -0,0 +1,11 @@
+--- a/src/main/java/org/apache/maven/plugins/shade/mojo/ShadeMojo.java
++++ b/src/main/java/org/apache/maven/plugins/shade/mojo/ShadeMojo.java
+@@ -101,7 +101,7 @@
+     /**
+      * The dependency tree builder to use.
+      *
+-     * @component
++     * @component role="org.apache.maven.shared.dependency.tree.DependencyTreeBuilder"
+      * @required
+      * @readonly
+      */
diff --git a/debian/patches/series b/debian/patches/series
new file mode 100644
index 0000000..28fd584
--- /dev/null
+++ b/debian/patches/series
@@ -0,0 +1 @@
+descriptor.patch
diff --git a/debian/rules b/debian/rules
new file mode 100755
index 0000000..5a40765
--- /dev/null
+++ b/debian/rules
@@ -0,0 +1,27 @@
+#!/usr/bin/make -f
+
+include /usr/share/cdbs/1/rules/debhelper.mk
+include /usr/share/cdbs/1/class/ant.mk
+include /usr/share/cdbs/1/rules/patchsys-quilt.mk
+
+PACKAGE              := $(DEB_SOURCE_PACKAGE)
+VERSION              := $(DEB_UPSTREAM_VERSION)
+# Need to specify the exact version of the Plexus plugin (from plexus-component-metadata package) used here
+PLEXUS_PLUGIN_VERSION:= 1.0-beta-3.0.7
+JAVA_HOME            := /usr/lib/jvm/default-java
+DEB_JARS             := ant-nodeps maven-core maven-model maven-plugin-api maven-project maven-artifact maven-artifact-manager \
+ maven-dependency-tree file-management plexus-utils plexus-container-default-alpha jdom1 asm3 asm3-commons
+DEB_ANT_BUILD_TARGET := package #javadoc
+DEB_ANT_BUILDFILE    := /usr/share/maven-ant-helper/maven-build.xml
+DEB_ANT_ARGS         := -Dbasedir=$(realpath .) -Dpackage=$(PACKAGE) -Dversion=$(VERSION) -Dplexus-component-metadata.version=$(PLEXUS_PLUGIN_VERSION)
+API_DOCS             := target/api
+
+get-orig-source:
+	-uscan --download-version $(DEB_UPSTREAM_VERSION) --force-download --rename
+
+binary-post-install/lib$(PACKAGE)-java::
+	mh_installpoms -plib$(PACKAGE)-java
+	mh_installjar -plib$(PACKAGE)-java -l pom.xml target/$(PACKAGE)-$(VERSION).jar
+
+clean::
+	-rm -rf debian/tmp
diff --git a/debian/watch b/debian/watch
new file mode 100644
index 0000000..ea32fc9
--- /dev/null
+++ b/debian/watch
@@ -0,0 +1,3 @@
+version=3
+http://svn.apache.org/repos/asf/maven/plugins/tags/ \
+  maven-shade-plugin-(.*)/ debian debian/orig-tar.sh

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



More information about the pkg-java-commits mailing list