Apologies but the original patch I supplied had a minor bug in debian/rules
-- James Page Software Engineer, Ubuntu Server Team
=== modified file 'debian/control' --- debian/control 2010-05-03 21:06:07 +0000 +++ debian/control 2011-02-09 08:58:20 +0000 @@ -5,8 +5,9 @@ Uploaders: Torsten Werner <twer...@debian.org> Build-Depends: debhelper (>= 5), cdbs Build-Depends-Indep: ant, default-jdk, libcommons-lang-java, - libcommons-beanutils-java, libcommons-logging-java, junit4 -Standards-Version: 3.8.4 + libcommons-beanutils-java, libcommons-logging-java, junit4, + maven-repo-helper +Standards-Version: 3.9.1 Homepage: http://ezmorph.sourceforge.net Vcs-Svn: svn://svn.debian.org/svn/pkg-java/trunk/libezmorph-java Vcs-Browser: http://svn.debian.org/wsvn/pkg-java/trunk/libezmorph-java === added file 'debian/libezmorph-java.poms' --- debian/libezmorph-java.poms 1970-01-01 00:00:00 +0000 +++ debian/libezmorph-java.poms 2011-02-09 08:58:07 +0000 @@ -0,0 +1,1 @@ +debian/poms/ezmorph.pom === added directory 'debian/poms' === added file 'debian/poms/ezmorph.pom' --- debian/poms/ezmorph.pom 1970-01-01 00:00:00 +0000 +++ debian/poms/ezmorph.pom 2011-02-09 09:44:10 +0000 @@ -0,0 +1,211 @@ +<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>net.sf.ezmorph</groupId> + <artifactId>ezmorph</artifactId> + <packaging>jar</packaging> + <version>1.0.6</version> + <name>ezmorph</name> + + <url>http://ezmorph.sourceforge.net</url> + + <description> + Simple java library for transforming an Object to another Object. + </description> + + <inceptionYear>2006</inceptionYear> + <licenses> + <license> + <name>The Apache Software License, Version 2.0</name> + <url>http://www.apache.org/licenses/LICENSE-2.0.txt</url> + <distribution>repo</distribution> + </license> + </licenses> + + <scm> + <connection> + scm:cvs:pserver:anonym...@ezmorph.cvs.sourceforge.net:/cvsroot/ezmorph:ezmorph + </connection> + <url>http://ezmorph.cvs.sourceforge.net/ezmorph</url> + <developerConnection> + scm:cvs:ext:${maven.username}@ezmorph.cvs.sourceforge.net:/cvsroot/ezmorph:ezmorph + </developerConnection> + </scm> + <issueManagement> + <system>SourceForge</system> + <url>https://sourceforge.net/tracker/?group_id=174866</url> + </issueManagement> + + <mailingLists /> + + <developers> + <developer> + <name>Andres Almiray</name> + <id>aalmiray</id> + <email>aalmi...@users.sourceforge.net</email> + <timezone>-5</timezone> + <roles> + <role>Java Developer</role> + </roles> + </developer> + </developers> + + <dependencies> + <dependency> + <groupId>junit</groupId> + <artifactId>junit</artifactId> + <version>3.8.2</version> + <optional>true</optional> + </dependency> + <dependency> + <groupId>commons-lang</groupId> + <artifactId>commons-lang</artifactId> + <version>2.3</version> + </dependency> + <dependency> + <groupId>commons-beanutils</groupId> + <artifactId>commons-beanutils</artifactId> + <version>1.7.0</version> + <optional>true</optional> + </dependency> + <dependency> + <groupId>commons-logging</groupId> + <artifactId>commons-logging</artifactId> + <version>1.1</version> + <optional>true</optional> + <exclusions> + <exclusion> + <groupId>log4j</groupId> + <artifactId>log4j</artifactId> + </exclusion> + <exclusion> + <groupId>logkit</groupId> + <artifactId>logkit</artifactId> + </exclusion> + <exclusion> + <groupId>avalon-framework</groupId> + <artifactId>avalon-framework</artifactId> + </exclusion> + <exclusion> + <groupId>javax.servlet</groupId> + <artifactId>servlet-api</artifactId> + </exclusion> + </exclusions> + </dependency> + <dependency> + <groupId>log4j</groupId> + <artifactId>log4j</artifactId> + <version>1.2.14</version> + <optional>true</optional> + <scope>runtime</scope> + </dependency> + </dependencies> + + <prerequisites> + <maven>2.0.7</maven> + </prerequisites> + + <build> + <defaultGoal>install</defaultGoal> + <plugins> + <plugin> + <artifactId>maven-compiler-plugin</artifactId> + <configuration> + <source>1.3</source> + <target>1.1</target> + </configuration> + </plugin> + <plugin> + <groupId>org.apache.maven.plugins</groupId> + <artifactId>maven-site-plugin</artifactId> + <configuration> + <templateDirectory> + ${basedir}/src/site + </templateDirectory> + <template>site.vm</template> + </configuration> + </plugin> + + <plugin> + <groupId>org.apache.maven.plugins</groupId> + <artifactId>maven-surefire-plugin</artifactId> + <configuration> + <excludes> + <exclude>**/Abstract*.java</exclude> + <exclude>**/*TestSuite.java</exclude> + </excludes> + <includes> + <include>**/*Test.java</include> + </includes> + </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-surefire-report-plugin</artifactId> + </plugin> + <plugin> + <groupId>org.apache.maven.plugins</groupId> + <artifactId>maven-jxr-plugin</artifactId> + </plugin> + <plugin> + <groupId>org.apache.maven.plugins</groupId> + <artifactId>maven-javadoc-plugin</artifactId> + <version>2.1</version> + <configuration> + <links> + <link>http://java.sun.com/j2se/1.5.0/docs/api/</link> + <link>http://www.junit.org/junit/javadoc/</link> + <link> + http://jakarta.apache.org/commons/beanutils/commons-beanutils-1.7.0/docs/api/ + </link> + <link> + http://jakarta.apache.org/commons/lang/api-2.2/ + </link> + </links> + </configuration> + </plugin> + <plugin> + <groupId>org.codehaus.mojo</groupId> + <artifactId>cobertura-maven-plugin</artifactId> + </plugin> + <plugin> + <groupId>org.codehaus.mojo</groupId> + <artifactId>changes-maven-plugin</artifactId> + <reportSets> + <reportSet> + <reports> + <report>changes-report</report> + </reports> + </reportSet> + </reportSets> + </plugin> + <plugin> + <groupId>org.codehaus.mojo</groupId> + <artifactId>jdepend-maven-plugin</artifactId> + </plugin> + <plugin> + <groupId>org.codehaus.mojo</groupId> + <artifactId>javancss-maven-plugin</artifactId> + <version>2.0-beta-1</version> + </plugin> + <plugin> + <groupId>org.codehaus.mojo</groupId> + <artifactId>findbugs-maven-plugin</artifactId> + <version>1.0.0</version> + </plugin> + </plugins> + </reporting> + +</project> === modified file 'debian/rules' --- debian/rules 2010-05-03 21:06:07 +0000 +++ debian/rules 2011-02-09 09:44:10 +0000 @@ -6,10 +6,21 @@ JAVA_HOME := /usr/lib/jvm/default-java DEB_ANT_BUILDFILE := debian/build.xml DEB_JARS := commons-lang commons-beanutils commons-logging junit4 +PACKAGE := ezmorph +MAVEN_REPO := http://repo1.maven.org/maven2 install/libezmorph-java:: install -m644 -D ezmorph.jar $(DEB_DESTDIR)/usr/share/java/ezmorph-$(DEB_UPSTREAM_VERSION).jar dh_link -plibezmorph-java /usr/share/java/ezmorph-$(DEB_UPSTREAM_VERSION).jar /usr/share/java/ezmorph.jar +binary-post-install/lib$(PACKAGE)-java:: + mh_installpoms -plib$(PACKAGE)-java + mh_installjar -plib$(PACKAGE)-java -l debian/poms/$(PACKAGE).pom $(PACKAGE).jar + get-orig-source: -uscan --upstream-version 0 --rename + +get-orig-pom: + mkdir -p debian/poms + wget -U NoSuchBrowser/1.0 -O debian/poms/$(PACKAGE).pom \ + $(MAVEN_REPO)/net/sf/ezmorph/$(PACKAGE)/$(DEB_UPSTREAM_VERSION)/$(PACKAGE)-$(DEB_UPSTREAM_VERSION).pom
signature.asc
Description: This is a digitally signed message part