[maven2-core] 02/38: [svn-inject] Applying Debian modifications to trunk

Emmanuel Bourg ebourg-guest at moszumanska.debian.org
Fri Feb 27 13:24:16 UTC 2015


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

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

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

    [svn-inject] Applying Debian modifications to trunk
---
 debian/README.Debian-source                |   9 ++
 debian/build.properties                    |  40 +++++++++
 debian/build.xml                           | 140 +++++++++++++++++++++++++++++
 debian/changelog                           |   7 ++
 debian/compat                              |   1 +
 debian/control                             |  65 ++++++++++++++
 debian/copyright                           |  62 +++++++++++++
 debian/libmaven2-core-java-doc.doc-base    |  10 +++
 debian/libmaven2-core-java-doc.docs        |   1 +
 debian/libmaven2-core-java.poms            |  23 +++++
 debian/maven.rules                         |   3 +
 debian/orig-tar.sh                         |  19 ++++
 debian/patches/plugin-versions.patch       |  38 ++++++++
 debian/patches/remove_webdav_support.patch |  28 ++++++
 debian/patches/series                      |   2 +
 debian/rules                               |  45 ++++++++++
 debian/watch                               |   4 +
 17 files changed, 497 insertions(+)

diff --git a/debian/README.Debian-source b/debian/README.Debian-source
new file mode 100644
index 0000000..3bbe530
--- /dev/null
+++ b/debian/README.Debian-source
@@ -0,0 +1,9 @@
+maven2-core package
+---------------------
+
+This package has been separated from maven2 as it contains only the libraries for
+Maven2, and those libraries are used to build some Maven plugins which are used 
+to build Maven2 itself.
+
+ -- Ludovic Claude <ludovic.claude at laposte.net>  Sun, 03 May 2009 12:04:20 +0000
+
diff --git a/debian/build.properties b/debian/build.properties
new file mode 100644
index 0000000..4198a74
--- /dev/null
+++ b/debian/build.properties
@@ -0,0 +1,40 @@
+javadoc.dir=build/docs/api
+maven.test.skip=true
+classpath.compile = \
+            ${basedir}/maven-artifact/build/maven-artifact-${version}.jar:\
+            ${basedir}/maven-repository-metadata/build/maven-repository-metadata-${version}.jar:\
+            ${basedir}/maven-artifact-manager/build/maven-artifact-manager-${version}.jar:\
+            ${basedir}/maven-model/build/maven-model-${version}.jar:\
+            ${basedir}/maven-settings/build/maven-settings-${version}.jar:\
+            ${basedir}/maven-artifact-test/build/maven-artifact-test-${version}.jar:\
+            ${basedir}/maven-plugin-parameter-documenter/build/maven-plugin-parameter-documenter-${version}.jar:\
+            ${basedir}/maven-reporting/build/maven-reporting-${version}.jar:\
+            ${basedir}/maven-reporting/maven-reporting-api/build/maven-reporting-api-${version}.jar:\
+            ${basedir}/maven-profile/build/maven-profile-${version}.jar:\
+            ${basedir}/maven-error-diagnostics/build/maven-error-diagnostics-${version}.jar:\
+            ${basedir}/maven-plugin-registry/build/maven-plugin-registry-${version}.jar:\
+            ${basedir}/maven-project/build/maven-project-${version}.jar:\
+            ${basedir}/maven-plugin-api/build/maven-plugin-api-${version}.jar:\
+            ${basedir}/maven-plugin-descriptor/build/maven-plugin-descriptor-${version}.jar:\
+            ${basedir}/maven-monitor/build/maven-monitor-${version}.jar:\
+            ${basedir}/maven-core/build/maven-core-${version}.jar:\
+            ${basedir}/maven-script/build/maven-script-${version}.jar:\
+		    /usr/share/java/backport-util-concurrent.jar:\
+		    /usr/share/java/doxia-sink-api.jar:\
+		    /usr/share/java/bsh.jar:\
+		    /usr/share/java/classworlds.jar:\
+            /usr/share/java/commons-cli.jar:\
+            /usr/share/java/junit.jar:\
+            /usr/share/java/modello-core.jar:\
+            /usr/share/java/plexus-ant-factory.jar:\
+            /usr/share/java/plexus-bsh-factory.jar:\
+            /usr/share/java/plexus-archiver.jar:\
+            /usr/share/java/plexus-classworlds.jar:\
+            /usr/share/java/plexus-cipher.jar:\
+            /usr/share/java/plexus-container-default-alpha.jar:\
+            /usr/share/java/plexus-interactivity-api.jar:\
+            /usr/share/java/plexus-interpolation.jar:\
+            /usr/share/java/plexus-sec-dispatcher.jar:\
+            /usr/share/java/plexus-utils.jar:\
+            /usr/share/java/wagon-provider-api.jar
+
diff --git a/debian/build.xml b/debian/build.xml
new file mode 100644
index 0000000..6fc500a
--- /dev/null
+++ b/debian/build.xml
@@ -0,0 +1,140 @@
+<?xml version="1.0"?>
+
+<project name="pkg-java" default="package" basedir="..">
+
+    <property file="debian/build.properties"/>
+    <property name="maven.build" value="/usr/share/maven-ant-helper/maven-build.xml"/>
+    <property file="/usr/share/maven-ant-helper/maven-defaults.properties"/>
+
+    <macrodef name="cleanmodule">
+	    <attribute name="dir"/>
+	    <sequential>
+		  <ant target="clean" antfile="${maven.build}" dir="@{dir}">
+            <property name="debian.dir" location="debian" />
+            <property name="project.dir" value="@{dir}" />
+          </ant> 
+	    </sequential>
+    </macrodef>
+
+    <macrodef name="packagemodule">
+	    <attribute name="dir"/>
+	    <sequential>
+		<ant target="package" antfile="${maven.build}" dir="@{dir}">
+          <property name="debian.dir" location="debian" />
+          <property name="project.dir" value="@{dir}" />
+		</ant>
+	    </sequential>
+    </macrodef>
+
+    <target name="clean">
+        <cleanmodule dir=""/>
+        <cleanmodule dir="maven-artifact"/>
+        <cleanmodule dir="maven-repository-metadata"/>
+        <cleanmodule dir="maven-artifact-manager"/>
+        <cleanmodule dir="maven-model"/>
+        <cleanmodule dir="maven-settings"/>
+        <cleanmodule dir="maven-artifact-test"/>
+        <cleanmodule dir="maven-plugin-parameter-documenter"/>
+        <cleanmodule dir="maven-reporting"/>
+        <cleanmodule dir="maven-reporting/maven-reporting-api"/>
+        <cleanmodule dir="maven-profile"/>
+        <cleanmodule dir="maven-error-diagnostics"/>
+        <cleanmodule dir="maven-plugin-registry"/>
+        <cleanmodule dir="maven-project"/>
+        <cleanmodule dir="maven-plugin-api"/>
+        <cleanmodule dir="maven-plugin-descriptor"/>
+        <cleanmodule dir="maven-monitor"/>
+        <cleanmodule dir="maven-core"/>
+        <cleanmodule dir="maven-script"/>
+        <cleanmodule dir="maven-script/maven-script-ant"/>
+        <cleanmodule dir="maven-script/maven-script-beanshell"/>
+        <cleanmodule dir="maven-toolchain"/>
+    </target>
+
+    <target name="generate-sources">
+        <taskdef name="modello" classname="ModelloTask" classpath="/usr/share/java/maven-ant-helper.jar:/usr/share/java/modello-core.jar:/usr/share/java/modello-plugin-xml.jar:/usr/share/java/modello-plugin-xpp3.jar"/>
+        <modello model="maven-settings/src/main/mdo/settings.mdo" plugin="java" output="maven-settings/build/generated-sources" version="1.0.0"/>
+        <modello model="maven-profile/src/main/mdo/profiles.mdo" plugin="java" output="maven-profile/build/generated-sources" version="1.0.0"/>
+        <modello model="maven-plugin-parameter-documenter/src/main/mdo/paramdoc.mdo" plugin="java" output="maven-plugin-parameter-documenter/build/generated-sources" version="1.0.0"/>
+        <modello model="maven-plugin-descriptor/src/main/mdo/lifecycle.mdo" plugin="java" output="maven-plugin-descriptor/build/generated-sources" version="1.0.0"/>
+        <modello model="maven-plugin-registry/plugin-registry.mdo" plugin="java" output="maven-plugin-registry/build/generated-sources" version="1.0.0"/>
+        <modello model="maven-repository-metadata/src/main/mdo/metadata.mdo" plugin="java" output="maven-repository-metadata/build/generated-sources" version="1.0.0"/>
+        <modello model="maven-model/src/main/mdo/maven.mdo" plugin="java" output="maven-model/build/generated-sources" version="4.0.0"/>
+        <modello model="maven-toolchain/src/main/mdo/toolchains.xml" plugin="java" output="maven-toolchain/build/generated-sources" version="1.0.0"/>
+
+        <modello model="maven-settings/src/main/mdo/settings.mdo" plugin="xpp3-reader" output="maven-settings/build/generated-sources" version="1.0.0"/>
+        <modello model="maven-profile/src/main/mdo/profiles.mdo" plugin="xpp3-reader" output="maven-profile/build/generated-sources" version="1.0.0"/>
+        <modello model="maven-plugin-parameter-documenter/src/main/mdo/paramdoc.mdo" plugin="xpp3-reader" output="maven-plugin-parameter-documenter/build/generated-sources" version="1.0.0"/>
+        <modello model="maven-plugin-descriptor/src/main/mdo/lifecycle.mdo" plugin="xpp3-reader" output="maven-plugin-descriptor/build/generated-sources" version="1.0.0"/>
+        <modello model="maven-plugin-registry/plugin-registry.mdo" plugin="xpp3-reader" output="maven-plugin-registry/build/generated-sources" version="1.0.0"/>
+        <modello model="maven-repository-metadata/src/main/mdo/metadata.mdo" plugin="xpp3-reader" output="maven-repository-metadata/build/generated-sources" version="1.0.0"/>
+        <modello model="maven-model/src/main/mdo/maven.mdo" plugin="xpp3-reader" output="maven-model/build/generated-sources" version="4.0.0"/>
+        <modello model="maven-toolchain/src/main/mdo/toolchains.xml" plugin="xpp3-reader" output="maven-toolchain/build/generated-sources" version="1.0.0"/>
+
+        <modello model="maven-settings/src/main/mdo/settings.mdo" plugin="xpp3-writer" output="maven-settings/build/generated-sources" version="1.0.0"/>
+        <modello model="maven-profile/src/main/mdo/profiles.mdo" plugin="xpp3-writer" output="maven-profile/build/generated-sources" version="1.0.0"/>
+        <modello model="maven-plugin-parameter-documenter/src/main/mdo/paramdoc.mdo" plugin="xpp3-writer" output="maven-plugin-parameter-documenter/build/generated-sources" version="1.0.0"/>
+        <modello model="maven-plugin-descriptor/src/main/mdo/lifecycle.mdo" plugin="xpp3-writer" output="maven-plugin-descriptor/build/generated-sources" version="1.0.0"/>
+        <modello model="maven-plugin-registry/plugin-registry.mdo" plugin="xpp3-writer" output="maven-plugin-registry/build/generated-sources" version="1.0.0"/>
+        <modello model="maven-repository-metadata/src/main/mdo/metadata.mdo" plugin="xpp3-writer" output="maven-repository-metadata/build/generated-sources" version="1.0.0"/>
+        <modello model="maven-model/src/main/mdo/maven.mdo" plugin="xpp3-writer" output="maven-model/build/generated-sources" version="4.0.0"/>
+        <modello model="maven-toolchain/src/main/mdo/toolchains.xml" plugin="xpp3-writer" output="maven-toolchain/build/generated-sources" version="1.0.0"/>
+
+        <mkdir dir="maven-core/${build.outputDirectory}/org/apache/maven/messages/" />
+        <copy todir="maven-core/${build.outputDirectory}/org/apache/maven/messages/" 
+              file="maven-core/src/main/resources/org/apache/maven/messages/build.properties">
+          <filterset begintoken="$${" endtoken="}">
+             <filter token="project.version" value="${version}"/>
+             <filter token="buildNumber" value="debian-${buildVersion}"/>
+          </filterset>
+        </copy>
+    </target>
+
+    <target name="package" depends="generate-sources">
+        <packagemodule dir=""/>
+        <packagemodule dir="maven-artifact"/>
+        <packagemodule dir="maven-repository-metadata"/>
+        <packagemodule dir="maven-artifact-manager"/>
+        <packagemodule dir="maven-model"/>
+        <packagemodule dir="maven-settings"/>
+        <packagemodule dir="maven-artifact-test"/>
+        <packagemodule dir="maven-plugin-parameter-documenter"/>
+        <packagemodule dir="maven-reporting/maven-reporting-api"/>
+        <packagemodule dir="maven-profile"/>
+        <packagemodule dir="maven-error-diagnostics"/>
+        <packagemodule dir="maven-plugin-registry"/>
+        <packagemodule dir="maven-project"/>
+        <packagemodule dir="maven-plugin-api"/>
+        <packagemodule dir="maven-plugin-descriptor"/>
+        <packagemodule dir="maven-monitor"/>
+        <packagemodule dir="maven-core"/>
+        <packagemodule dir="maven-script/maven-script-ant"/>
+        <packagemodule dir="maven-script/maven-script-beanshell"/>
+        <packagemodule dir="maven-toolchain"/>
+    </target>
+
+    <target name="javadoc">
+        <javadoc destdir="${javadoc.dir}">
+            <packageset dir="maven-artifact/src/main/java/"/>
+            <packageset dir="maven-repository-metadata/src/main/java/"/>
+            <packageset dir="maven-artifact-manager/src/main/java/"/>
+            <packageset dir="maven-model/src/main/java/"/>
+            <packageset dir="maven-settings/src/main/java/"/>
+            <packageset dir="maven-artifact-test/src/main/java/"/>
+            <packageset dir="maven-plugin-parameter-documenter/src/main/java/"/>
+            <packageset dir="maven-reporting/maven-reporting-api/src/main/java/"/>
+            <packageset dir="maven-profile/src/main/java/"/>
+            <packageset dir="maven-error-diagnostics/src/main/java/"/>
+            <packageset dir="maven-plugin-registry/src/main/java/"/>
+            <packageset dir="maven-project/src/main/java/"/>
+            <packageset dir="maven-plugin-api/src/main/java/"/>
+            <packageset dir="maven-plugin-descriptor/src/main/java/"/>
+            <packageset dir="maven-monitor/src/main/java/"/>
+            <packageset dir="maven-core/src/main/java/"/>
+            <packageset dir="maven-script/maven-script-ant/src/main/java/"/>
+            <packageset dir="maven-script/maven-script-beanshell/src/main/java/"/>
+            <packageset dir="maven-toolchain/src/main/java/"/>
+        </javadoc>
+    </target>
+
+</project>
diff --git a/debian/changelog b/debian/changelog
new file mode 100644
index 0000000..0ae0b93
--- /dev/null
+++ b/debian/changelog
@@ -0,0 +1,7 @@
+maven2-core (2.1.0-0ubuntu1~ppa11) jaunty; urgency=low
+
+  * Initial release, contains the Maven libraries from
+    the maven2 package which is now split in two for build reasons.
+
+ -- Ludovic Claude <ludovic.claude at laposte.net>  Sun, 03 May 2009 12:04:20 +0000
+
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..1f20dc3
--- /dev/null
+++ b/debian/control
@@ -0,0 +1,65 @@
+Source: maven2-core
+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: debhelper (>= 6), cdbs (>= 0.4.5.3), quilt, default-jdk
+Build-Depends-Indep: maven-repo-helper, maven-ant-helper (>> 4), ant, ant-optional, 
+  junit, 
+  libcommons-cli-java (>= 1.1), libdoxia-java, libmodello-java, libplexus-container-default-java,
+  libplexus-ant-factory-java, libplexus-bsh-factory-java,
+  libplexus-archiver-java, libplexus-sec-dispatcher-java,
+  libplexus-interactivity-api-java (>=1.0-alpha-6), libplexus-interpolation-java, 
+  libplexus-utils-java (>=1:1.5.5), libwagon-java, libbackport-util-concurrent-java
+Standards-Version: 3.8.1
+Homepage: http://maven.apache.org/
+Vcs-Svn: svn://svn.debian.org/svn/pkg-java/trunk/maven2-core
+Vcs-Browser: http://svn.debian.org/wsvn/pkg-java/trunk/maven2-core
+
+Package: libmaven2-core-java
+Architecture: all
+Depends: ${misc:Depends}, libcommons-cli-java (>= 1.1), 
+  libdoxia-java, libmodello-java, libplexus-container-default-java,
+  libplexus-archiver-java, libplexus-sec-dispatcher-java,
+  libplexus-ant-factory-java, libplexus-bsh-factory-java,
+  libplexus-interactivity-api-java (>=1.0-alpha-6), libplexus-interpolation-java, 
+  libplexus-utils-java (>=1:1.5.5), libwagon-java, libbackport-util-concurrent-java
+Description: Core libraries for Maven2
+ 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 contains the core libraries for maven2.
+
+Package: libmaven2-core-java-doc
+Section: doc
+Architecture: all
+Depends: ${misc:Depends}
+Description: API documentation for Maven2
+ 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 contains the API documentation of Maven2.
diff --git a/debian/copyright b/debian/copyright
new file mode 100644
index 0000000..78dc281
--- /dev/null
+++ b/debian/copyright
@@ -0,0 +1,62 @@
+This package was debianized by Paul Cager <paul-debian at home.paulcager.org>
+on Sun, 29 Apr 2007 18:27:29 +0100
+
+The Debian packaging is Copyright (c) 2007 Paul Cager and is licensed under
+the GNU General Public License version 2. On Debian systems, the complete text
+of the GNU General Public License version 2 can be found in
+'/usr/share/common-licenses/GPL-2'.
+
+It was downloaded from:
+    http://maven.apache.org
+
+Upstream authors:
+    Antoine Levy-Lambert <levylambert at tiscali-dsl.de>
+    Arnout J. Kuiper
+    Brett Porter <brett at apache.org>
+    Bruce Atherton <bruce at callenish.com>
+    Carlos Sanchez <carlos at apache.org>
+    Christoph.Reck <Christoph.Reck at dlr.de>
+    costin at dnt.ro
+    Daniel Rall <dlr at finemaltcoding.com>
+    Emmanuel Venisse <evenisse at apache.org>
+    gg at grtmail.com
+    Jason van Zyl <jason at maven.org> <jason at plexus.org> <jason at zenplex.com>
+    jdcasey
+    Jeff Turner <jefft at codehaus.org>
+    John Casey
+    Kenney Westerhof <kenney at apache.org>
+    Kevin A. Burton <burton at relativity.yi.org>
+    Magesh Umasankar
+    Michal Maczka <michal at codehaus.org> <michal.maczka at dimatics.com> <mmaczka at interia.pl>
+    Patrick Schneider <pschneider at gmail.com>
+    Peter Donald <peter at codehaus.org>
+    Ralph Goers <rgoers at apache.org>
+    Scott Sanders <sanders at codehaus.org>
+    Stefano Mazzocchi <stefano at apache.org>
+    Trygve Laugstol <trygvis at inamo.no>
+    Vincent Siveton <vincent.siveton at gmail.com>
+
+Copyright:
+    Copyright (c) 2001-2007 Apache Software Foundation.
+
+License:
+
+    Licensed to the Apache Software Foundation (ASF) under one
+    or more contributor license agreements.  See the NOTICE file
+    distributed with this work for additional information
+    regarding copyright ownership.  The ASF licenses this file
+    to you under the Apache License, Version 2.0 (the
+    "License"); you may not use this file except in compliance
+    with the License.  You may obtain a copy of the License at
+    
+     http://www.apache.org/licenses/LICENSE-2.0
+    
+    Unless required by applicable law or agreed to in writing,
+    software distributed under the License is distributed on an
+    "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+    KIND, either express or implied.  See the License for the
+    specific language governing permissions and limitations
+    under the License.
+
+On Debian systems, the complete text of the Apache License
+version 2.0 can be found in /usr/share/common-licenses/Apache-2.0
diff --git a/debian/libmaven2-core-java-doc.doc-base b/debian/libmaven2-core-java-doc.doc-base
new file mode 100644
index 0000000..5102efc
--- /dev/null
+++ b/debian/libmaven2-core-java-doc.doc-base
@@ -0,0 +1,10 @@
+Document: libmaven2-core-java-doc
+Title: Programmer API for Maven 2
+Author: Apache Maven2 developers
+Abstract: Programmer API of Maven2,
+ a software project management and comprehension tool.
+Section: Programming
+
+Format: HTML
+Index: /usr/share/doc/libmaven2-core-java-doc/api/index.html
+Files: /usr/share/doc/libmaven2-core-java-doc/api/*
diff --git a/debian/libmaven2-core-java-doc.docs b/debian/libmaven2-core-java-doc.docs
new file mode 100644
index 0000000..e551a05
--- /dev/null
+++ b/debian/libmaven2-core-java-doc.docs
@@ -0,0 +1 @@
+build/docs/api
diff --git a/debian/libmaven2-core-java.poms b/debian/libmaven2-core-java.poms
new file mode 100644
index 0000000..98c1b4c
--- /dev/null
+++ b/debian/libmaven2-core-java.poms
@@ -0,0 +1,23 @@
+pom.xml --no-parent
+maven-artifact-manager/pom.xml
+maven-artifact-test/pom.xml
+maven-artifact/pom.xml
+maven-core/pom.xml
+maven-error-diagnostics/pom.xml
+maven-model/pom.xml
+maven-monitor/pom.xml
+maven-plugin-api/pom.xml
+maven-plugin-descriptor/pom.xml
+maven-plugin-parameter-documenter/pom.xml
+maven-plugin-registry/pom.xml
+maven-profile/pom.xml
+maven-project/pom.xml
+maven-reporting/maven-reporting-api/pom.xml
+maven-reporting/pom.xml
+maven-repository-metadata/pom.xml
+maven-script/pom.xml
+maven-script/maven-script-ant/pom.xml
+maven-script/maven-script-beanshell/pom.xml
+maven-settings/pom.xml
+maven-toolchain/pom.xml
+
diff --git a/debian/maven.rules b/debian/maven.rules
new file mode 100644
index 0000000..26a7814
--- /dev/null
+++ b/debian/maven.rules
@@ -0,0 +1,3 @@
+org.codehaus.plexus plexus-container-default jar s/1\.0-alpha-.*/1.0-alpha/
+s/bsh/org.beanshell/ bsh jar s/.*/debian/
+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..8136747
--- /dev/null
+++ b/debian/orig-tar.sh
@@ -0,0 +1,19 @@
+#!/bin/sh -e
+
+VERSION=$2
+TAR=../maven2-core_$VERSION.orig.tar.gz
+DIR=maven2-core-$VERSION
+TAG=$(echo maven-$2 | sed s/~RC/-RC/ )
+
+svn export http://svn.apache.org/repos/asf/maven/components/tags/$TAG $DIR
+# remove the jar as Debian requires everything to be built from source, it will be rebuild from source
+rm $DIR/maven-ant-tasks*.jar
+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/plugin-versions.patch b/debian/patches/plugin-versions.patch
new file mode 100644
index 0000000..489dec1
--- /dev/null
+++ b/debian/patches/plugin-versions.patch
@@ -0,0 +1,38 @@
+--- a/maven-project/src/main/resources/org/apache/maven/project/pom-4.0.0.xml
++++ b/maven-project/src/main/resources/org/apache/maven/project/pom-4.0.0.xml
+@@ -80,7 +80,7 @@
+          </plugin>         
+          <plugin>
+            <artifactId>maven-clean-plugin</artifactId>
+-           <version>2.2</version>
++           <version>2.3</version>
+          </plugin>
+          <plugin>
+            <artifactId>maven-compiler-plugin</artifactId>
+@@ -104,7 +104,7 @@
+          </plugin>
+          <plugin>
+            <artifactId>maven-install-plugin</artifactId>
+-           <version>2.2</version>
++           <version>2.3</version>
+          </plugin>
+          <plugin>
+            <artifactId>maven-jar-plugin</artifactId>
+@@ -116,7 +116,7 @@
+          </plugin>
+          <plugin>
+            <artifactId>maven-plugin-plugin</artifactId>
+-           <version>2.4.3</version>
++           <version>2.5</version>
+          </plugin>
+          <plugin>
+            <artifactId>maven-rar-plugin</artifactId>
+@@ -132,7 +132,7 @@
+          </plugin>
+          <plugin>
+            <artifactId>maven-site-plugin</artifactId>
+-           <version>2.0-beta-7</version>
++           <version>2.0</version>
+          </plugin>
+          <plugin>
+            <artifactId>maven-source-plugin</artifactId>
diff --git a/debian/patches/remove_webdav_support.patch b/debian/patches/remove_webdav_support.patch
new file mode 100644
index 0000000..864a5db
--- /dev/null
+++ b/debian/patches/remove_webdav_support.patch
@@ -0,0 +1,28 @@
+--- a/maven-core/pom.xml
++++ b/maven-core/pom.xml
+@@ -45,11 +45,6 @@
+     </dependency>
+     <dependency>
+       <groupId>org.apache.maven.wagon</groupId>
+-      <artifactId>wagon-webdav-jackrabbit</artifactId>
+-      <scope>runtime</scope>
+-    </dependency>
+-    <dependency>
+-      <groupId>org.apache.maven.wagon</groupId>
+       <artifactId>wagon-http-lightweight</artifactId>
+       <scope>runtime</scope>
+     </dependency>
+--- a/pom.xml
++++ b/pom.xml
+@@ -439,11 +439,6 @@
+       </dependency>
+       <dependency>
+         <groupId>org.apache.maven.wagon</groupId>
+-        <artifactId>wagon-webdav-jackrabbit</artifactId>
+-        <version>${wagonVersion}</version>
+-      </dependency>
+-      <dependency>
+-        <groupId>org.apache.maven.wagon</groupId>
+         <artifactId>wagon-http-lightweight</artifactId>
+         <version>${wagonVersion}</version>
+       </dependency>
diff --git a/debian/patches/series b/debian/patches/series
new file mode 100644
index 0000000..bd0ac8e
--- /dev/null
+++ b/debian/patches/series
@@ -0,0 +1,2 @@
+remove_webdav_support.patch
+plugin-versions.patch
diff --git a/debian/rules b/debian/rules
new file mode 100755
index 0000000..6b87faa
--- /dev/null
+++ b/debian/rules
@@ -0,0 +1,45 @@
+#!/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)
+BUILD_VERSION        := $(shell echo $(DEB_NOEPOCH_VERSION) | sed 's/[^-]*-//')
+JAVA_HOME            := /usr/lib/jvm/default-java
+DEB_JARS             := ant-nodeps
+DEB_ANT_BUILD_TARGET := package javadoc
+DEB_ANT_BUILDFILE    := debian/build.xml
+DEB_ANT_ARGS         := -Dpackage=$(PACKAGE) -Dversion=$(VERSION) -DbuildVersion=$(BUILD_VERSION)
+API_DOCS             := build/doc/api
+BASE_MODULES         := maven-artifact-manager maven-artifact-test maven-artifact \
+			maven-core maven-error-diagnostics maven-model maven-monitor \
+			maven-plugin-api maven-plugin-descriptor maven-plugin-parameter-documenter \
+			maven-plugin-registry maven-profile maven-project maven-repository-metadata \
+			maven-settings maven-toolchain
+
+get-orig-source:
+	-uscan --download-version $(DEB_UPSTREAM_VERSION) --force-download --rename
+
+makebuilddir/lib$(PACKAGE)-java::
+	# add empty directories to fix the build
+	install -d maven-repository-metadata/src/main/java
+	install -d maven-model/src/main/java
+	install -d maven-plugin-parameter-documenter/src/main/java
+
+binary-post-install/lib$(PACKAGE)-java::
+	mh_installpoms -plib$(PACKAGE)-java;
+	set -e; for MODULE in $(BASE_MODULES); do \
+	  mh_installjar -plib$(PACKAGE)-java -l $$MODULE/pom.xml $$MODULE/build/$$MODULE-$(VERSION).jar; \
+	done
+	mh_installjar -plib$(PACKAGE)-java -l maven-reporting/maven-reporting-api/pom.xml maven-reporting/maven-reporting-api/build/maven-reporting-api-$(VERSION).jar; 
+	mh_installjar -plib$(PACKAGE)-java -l maven-script/maven-script-ant/pom.xml maven-script/maven-script-ant/build/maven-script-ant-$(VERSION).jar; 
+	mh_installjar -plib$(PACKAGE)-java -l maven-script/maven-script-beanshell/pom.xml maven-script/maven-script-beanshell/build/maven-script-beanshell-$(VERSION).jar; 
+
+clean::
+	-rm -rf debian/tmp
+
+# No documentation released yet.
+#binary-post-install/$(PACKAGE)-doc::
+
diff --git a/debian/watch b/debian/watch
new file mode 100644
index 0000000..7e361b3
--- /dev/null
+++ b/debian/watch
@@ -0,0 +1,4 @@
+version=3
+opts=uversionmangle=s/-RC/~RC/ \
+  http://svn.apache.org/repos/asf/maven/components/tags/ \
+  maven-([0-9].*)/ debian debian/orig-tar.sh

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



More information about the pkg-java-commits mailing list