Package: libjcommon-java
Version: 1.0.16-1
Severity: normal
Tags: patch
User: [email protected]
Usertags: origin-ubuntu natty ubuntu-patch
*** /tmp/tmprDdEwv
It would be great if this package could install maven artifacts to
/usr/share/maven-repo. This patch should do the trick.
* Enabled maven artifact deployment:
- debian/control: Build-Depends added maven-repo-helper
- debian/rules: install maven artifacts
- debian/poms/jcommon.pom: localised pom for maven
Thanks for considering the patch.
-- System Information:
Debian Release: squeeze/sid
APT prefers natty-updates
APT policy: (500, 'natty-updates'), (500, 'natty-security'), (500, 'natty')
Architecture: amd64 (x86_64)
Kernel: Linux 2.6.35-28-generic (SMP w/8 CPU cores)
Locale: LANG=C, LC_CTYPE=C (charmap=ANSI_X3.4-1968)
Shell: /bin/sh linked to /bin/dash
=== modified file 'debian/control'
--- debian/control 2010-03-22 21:45:58 +0000
+++ debian/control 2011-03-29 12:32:26 +0000
@@ -3,7 +3,7 @@
Priority: optional
Maintainer: Debian Java Maintainers <[email protected]>
Uploaders: Christian Bayle <[email protected]>, Arnaud Vandyck <[email protected]>, Michael Koch <[email protected]>, Rene Engelhard <[email protected]>
-Build-Depends: debhelper (>= 5), cdbs
+Build-Depends: debhelper (>= 5), cdbs, maven-repo-helper
Build-Depends-Indep: default-jdk, ant, libservlet2.4-java, junit
Standards-Version: 3.8.4
Vcs-Svn: svn://svn.debian.org/svn/pkg-java/trunk/libjcommon-java
=== added file 'debian/libjcommon-java.poms'
--- debian/libjcommon-java.poms 1970-01-01 00:00:00 +0000
+++ debian/libjcommon-java.poms 2011-03-29 12:32:14 +0000
@@ -0,0 +1 @@
+debian/poms/jcommon.pom
=== added directory 'debian/poms'
=== added file 'debian/poms/jcommon.pom'
--- debian/poms/jcommon.pom 1970-01-01 00:00:00 +0000
+++ debian/poms/jcommon.pom 2009-08-17 19:07:43 +0000
@@ -0,0 +1,29 @@
+<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>
+ <groupId>jfree</groupId>
+ <artifactId>jcommon</artifactId>
+ <name>jcommon</name>
+ <version>1.0.16</version>
+ <organization>
+ <name>JFree.org</name>
+ <url>http://www.jfree.org/</url>
+ </organization>
+ <inceptionYear>2001</inceptionYear>
+ <description>
+ JCommon is a free general purpose Java class library that is used in several projects at www.jfree.org,
+ including JFreeChart and JFreeReport.
+ </description>
+ <url>http://www.jfree.org/jcommon/</url>
+ <scm>
+ <connection>scm:cvs:pserver:[email protected]:/cvsroot/jfreechart:jcommon</connection>
+ <url>http://jfreechart.cvs.sourceforge.net/jfreechart/jcommon/</url>
+ </scm>
+ <licenses>
+ <license>
+ <name>GNU Lesser General Public Licence</name>
+ <url>http://www.gnu.org/licenses/lgpl.txt</url>
+ <distribution>repo</distribution>
+ </license>
+ </licenses>
+</project>
=== modified file 'debian/rules'
--- debian/rules 2010-03-22 21:45:58 +0000
+++ debian/rules 2011-03-29 12:35:30 +0000
@@ -17,6 +17,7 @@
DEB_ANT_BUILD_TARGET := compile compile-xml javadoc
# FIXME: how to run this?
DEB_ANT_CHECK_TARGET := compile-junit-tests
+MAVEN_REPO := http://repository.jboss.org/maven2
clean::
rm -rf build
@@ -30,4 +31,11 @@
ln -s $(LIBRARY_PACKAGE)-$(API_VERSION).jar debian/lib$(LIBRARY_PACKAGE)-java/usr/share/java/$(LIBRARY_PACKAGE).jar
install -m 644 -D $(LIBRARY_PACKAGE)-xml-$(API_VERSION).jar debian/lib$(LIBRARY_PACKAGE)-java/usr/share/java/$(LIBRARY_PACKAGE)-xml-$(API_VERSION).jar
ln -s $(LIBRARY_PACKAGE)-xml-$(API_VERSION).jar debian/lib$(LIBRARY_PACKAGE)-java/usr/share/java/$(LIBRARY_PACKAGE)-xml.jar
+ mh_installpoms -plib$(LIBRARY_PACKAGE)-java
+ mh_installjar -plib$(LIBRARY_PACKAGE)-java -l debian/poms/$(LIBRARY_PACKAGE).pom $(LIBRARY_PACKAGE)-$(API_VERSION).jar
+
+get-orig-pom:
+ mkdir -p debian/poms
+ wget -U NoSuchBrowser/1.0 -O debian/poms/$(LIBRARY_PACKAGE).pom \
+ $(MAVEN_REPO)/jfree/$(LIBRARY_PACKAGE)/$(DEB_UPSTREAM_VERSION)/$(LIBRARY_PACKAGE)-$(DEB_UPSTREAM_VERSION).pom
__
This is the maintainer address of Debian's Java team
<http://lists.alioth.debian.org/mailman/listinfo/pkg-java-maintainers>. Please
use
[email protected] for discussions and questions.