--- plexus-maven-plugin-1.3.8.orig/debian/maven.rules
+++ plexus-maven-plugin-1.3.8/debian/maven.rules
@@ -0,0 +1,3 @@
+# keep the version for all Maven plugins as versionless plugins don't work
+* * maven-plugin *
+junit junit jar s/3\..*/3.x/
\ No newline at end of file
--- plexus-maven-plugin-1.3.8.orig/debian/maven-settings.xml
+++ plexus-maven-plugin-1.3.8/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>
--- plexus-maven-plugin-1.3.8.orig/debian/copyright
+++ plexus-maven-plugin-1.3.8/debian/copyright
@@ -0,0 +1,60 @@
+This package was debianized by Torsten Werner<twerner@debian.org>
+Sat Nov 29 17:33:45 CET 2008
+
+plexus-maven-plugin was downloaded from
+http://plexus.codehaus.org/plexus-maven-plugin/
+
+Copyright: 2004-2008 The Codehaus Foundation
+
+License:
+
+   Licensed 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.
+
+The full text of the license can be found in
+'/usr/share/common-licenses/Apache-2.0'.
+
+----------
+
+Files:
+
+  src/main/resources/META-INF/maven/lifecycle.xml
+  src/main/java/org/codehaus/plexus/maven/plugin/PlexusComponentsReport.java
+					     .../AbstractDescriptorMojo.java
+  src/main/java/org/codehaus/plexus/maven/plugin/report/Requirements.java
+						    .../Requirement.java
+						    .../Configuration.java
+
+Copyright: 2004-2006 The Codehaus Foundation
+
+License:
+
+  The MIT License
+ 
+  Permission is hereby granted, free of charge, to any person obtaining a copy of
+  this software and associated documentation files (the "Software"), to deal in
+  the Software without restriction, including without limitation the rights to
+  use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies
+  of the Software, and to permit persons to whom the Software is furnished to do
+  so, subject to the following conditions:
+ 
+  The above copyright notice and this permission notice shall be included in all
+  copies or substantial portions of the Software.
+ 
+  THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
+  IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
+  FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
+  AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
+  LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
+  OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
+  SOFTWARE.
+
--- plexus-maven-plugin-1.3.8.orig/debian/rules
+++ plexus-maven-plugin-1.3.8/debian/rules
@@ -0,0 +1,26 @@
+#!/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)
+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-reporting-api maven-reporting-impl slf4j-api slf4j-simple plexus-cdc plexus-utils qdox jdom1 doxia-core \
+ doxia-logging-api doxia-sink-api doxia-decoration-model doxia-site-renderer
+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)
+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
--- plexus-maven-plugin-1.3.8.orig/debian/orig-tar.sh
+++ plexus-maven-plugin-1.3.8/debian/orig-tar.sh
@@ -0,0 +1,16 @@
+#!/bin/sh -e
+
+TAR=../plexus-maven-plugin_$2.orig.tar.gz
+DIR=plexus-maven-plugin-$2
+TAG=plexus-maven-plugin-$2
+
+svn export http://svn.codehaus.org/plexus/archive/plexus-maven-plugin/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
--- plexus-maven-plugin-1.3.8.orig/debian/changelog
+++ plexus-maven-plugin-1.3.8/debian/changelog
@@ -0,0 +1,49 @@
+plexus-maven-plugin (1.3.8-6) unstable; urgency=low
+
+  * Bumped Standards-Version to 3.8.4, no change
+
+ -- Ludovic Claude <ludovic.claude@laposte.net>  Sun, 28 Mar 2010 23:07:00 +0200
+
+plexus-maven-plugin (1.3.8-5) unstable; urgency=low
+
+  * Add myself to Uploaders
+  * Rebuild with plexus-cdc >= 1.0~alpha14-4
+    to get fixed SourceComponentDescriptorExtractor.class
+    (Closes: #545631)
+  * Bumped Standards-Version to 3.8.3:
+    - Add debian/README.source to describe patch system
+  * Bump debhelper version to 7
+
+ -- Damien Raude-Morvan <drazzib@debian.org>  Mon, 26 Oct 2009 20:43:03 +0100
+
+plexus-maven-plugin (1.3.8-4) unstable; urgency=low
+
+  * Fix component descriptors
+
+ -- Ludovic Claude <ludovic.claude@laposte.net>  Tue, 28 Jul 2009 17:08:30 +0100
+
+plexus-maven-plugin (1.3.8-3) experimental; urgency=low
+
+  * Change section to java, bump up Standards-Version to 3.8.1
+  * Add a Build-Depends-Indep dependency on maven-repo-helper
+  * Use mh_installpom and mh_installjar to install the POM and the jar to the
+    Maven repository
+  * Remove the patch for the POM as it's no longer needed 
+  * Change the build dependency on openjdk-6-jdk to default-jdk
+  * Use cdbs-ant instead of cdbs-maven for the build, as this plugin is used
+    to build Maven or some of its build dependencies.
+  * Remove the dependencies on Java runtimes as it is a library.
+
+ -- Ludovic Claude <ludovic.claude@laposte.net>  Sun, 17 May 2009 16:07:37 +0100
+
+plexus-maven-plugin (1.3.8-2) unstable; urgency=low
+
+  * Change Depends: default-java to default-jre.
+
+ -- Torsten Werner <twerner@debian.org>  Fri, 26 Dec 2008 10:32:17 +0100
+
+plexus-maven-plugin (1.3.8-1) unstable; urgency=low
+
+  * Initial release. (Closes: #508741)
+
+ -- Torsten Werner <twerner@debian.org>  Sun, 14 Dec 2008 22:30:57 +0100
--- plexus-maven-plugin-1.3.8.orig/debian/README.source
+++ plexus-maven-plugin-1.3.8/debian/README.source
@@ -0,0 +1,6 @@
+This package uses quilt to manage all modifications to the upstream
+source.  Changes are stored in the source package as diffs in
+debian/patches and applied during the build.
+
+See /usr/share/doc/quilt/README.source for a detailed explanation.
+
--- plexus-maven-plugin-1.3.8.orig/debian/libplexus-maven-plugin-java.poms
+++ plexus-maven-plugin-1.3.8/debian/libplexus-maven-plugin-java.poms
@@ -0,0 +1 @@
+pom.xml --no-parent
--- plexus-maven-plugin-1.3.8.orig/debian/watch
+++ plexus-maven-plugin-1.3.8/debian/watch
@@ -0,0 +1,3 @@
+version=3
+http://svn.codehaus.org/plexus/archive/plexus-maven-plugin/tags/ \
+  plexus-maven-plugin-(.*)/ debian debian/orig-tar.sh
--- plexus-maven-plugin-1.3.8.orig/debian/control
+++ plexus-maven-plugin-1.3.8/debian/control
@@ -0,0 +1,30 @@
+Source: plexus-maven-plugin
+Section: java
+Priority: optional
+Maintainer: Debian Java Maintainers <pkg-java-maintainers@lists.alioth.debian.org>
+Uploaders: Torsten Werner <twerner@debian.org>, Damien Raude-Morvan <drazzib@debian.org>
+Build-Depends: debhelper (>= 7), cdbs, default-jdk, quilt
+Build-Depends-Indep: maven-repo-helper, maven-ant-helper (>> 4), ant, ant-optional,
+ junit, libmaven-plugin-tools-java, libplexus-velocity-java, velocity,
+ libplexus-cdc-java (>= 1.0~alpha14-4), libslf4j-java, libmaven-reporting-impl-java
+Standards-Version: 3.8.4
+Vcs-Svn: svn://svn.debian.org/svn/pkg-java/trunk/plexus-maven-helper/
+Vcs-Browser: http://svn.debian.org/wsvn/pkg-java/trunk/plexus-maven-helper/
+Homepage: http://plexus.codehaus.org/plexus-maven-plugin/
+
+Package: libplexus-maven-plugin-java
+Architecture: all
+Depends: ${misc:Depends}, libplexus-cdc-java (>= 1.0~alpha14-4),
+ libslf4j-java, libmaven-reporting-impl-java
+Description: Maven plugin for the Plexus Component Descriptor Creator
+ The Plexus project provides a full software stack for creating and
+ executing software projects. Based on the Plexus container, the applications
+ can utilise component-oriented programming to build modular, reusable
+ components that can easily be assembled and reused.
+ .
+ The Component Descriptor Creator (or CDC for short) is a tool that will create
+ the components.xml file from your Java code. It uses JavaDoc tags to gather the
+ information it needs to create the component descriptor.
+ .
+ This package ships a Maven plugin to automatically generate the component
+ descriptor file during the build process.
--- plexus-maven-plugin-1.3.8.orig/debian/compat
+++ plexus-maven-plugin-1.3.8/debian/compat
@@ -0,0 +1 @@
+7
--- plexus-maven-plugin-1.3.8.orig/debian/build.properties
+++ plexus-maven-plugin-1.3.8/debian/build.properties
@@ -0,0 +1,4 @@
+javadoc.dir=target/api
+build.directory=target
+maven.test.skip=true
+maven.generate.target=plugin:descriptor
--- plexus-maven-plugin-1.3.8.orig/debian/patches/doxia.diff
+++ plexus-maven-plugin-1.3.8/debian/patches/doxia.diff
@@ -0,0 +1,102 @@
+see http://jira.codehaus.org/browse/PLX-404
+
+--- a/src/main/java/org/codehaus/plexus/maven/plugin/report/Component.java
++++ b/src/main/java/org/codehaus/plexus/maven/plugin/report/Component.java
+@@ -19,7 +19,7 @@
+ import java.util.Iterator;
+ import java.util.List;
+ 
+-import org.codehaus.doxia.sink.Sink;
++import org.apache.maven.doxia.sink.Sink;
+ import org.codehaus.plexus.util.StringUtils;
+ import org.jdom.Element;
+ 
+--- a/src/main/java/org/codehaus/plexus/maven/plugin/report/ComponentSet.java
++++ b/src/main/java/org/codehaus/plexus/maven/plugin/report/ComponentSet.java
+@@ -17,7 +17,7 @@
+  */
+ import java.util.List;
+ 
+-import org.codehaus.doxia.sink.Sink;
++import org.apache.maven.doxia.sink.Sink;
+ import org.jdom.Element;
+ 
+ /**
+--- a/src/main/java/org/codehaus/plexus/maven/plugin/report/Components.java
++++ b/src/main/java/org/codehaus/plexus/maven/plugin/report/Components.java
+@@ -25,7 +25,7 @@
+ import java.util.TreeMap;
+ import java.util.TreeSet;
+ 
+-import org.codehaus.doxia.sink.Sink;
++import org.apache.maven.doxia.sink.Sink;
+ import org.jdom.Element;
+ 
+ /**
+--- a/src/main/java/org/codehaus/plexus/maven/plugin/report/Configuration.java
++++ b/src/main/java/org/codehaus/plexus/maven/plugin/report/Configuration.java
+@@ -24,7 +24,7 @@
+ 
+ package org.codehaus.plexus.maven.plugin.report;
+ 
+-import org.codehaus.doxia.sink.Sink;
++import org.apache.maven.doxia.sink.Sink;
+ import org.jdom.Element;
+ 
+ /**
+--- a/src/main/java/org/codehaus/plexus/maven/plugin/report/Requirement.java
++++ b/src/main/java/org/codehaus/plexus/maven/plugin/report/Requirement.java
+@@ -24,7 +24,7 @@
+ 
+ package org.codehaus.plexus.maven.plugin.report;
+ 
+-import org.codehaus.doxia.sink.Sink;
++import org.apache.maven.doxia.sink.Sink;
+ import org.codehaus.plexus.util.StringUtils;
+ import org.jdom.Element;
+ 
+--- a/src/main/java/org/codehaus/plexus/maven/plugin/report/Requirements.java
++++ b/src/main/java/org/codehaus/plexus/maven/plugin/report/Requirements.java
+@@ -28,7 +28,7 @@
+ import java.util.Iterator;
+ import java.util.List;
+ 
+-import org.codehaus.doxia.sink.Sink;
++import org.apache.maven.doxia.sink.Sink;
+ import org.jdom.Element;
+ 
+ /**
+--- a/src/main/java/org/codehaus/plexus/maven/plugin/PlexusComponentsReport.java
++++ b/src/main/java/org/codehaus/plexus/maven/plugin/PlexusComponentsReport.java
+@@ -31,8 +31,8 @@
+ import org.apache.maven.project.MavenProject;
+ import org.apache.maven.reporting.AbstractMavenReport;
+ import org.apache.maven.reporting.MavenReportException;
+-import org.codehaus.doxia.sink.Sink;
+-import org.codehaus.doxia.site.renderer.SiteRenderer;
++import org.apache.maven.doxia.sink.Sink;
++import org.apache.maven.doxia.siterenderer.Renderer;
+ import org.codehaus.plexus.maven.plugin.report.ComponentSet;
+ import org.jdom.Document;
+ import org.jdom.JDOMException;
+@@ -62,9 +62,9 @@
+     private MavenProject project;
+ 
+     /**
+-     * @component org.codehaus.doxia.site.renderer.SiteRenderer
++     * @component org.codehaus.doxia.siterenderer.Renderer
+      */
+-    private SiteRenderer siteRenderer;
++    private Renderer siteRenderer;
+ 
+     /**
+      * @parameter expression="${project.reporting.outputDirectory}
+@@ -114,7 +114,7 @@
+         return project;
+     }
+ 
+-    protected SiteRenderer getSiteRenderer()
++    protected Renderer getSiteRenderer()
+     {
+         return siteRenderer;
+     }
--- plexus-maven-plugin-1.3.8.orig/debian/patches/pom.diff
+++ plexus-maven-plugin-1.3.8/debian/patches/pom.diff
@@ -0,0 +1,14 @@
+--- a/pom.xml
++++ b/pom.xml
+@@ -65,6 +65,11 @@
+             <artifactId>plexus-cdc</artifactId>
+             <version>1.0-alpha-13</version>
+         </dependency>
++        <dependency>
++            <groupId>org.codehaus.plexus</groupId>
++            <artifactId>plexus-utils</artifactId>
++            <version>1.5.8</version>
++        </dependency>
+     </dependencies>
+ 
+     <scm>
--- plexus-maven-plugin-1.3.8.orig/debian/patches/descriptor.diff
+++ plexus-maven-plugin-1.3.8/debian/patches/descriptor.diff
@@ -0,0 +1,39 @@
+--- a/src/main/java/org/codehaus/plexus/maven/plugin/AbstractDescriptorMojo.java
++++ b/src/main/java/org/codehaus/plexus/maven/plugin/AbstractDescriptorMojo.java
+@@ -88,12 +88,12 @@
+     private ComponentDescriptorExtractor[] extractors;
+ 
+     /**
+-     * @component
++     * @component role="org.codehaus.plexus.cdc.ComponentDescriptorWriter"
+      */
+     private ComponentDescriptorWriter writer;
+ 
+     /**
+-     * @component
++     * @component role="org.apache.maven.project.MavenProjectHelper"
+      */
+     private MavenProjectHelper mavenProjectHelper;
+ 
+--- a/src/main/java/org/codehaus/plexus/maven/plugin/AbstractMergeMojo.java
++++ b/src/main/java/org/codehaus/plexus/maven/plugin/AbstractMergeMojo.java
+@@ -65,7 +65,7 @@
+     // ----------------------------------------------------------------------
+ 
+     /**
+-     * @component
++     * @component role="org.codehaus.plexus.cdc.ComponentDescriptorCreator"
+      */
+     private ComponentDescriptorCreator cdc;
+ 
+--- a/src/main/java/org/codehaus/plexus/maven/plugin/PlexusComponentsReport.java
++++ b/src/main/java/org/codehaus/plexus/maven/plugin/PlexusComponentsReport.java
+@@ -62,7 +62,7 @@
+     private MavenProject project;
+ 
+     /**
+-     * @component org.codehaus.doxia.siterenderer.Renderer
++     * @component role="org.codehaus.doxia.siterenderer.Renderer"
+      */
+     private Renderer siteRenderer;
+ 
--- plexus-maven-plugin-1.3.8.orig/debian/patches/series
+++ plexus-maven-plugin-1.3.8/debian/patches/series
@@ -0,0 +1,3 @@
+doxia.diff
+descriptor.diff
+pom.diff
