Package: libjettison-java Version: 1.2-2 Severity: normal Tags: patch User: ubuntu-de...@lists.ubuntu.com Usertags: origin-ubuntu natty ubuntu-patch
*** /tmp/tmpMuYXKn It would be great if this package installed Maven artifacts to /usr/share/maven-repo. I need this to support packaging of Jenkins. The attached patch should do the trick. * Enabled maven artifact deployment: - debian/control: Build-Depends added maven-repo-helper - debian/rules: install maven artifacts - debian/poms/jettison.pom: localised pom for maven - debian/libjettison-java.poms: pom reference locations 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-05-08 17:52:11 +0000 +++ debian/control 2011-03-29 12:46:25 +0000 @@ -3,7 +3,7 @@ Priority: optional Maintainer: Debian Java Maintainers <pkg-java-maintain...@lists.alioth.debian.org> Uploaders: Torsten Werner <twer...@debian.org> -Build-Depends: debhelper (>= 5), cdbs +Build-Depends: debhelper (>= 5), cdbs, maven-repo-helper Build-Depends-Indep: ant, default-jdk Standards-Version: 3.8.4 Homepage: http://jettison.codehaus.org/ === added file 'debian/libjettison-java.poms' --- debian/libjettison-java.poms 1970-01-01 00:00:00 +0000 +++ debian/libjettison-java.poms 2011-03-29 12:46:11 +0000 @@ -0,0 +1 @@ +debian/poms/jettison.pom === added directory 'debian/poms' === added file 'debian/poms/jettison.pom' --- debian/poms/jettison.pom 1970-01-01 00:00:00 +0000 +++ debian/poms/jettison.pom 2010-01-17 10:37:12 +0000 @@ -0,0 +1,120 @@ +<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>org.codehaus.jettison</groupId> + <artifactId>jettison</artifactId> + <version>1.2</version> + <packaging>bundle</packaging> + <name>Jettison</name> + <description>A StAX implementation for JSON.</description> + <dependencies> + <dependency> + <groupId>junit</groupId> + <artifactId>junit</artifactId> + <version>3.8.1</version> + <scope>test</scope> + </dependency> + <dependency> + <groupId>stax</groupId> + <artifactId>stax-api</artifactId> + <version>1.0.1</version> + </dependency> + <dependency> + <groupId>woodstox</groupId> + <artifactId>wstx-asl</artifactId> + <version>3.2.2</version> + <scope>test</scope> + </dependency> + </dependencies> + <scm> + <connection>scm:svn:https://svn.codehaus.org/jettison/tags/jettison-1.2</connection> + <developerConnection>scm:svn:https://svn.codehaus.org/jettison/tags/jettison-1.2</developerConnection> + <url>https://svn.codehaus.org/jettison/tags/jettison-1.2</url> + </scm> + <build> + <extensions> + <extension> + <groupId>org.apache.maven.wagon</groupId> + <artifactId>wagon-webdav</artifactId> + <version>1.0-beta-2</version> + </extension> + </extensions> + + <plugins> + <plugin> + <groupId>org.apache.maven.plugins</groupId> + <artifactId>maven-compiler-plugin</artifactId> + <configuration> + <source>1.5</source> + <target>1.5</target> + <optimize>true</optimize> + <debug>true</debug> + <showDeprecation>true</showDeprecation> + <showWarnings>true</showWarnings> + </configuration> + </plugin> + <plugin> + <artifactId>maven-release-plugin</artifactId> + <configuration> + <tagBase>https://svn.codehaus.org/jettison/tags/</tagBase> + </configuration> + </plugin> + <plugin> + <groupId>org.apache.felix</groupId> + <artifactId>maven-bundle-plugin</artifactId> + <extensions>true</extensions> + <version>1.0.0</version> + <configuration> + <instructions> + <Bundle-Name>${artifactId}</Bundle-Name> + <Bundle-SymbolicName>${groupId}.${artifactId}</Bundle-SymbolicName> + <Export-Package>org.codehaus.jettison*;version=${project.version}</Export-Package> + <Import-Package>*</Import-Package> + <Private-Package>!*</Private-Package> + <Implementation-Title>${project.name}</Implementation-Title> + <Implementation-Version>${project.version}</Implementation-Version> + </instructions> + </configuration> + </plugin> + + </plugins> + + </build> + + <reporting> + <plugins> + <plugin> + <groupId>org.apache.maven.plugins</groupId> + <artifactId>maven-project-info-reports-plugin</artifactId> + </plugin> + <plugin> + <groupId>org.apache.maven.plugins</groupId> + <artifactId>maven-javadoc-plugin</artifactId> + </plugin> + <plugin> + <groupId>org.apache.maven.plugins</groupId> + <artifactId>maven-surefire-plugin</artifactId> + <configuration> + <forkMode>pertest</forkMode> + </configuration> + </plugin> + </plugins> + </reporting> + + <distributionManagement> + <repository> + <id>codehaus.org</id> + <name>jettison Central Repository</name> + <url>dav:https://dav.codehaus.org/repository/jettison/</url> + </repository> + <snapshotRepository> + <id>codehaus.org</id> + <name>jettison Central Development Repository</name> + <url>dav:https://dav.codehaus.org/snapshots.repository/jettison/</url> + </snapshotRepository> + <site> + <id>codehaus.org</id> + <url>dav:https://dav.codehaus.org/jettison/</url> + </site> + </distributionManagement> + +</project> \ No newline at end of file === modified file 'debian/rules' --- debian/rules 2009-07-03 15:05:02 +0000 +++ debian/rules 2011-03-29 12:47:51 +0000 @@ -5,10 +5,20 @@ JAVA_HOME := /usr/lib/jvm/default-java DEB_ANT_BUILDFILE := debian/build.xml +PACKAGE := jettison +MAVEN_REPO := http://repo1.maven.org/maven2 install/libjettison-java:: install -m644 -D jettison.jar $(DEB_DESTDIR)/usr/share/java/jettison-$(DEB_UPSTREAM_VERSION).jar dh_link -plibjettison-java /usr/share/java/jettison-$(DEB_UPSTREAM_VERSION).jar /usr/share/java/jettison.jar + mh_installpoms -plib$(PACKAGE)-java + mh_installjar -plib$(PACKAGE)-java -l debian/poms/$(PACKAGE).pom $(PACKAGE).jar get-orig-source: uscan --force-download --rename + +get-orig-pom: + mkdir -p debian/poms + wget -U NoSuchBrowser/1.0 -O debian/poms/$(PACKAGE).pom \ + $(MAVEN_REPO)/org/codehaus/jettison/$(PACKAGE)/$(DEB_UPSTREAM_VERSION)/$(PACKAGE)-$(DEB_UPSTREAM_VERSION).pom +