Bug#612569: libezmorph-java: Package does not generate/install Maven artifacts
James Page
james.page at canonical.com
Wed Feb 9 09:01:38 UTC 2011
Package: libezmorph-java
Version: 1.0.6-2
Severity: normal
Tags: patch
User: ubuntu-devel at lists.ubuntu.com
Usertags: origin-ubuntu natty ubuntu-patch
*** /tmp/tmpbYZKCb
In Ubuntu, the attached patch was applied to achieve the following:
* Updated to generate maven artifacts (LP: #715640):
- debian/control: Build-Depends-Indep on maven-repo-helper
- debian/rules, debian/libezmorph-java.poms: generate maven artifacts
and new target for retrieving original POM file.
- debian/pom/ezmorph.pom: maven pom artifact
* Updated Standards-Version: 3.9.1, no changes.
This updates this package to install Maven artifacts to /usr/share/maven-repo.
This change has been made to support packaging of Jenkins (aka Hudson).
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-25-generic (SMP w/8 CPU cores)
Locale: LANG=C, LC_CTYPE=C (charmap=ANSI_X3.4-1968)
Shell: /bin/sh linked to /bin/dash
-------------- next part --------------
=== 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 <twerner at 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 @@
+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 08:58:07 +0000
@@ -0,0 +1,208 @@
+<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:anonymous at 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>aalmiray at 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>
\ No newline at end of file
=== modified file 'debian/rules'
--- debian/rules 2010-05-03 21:06:07 +0000
+++ debian/rules 2011-02-09 08:58:07 +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).xml \
+ $(MAVEN_REPO)/net/sf/ezmorph/$(PACKAGE)/$(DEB_UPSTREAM_VERSION)/$(PACKAGE)-$(DEB_UPSTREAM_VERSION).pom
More information about the pkg-java-maintainers
mailing list