Commit 26c4edc5 authored by Ludovic Claude's avatar Ludovic Claude

* New upstream version, add myself to Uploaders

* Use Ant and cdbs-ant as the build system as Maven2 uses
  this plugin to build itself now.
* Remove the dependency on default-jre | java2-runtime as this is
  a library.
* Use default-jdk as Build-Depends instead of open-jdk-6
* Add the Maven POM to the package,
* 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, as well as
  the dependency on Quilt
parent ff6a5449
javadoc.dir=build/api
javadoc.dir=target/api
build.directory=target
build.outputDirectory=target/classes
maven.test.skip=true
maven.generate.target=plugin:descriptor
<?xml version="1.0"?>
<project name="pkg-java" default="package" basedir="..">
<property file="debian/build.properties"/>
<property name="maven.test.skip" value="true"/>
<property name="maven.build.xml" value="/usr/share/maven-ant-helper/maven-build.xml"/>
<property file="/usr/share/maven-ant-helper/maven-defaults.properties"/>
<target name="clean">
<ant target="clean" antfile="${maven.build.xml}" dir="."/>
</target>
<target name="package">
<java classname="org.codehaus.classworlds.Launcher"
classpath="/usr/share/maven2/boot/classworlds.jar"
failonerror="true" fork="true">
<sysproperty key="classworlds.conf" value="/etc/maven2/m2.conf"/>
<sysproperty key="maven.home" value="/usr/share/maven2"/>
<arg value="-Dmaven.test.skip"/>
<arg value="-s${basedir}/debian/maven-settings.xml"/>
<arg value="plugin:descriptor"/>
</java>
<ant target="package" antfile="${maven.build.xml}" dir=".">
<property name="artifactId" value="maven-clean-plugin"/>
</ant>
</target>
<target name="javadoc">
<javadoc destdir="${javadoc.dir}">
<packageset dir="src/main/java/"/>
</javadoc>
</target>
</project>
maven-clean-plugin (2.3-1) unstable; urgency=low
* New upstream version, add myself to Uploaders
* Use Ant and cdbs-ant as the build system as Maven2 uses
this plugin to build itself now.
* Remove the dependency on default-jre | java2-runtime as this is
a library.
* Use default-jdk as Build-Depends instead of open-jdk-6
* Add the Maven POM to the package,
* 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, as well as
the dependency on Quilt
-- Ludovic Claude <ludovic.claude@laposte.net> Sun, 03 May 2009 00:27:41 +0100
maven-clean-plugin (2.2-2) unstable; urgency=low
* Switch to openjdk.
......
Source: maven-clean-plugin
Section: devel
Section: java
Priority: optional
Maintainer: Debian Java Maintainers <pkg-java-maintainers@lists.alioth.debian.org>
Uploaders: Torsten Werner <twerner@debian.org>
Build-Depends: openjdk-6-jdk, ant, debhelper (>= 5), cdbs, quilt, maven-ant-helper,
libmaven-plugin-tools-java, libmaven-file-management-java, libplexus-containers-java,
Uploaders: Torsten Werner <twerner@debian.org>, Ludovic Claude <ludovic.claude@laposte.net>
Build-Depends: debhelper (>= 5), cdbs, default-jdk
Build-Depends-Indep: maven-repo-helper, maven-ant-helper (>> 4), ant, ant-optional,
junit, libmaven-plugin-tools-java, libplexus-velocity-java, velocity,
libmaven-file-management-java, libplexus-containers-java,
libplexus-interpolation-java
Standards-Version: 3.8.0
Standards-Version: 3.8.1
Vcs-Svn: svn://svn.debian.org/svn/pkg-java/trunk/maven-clean-plugin
Vcs-Browser: http://svn.debian.org/wsvn/pkg-java/trunk/maven-clean-plugin/
Homepage: http://maven.apache.org/plugins/maven-clean-plugin/
Package: libmaven-clean-plugin-java
Architecture: all
Section: devel
Depends: ${misc:Depends}, default-jre | java2-runtime, libmaven-file-management-java
Depends: ${misc:Depends}, libmaven-file-management-java
Description: Maven clean 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,
......
......@@ -3,7 +3,7 @@ This package was debianized by Torsten Werner <twerner@debian.org>.
The Debian packaging is Copyright (c) 2008 Torsten Werner and is
licensed under the GNU General Public License version 3. On Debian
systems, the complete text of the GNU General Public License can be
found in '/usr/share/common-licenses/GPL'.
found in '/usr/share/common-licenses/GPL-3'.
The package was downloaded from <http://maven.apache.org>.
......
# keep the version for all Maven plugins as versionless plugins don't work
* * maven-plugin *
junit junit jar s/3\..*/3.x/
Currently we need to patch most of the dependencies in the POM.
Index: maven-clean-plugin-2.2/pom.xml
===================================================================
--- maven-clean-plugin-2.2.orig/pom.xml 2007-11-30 00:33:21.000000000 +0100
+++ maven-clean-plugin-2.2/pom.xml 2008-12-07 01:31:45.000000000 +0100
@@ -21,13 +21,16 @@
<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>
+ <!--
<parent>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-plugins</artifactId>
<version>10</version>
</parent>
+ -->
<artifactId>maven-clean-plugin</artifactId>
+ <groupId>org.apache.maven.plugins</groupId>
<version>2.2</version>
<packaging>maven-plugin</packaging>
<name>Maven Clean Plugin</name>
@@ -46,6 +49,7 @@
</issueManagement>
<dependencies>
+ <!--
<dependency>
<groupId>org.apache.maven</groupId>
<artifactId>maven-project</artifactId>
@@ -56,15 +60,27 @@
<artifactId>maven-plugin-api</artifactId>
<version>2.0</version>
</dependency>
+ -->
+ <dependency>
+ <groupId>org.apache.maven.shared</groupId>
+ <artifactId>maven-shared-io</artifactId>
+ <version>1.1</version>
+ <scope>system</scope>
+ <systemPath>/usr/share/java/maven-shared-io.jar</systemPath>
+ </dependency>
<dependency>
<groupId>org.apache.maven.shared</groupId>
<artifactId>file-management</artifactId>
<version>1.2</version>
+ <scope>system</scope>
+ <systemPath>/usr/share/java/file-management.jar</systemPath>
</dependency>
<dependency>
<groupId>org.codehaus.plexus</groupId>
<artifactId>plexus-utils</artifactId>
- <version>1.1</version>
+ <version>1.4.8</version>
+ <scope>system</scope>
+ <systemPath>/usr/share/java/plexus-utils.jar</systemPath>
</dependency>
<!-- Test -->
@@ -83,7 +99,17 @@
</contributors>
<build>
+ <pluginManagement>
+ <plugins>
+ <plugin>
+ <groupId>org.apache.maven.plugins</groupId>
+ <artifactId>maven-plugin-plugin</artifactId>
+ <version>2.4.3</version>
+ </plugin>
+ </plugins>
+ </pluginManagement>
<plugins>
+ <!--
<plugin>
<artifactId>maven-surefire-plugin</artifactId>
<version>2.3</version>
@@ -92,6 +118,7 @@
<artifactId>maven-source-plugin</artifactId>
<version>2.0.4</version>
</plugin>
+ -->
</plugins>
</build>
......@@ -2,23 +2,22 @@
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 := $(shell dpkg-parsechangelog | egrep '^Source:' | cut -f2 -d' ')
VERSION := $(shell dpkg-parsechangelog | egrep '^Version:' | sed 's/Version: \(.*\)-.*/\1/')
JAVA_HOME := /usr/lib/jvm/java-6-openjdk
DEB_JARS := maven2 file-management plexus-utils plexus-container-default-1.0
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 file-management plexus-utils plexus-container-default-alpha
DEB_ANT_BUILD_TARGET := package #javadoc
DEB_ANT_BUILDFILE := debian/build.xml
DEB_ANT_ARGS := -Dversion=$(VERSION)
API_DOCS := build/api
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 --force-download
REPO := /usr/share/maven-repo
PLUGINS := $(REPO)/org/apache/maven/plugins
-uscan --download-version $(DEB_UPSTREAM_VERSION) --force-download --rename
binary-post-install/lib$(PACKAGE)-java::
dh_install target/*.jar $(PLUGINS)/$(PACKAGE)/$(VERSION)/
install -m644 pom.xml $(DEB_DESTDIR)$(PLUGINS)/$(PACKAGE)/$(VERSION)/$(PACKAGE)-$(VERSION).pom
mh_installpoms -plib$(PACKAGE)-java
mh_installjar -plib$(PACKAGE)-java -l pom.xml target/$(PACKAGE)-$(VERSION).jar
clean::
-rm -rf debian/tmp
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment