[pkg-java] r7653 - in trunk/plexus-cdc/debian: . patches

twerner at alioth.debian.org twerner at alioth.debian.org
Fri Dec 12 11:08:17 UTC 2008


Author: twerner
Date: 2008-12-12 11:08:17 +0000 (Fri, 12 Dec 2008)
New Revision: 7653

Added:
   trunk/plexus-cdc/debian/maven.properties
Removed:
   trunk/plexus-cdc/debian/maven-settings.xml
   trunk/plexus-cdc/debian/maven-vars.mk
   trunk/plexus-cdc/debian/maven.mk
Modified:
   trunk/plexus-cdc/debian/changelog
   trunk/plexus-cdc/debian/control
   trunk/plexus-cdc/debian/patches/pom.diff
   trunk/plexus-cdc/debian/rules
Log:
UNRELEASED
* Switch to maven-debian-helper.

Modified: trunk/plexus-cdc/debian/changelog
===================================================================
--- trunk/plexus-cdc/debian/changelog	2008-12-12 10:08:09 UTC (rev 7652)
+++ trunk/plexus-cdc/debian/changelog	2008-12-12 11:08:17 UTC (rev 7653)
@@ -1,3 +1,10 @@
+plexus-cdc (1.0~alpha14-2) unstable; urgency=low
+
+  UNRELEASED
+  * Switch to maven-debian-helper.
+
+ -- Torsten Werner <twerner at debian.org>  Fri, 12 Dec 2008 11:50:23 +0100
+
 plexus-cdc (1.0~alpha14-1) unstable; urgency=low
 
   * Initial release. (Closes: #508465)

Modified: trunk/plexus-cdc/debian/control
===================================================================
--- trunk/plexus-cdc/debian/control	2008-12-12 10:08:09 UTC (rev 7652)
+++ trunk/plexus-cdc/debian/control	2008-12-12 11:08:17 UTC (rev 7653)
@@ -3,9 +3,7 @@
 Priority: optional
 Maintainer: Debian Java Maintainers <pkg-java-maintainers at lists.alioth.debian.org>
 Uploaders: Torsten Werner <twerner at debian.org>
-Build-Depends: debhelper (>= 5), cdbs, openjdk-6-jdk, quilt, maven2,
- libmaven-clean-plugin-java, libmaven-resources-plugin-java,
- libmaven-compiler-plugin-java, libmaven-jar-plugin-java, libmaven-filtering-java,
+Build-Depends: debhelper (>= 5), cdbs, openjdk-6-jdk, quilt, maven-debian-helper,
  libslf4j-java, libjdom1-java
 Standards-Version: 3.8.0
 Vcs-Svn: svn://svn.debian.org/svn/pkg-java/trunk/plexus-cdc

Deleted: trunk/plexus-cdc/debian/maven-settings.xml
===================================================================
--- trunk/plexus-cdc/debian/maven-settings.xml	2008-12-12 10:08:09 UTC (rev 7652)
+++ trunk/plexus-cdc/debian/maven-settings.xml	2008-12-12 11:08:17 UTC (rev 7653)
@@ -1,9 +0,0 @@
-<!--
-  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>

Deleted: trunk/plexus-cdc/debian/maven-vars.mk
===================================================================
--- trunk/plexus-cdc/debian/maven-vars.mk	2008-12-12 10:08:09 UTC (rev 7652)
+++ trunk/plexus-cdc/debian/maven-vars.mk	2008-12-12 11:08:17 UTC (rev 7653)
@@ -1,89 +0,0 @@
-# This file is based on ant-vars.mk
-
-# Copyright © 2003 Stefan Gybas <sgybas at debian.org>
-# Copyright © 2008 Torsten Werner <twerner at debian.org>
-# Description: Defines useful variables for packages which use Maven
-#
-# This program is free software; you can redistribute it and/or
-# modify it under the terms of the GNU General Public License as
-# published by the Free Software Foundation; either version 2, or (at
-# your option) any later version.
-#
-# This program is distributed in the hope that it will be useful, but
-# WITHOUT ANY WARRANTY; without even the implied warranty of
-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
-# General Public License for more details.
-#
-# You should have received a copy of the GNU General Public License
-# along with this program; if not, write to the Free Software
-# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA
-# 02111-1307 USA.
-
-_cdbs_scripts_path ?= /usr/lib/cdbs
-_cdbs_rules_path ?= /usr/share/cdbs/1/rules
-_cdbs_class_path ?= /usr/share/cdbs/1/class
-
-ifndef _cdbs_class_maven_vars
-_cdbs_class_maven_vars = 1
-
-# Maven home directory.  Doesn't need to be changed except when using
-# nonstandard Maven installations.
-MAVEN_HOME = /usr/share/maven2
-
-# The home directory of the Java Runtime Environment (JRE) or Java Development
-# Kit (JDK). You can either directly set JAVA_HOME in debian/rules or set
-# JAVA_HOME_DIRS to multiple possible home directories. The first existing
-# directory from this list is used for JAVA_HOME. You can also override
-# JAVACMD in case you don't want to use the default JAVA_HOME/bin/java.
-JAVA_HOME = $(shell for jh in $(JAVA_HOME_DIRS); do if [ -x "$$jh/bin/java" ]; then \
-	    echo $${jh}; exit 0; fi; done)
-JAVACMD   = $(JAVA_HOME)/bin/java
-
-# You can list all Java ARchives (JARs) to be added to the class path in
-# DEB_JARS, either with their full path or just the basename if the JAR is
-# in /usr/share/java. You may also ommit the ".jar" extension. Non-existing
-# files will silently be ignored. tools.jar is automatically added to the
-# end of the class path if it exists in the JDK's lib directory.
-# You can override the complete class path using DEB_CLASSPATH.
-DEB_JARS_BASE = /usr/share/java
-DEB_CLASSPATH = $(MAVEN_HOME)/boot/classworlds.jar:$(shell for jar in $(DEB_JARS); do \
-		if [ -f "$$jar" ]; then echo -n "$${jar}:"; fi; \
-		if [ -f "$$jar".jar ]; then echo -n "$${jar}.jar:"; fi; \
-		if [ -f $(DEB_JARS_BASE)/"$$jar" ]; then echo -n "$(DEB_JARS_BASE)/$${jar}:"; fi; \
-		if [ -f $(DEB_JARS_BASE)/"$$jar".jar ]; then echo -n "$(DEB_JARS_BASE)/$${jar}.jar:"; fi; \
-		done; \
-		if [ -f "$(JAVA_HOME)/lib/tools.jar" ]; then echo -n "$(JAVA_HOME)/lib/tools.jar"; fi)
-
-# Extra arguments for the Maven command line.
-# TODO: DOES NOT WORK YET BECAUSE IT NEEDS PATCHING MAVEN!!!
-DEB_MAVEN_ARGS = 
-
-# Property file for Maven, defaults to debian/maven.properties if it exists.
-# You may define additional properties. Please note that command-line
-# arguments in MAVEN_ARGS (see below) override the settings in pom.xml and
-# the property file.
-DEB_MAVEN_PROPERTYFILE = $(shell test -f $(CURDIR)/debian/maven.properties && echo $(CURDIR)/debian/maven.properties)
-
-# You can specify additional JVM arguments in MAVEN_OPTS and Maven
-# command-line arguments in MAVEN_ARGS. You can additionally define
-# MAVEN_ARGS_<package> for each individual package.
-DEB_MAVEN_INVOKE = cd $(DEB_BUILDDIR) && $(JAVACMD) -classpath $(DEB_CLASSPATH) \
-		 $(MAVEN_OPTS) -Dclassworlds.conf=${MAVEN_HOME}/conf/m2.conf \
-		 -Dmaven.home=$(MAVEN_HOME) \
-		 org.codehaus.classworlds.Launcher $(DEB_MAVEN_ARGS) \
-		 -s$(CURDIR)/debian/maven-settings.xml \
-		 $(if $(MAVEN_ARGS_$(cdbs_curpkg)),$(MAVEN_ARGS_$(cdbs_curpkg)),$(MAVEN_ARGS))
-
-# TODO: DOES NOT WORK YET
-#		 $(if $(DEB_MAVEN_PROPERTYFILE),-propertyfile $(DEB_MAVEN_PROPERTYFILE),)
-
-# Targets to invoke for building, installing, testing and cleaning up.
-# Building uses the default target from build.xml, installing and testing is
-# only called if the corresponding variable is set. You can also specify
-# multiple targets for each step.
-DEB_MAVEN_BUILD_TARGET = compile jar:jar   # TODO: should be 'package'
-DEB_MAVEN_INSTALL_TARGET =
-DEB_MAVEN_CHECK_TARGET =
-DEB_MAVEN_CLEAN_TARGET = clean
-
-endif

Deleted: trunk/plexus-cdc/debian/maven.mk
===================================================================
--- trunk/plexus-cdc/debian/maven.mk	2008-12-12 10:08:09 UTC (rev 7652)
+++ trunk/plexus-cdc/debian/maven.mk	2008-12-12 11:08:17 UTC (rev 7653)
@@ -1,71 +0,0 @@
-# This file is based on ant.mk
-# revision: 1
-
-# Copyright © 2003 Stefan Gybas <sgybas at debian.org>
-# Copyright © 2008 Torsten Werner <twerner at debian.org>
-# Description: Builds and cleans packages which have an Maven pom.xml file
-#
-# This program is free software; you can redistribute it and/or
-# modify it under the terms of the GNU General Public License as
-# published by the Free Software Foundation; either version 2, or (at
-# your option) any later version.
-#
-# This program is distributed in the hope that it will be useful, but
-# WITHOUT ANY WARRANTY; without even the implied warranty of
-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
-# General Public License for more details.
-#
-# You should have received a copy of the GNU General Public License
-# along with this program; if not, write to the Free Software
-# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA
-# 02111-1307 USA.
-
-_cdbs_scripts_path ?= /usr/lib/cdbs
-_cdbs_rules_path ?= /usr/share/cdbs/1/rules
-_cdbs_class_path ?= /usr/share/cdbs/1/class
-
-ifndef _cdbs_class_maven
-_cdbs_class_maven = 1
-
-include $(_cdbs_rules_path)/buildcore.mk$(_cdbs_makefile_suffix)
-# temporary workaround:
-#include $(_cdbs_class_path)/maven-vars.mk$(_cdbs_makefile_suffix)
-include $(CURDIR)/debian/maven-vars.mk$(_cdbs_makefile_suffix)
-
-DEB_PHONY_RULES += maven-sanity-check
-
-maven-sanity-check:
-	@if ! test -x "$(JAVACMD)"; then \
-		echo "You must specify a valid JAVA_HOME or JAVACMD!"; \
-		exit 1; \
-	fi
-	@if ! test -r "$(MAVEN_HOME)/boot/classworlds.jar"; then \
-		echo "You must specify a valid MAVEN_HOME directory!"; \
-		exit 1; \
-	fi
-
-
-common-build-arch common-build-indep:: debian/stamp-maven-build maven-sanity-check
-debian/stamp-maven-build:
-	$(DEB_MAVEN_INVOKE) $(DEB_MAVEN_BUILD_TARGET)
-	touch $@
-
-cleanbuilddir:: maven-sanity-check apply-patches
-	-$(DEB_MAVEN_INVOKE) $(DEB_MAVEN_CLEAN_TARGET)
-	$(RM) debian/stamp-maven-build
-
-common-install-arch common-install-indep:: common-install-impl
-common-install-impl::
-	$(if $(DEB_MAVEN_INSTALL_TARGET),$(DEB_MAVEN_INVOKE) $(DEB_MAVEN_INSTALL_TARGET), at echo "DEB_MAVEN_INSTALL_TARGET unset, skipping default maven.mk common-install target")
-
-ifeq (,$(findstring nocheck,$(DEB_BUILD_OPTIONS)))
-common-build-arch common-build-indep:: debian/stamp-maven-check
-debian/stamp-maven-check: debian/stamp-maven-build
-	$(if $(DEB_MAVEN_CHECK_TARGET),$(DEB_MAVEN_INVOKE) $(DEB_MAVEN_CHECK_TARGET), at echo "DEB_MAVEN_CHECK_TARGET unset, not running checks")
-	$(if $(DEB_MAVEN_CHECK_TARGET),touch $@)
-
-clean::
-	$(if $(DEB_MAVEN_CHECK_TARGET),$(RM) debian/stamp-maven-check)
-endif
-
-endif

Added: trunk/plexus-cdc/debian/maven.properties
===================================================================
--- trunk/plexus-cdc/debian/maven.properties	                        (rev 0)
+++ trunk/plexus-cdc/debian/maven.properties	2008-12-12 11:08:17 UTC (rev 7653)
@@ -0,0 +1,3 @@
+# You can put your properties in this file.
+
+maven.test.skip = true

Modified: trunk/plexus-cdc/debian/patches/pom.diff
===================================================================
--- trunk/plexus-cdc/debian/patches/pom.diff	2008-12-12 10:08:09 UTC (rev 7652)
+++ trunk/plexus-cdc/debian/patches/pom.diff	2008-12-12 11:08:17 UTC (rev 7653)
@@ -1,3 +1,5 @@
+some temporary workarounds...
+
 Index: plexus-cdc-1.0~alpha14/pom.xml
 ===================================================================
 --- plexus-cdc-1.0~alpha14.orig/pom.xml	2008-12-10 15:50:22.000000000 +0100
@@ -59,22 +61,3 @@
          <dependency>
              <groupId>org.slf4j</groupId>
              <artifactId>slf4j-simple</artifactId>
-@@ -50,6 +73,18 @@
-         </dependency>
-     </dependencies>
- 
-+    <build>
-+      <pluginManagement>
-+	<plugins>
-+	  <plugin>
-+	    <groupId>org.apache.maven.plugins</groupId>
-+	    <artifactId>maven-resources-plugin</artifactId>
-+	    <version>2.3</version>
-+	  </plugin>
-+	</plugins>
-+      </pluginManagement>
-+    </build>
-+
-     <scm>
-         <connection>scm:svn:http://svn.codehaus.org/plexus/plexus-tools/tags/plexus-tools-1.0.11/plexus-cdc</connection>
-         <developerConnection>scm:svn:https://svn.codehaus.org/plexus/plexus-tools/tags/plexus-tools-1.0.11/plexus-cdc</developerConnection>

Modified: trunk/plexus-cdc/debian/rules
===================================================================
--- trunk/plexus-cdc/debian/rules	2008-12-12 10:08:09 UTC (rev 7652)
+++ trunk/plexus-cdc/debian/rules	2008-12-12 11:08:17 UTC (rev 7653)
@@ -1,19 +1,17 @@
 #!/usr/bin/make -f
 
 include /usr/share/cdbs/1/rules/debhelper.mk
-include debian/maven.mk
+include /usr/share/cdbs/1/class/maven.mk
 include /usr/share/cdbs/1/rules/patchsys-quilt.mk
 
 PACKAGE   := $(DEB_SOURCE_PACKAGE)
 VERSION   := $(shell echo $(DEB_UPSTREAM_VERSION) | sed 's,~alpha,-alpha-,')
 JAVA_HOME := /usr/lib/jvm/java-6-openjdk
-DEB_JARS  := plexus-utils plexus-interpolation
 
 get-orig-source:
 	sh -e debian/orig-tar.sh
 
-REPO := /usr/share/maven-repo
-DEST := $(REPO)/org/codehaus/plexus
+DEST := $(DEB_MAVEN_REPO)/org/codehaus/plexus
 
 binary-post-install/lib$(PACKAGE)-java::
 	dh_install target/*.jar $(DEST)/$(PACKAGE)/$(VERSION)/




More information about the pkg-java-commits mailing list