[pkg-java] r10842 - trunk/simple-xml/debian

Fabian Köster maestro_alubia-guest at alioth.debian.org
Sun Oct 18 17:44:42 UTC 2009


Author: maestro_alubia-guest
Date: 2009-10-18 17:44:42 +0000 (Sun, 18 Oct 2009)
New Revision: 10842

Added:
   trunk/simple-xml/debian/libsimple-xml-java.poms
   trunk/simple-xml/debian/maven.rules
   trunk/simple-xml/debian/pom.xml
Modified:
   trunk/simple-xml/debian/control
   trunk/simple-xml/debian/rules
Log:
Use maven-repo-helper to provide pom of simple-xml



Modified: trunk/simple-xml/debian/control
===================================================================
--- trunk/simple-xml/debian/control	2009-10-17 22:03:22 UTC (rev 10841)
+++ trunk/simple-xml/debian/control	2009-10-18 17:44:42 UTC (rev 10842)
@@ -4,6 +4,7 @@
 Maintainer: Debian Java Maintainers <pkg-java-maintainers at lists.alioth.debian.org>
 Uploaders: Fabian Köster <koesterreich at gmx.net>
 Build-Depends: ant, debhelper (>= 7), cdbs, default-jdk
+Build-Depends-Indep: maven-repo-helper
 Standards-Version: 3.8.3
 Vcs-Svn: svn://svn.debian.org/svn/pkg-java/trunk/simple-xml
 Vcs-Browser: http://svn.debian.org/wsvn/pkg-java/trunk/simple-xml

Added: trunk/simple-xml/debian/libsimple-xml-java.poms
===================================================================
--- trunk/simple-xml/debian/libsimple-xml-java.poms	                        (rev 0)
+++ trunk/simple-xml/debian/libsimple-xml-java.poms	2009-10-18 17:44:42 UTC (rev 10842)
@@ -0,0 +1 @@
+debian/pom.xml

Added: trunk/simple-xml/debian/maven.rules
===================================================================
--- trunk/simple-xml/debian/maven.rules	                        (rev 0)
+++ trunk/simple-xml/debian/maven.rules	2009-10-18 17:44:42 UTC (rev 10842)
@@ -0,0 +1 @@
+junit junit jar s/3\..*/3.x/ *

Added: trunk/simple-xml/debian/pom.xml
===================================================================
--- trunk/simple-xml/debian/pom.xml	                        (rev 0)
+++ trunk/simple-xml/debian/pom.xml	2009-10-18 17:44:42 UTC (rev 10842)
@@ -0,0 +1,95 @@
+<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.simpleframework</groupId>
+  <artifactId>simple-xml</artifactId>
+  <packaging>jar</packaging>
+  <version>2.1.5</version>
+  <name>Simple XML</name>
+  <url>http://simple.sourceforge.net</url>
+  <description>Simple is a high performance XML serialization and configuration framework for Java</description>
+  <licenses>
+    <license>
+      <name>LGPL</name>
+      <url>http://www.gnu.org/licenses/lgpl.txt</url>
+      <distribution>repo</distribution>
+    </license>
+  </licenses>
+  <scm>
+     <url>http://svn.sourceforge.net/viewvc/simple/trunk/download/stream</url>
+     <connection>https://svn.sourceforge.net/svnroot/simple/trunk/download/stream</connection>
+  </scm>  
+  <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>
+      <scope>compile</scope>
+    </dependency>
+    <dependency>
+      <groupId>stax</groupId>
+      <artifactId>stax</artifactId>
+      <version>1.2.0</version>
+      <scope>compile</scope>
+    </dependency>
+    <dependency>
+      <groupId>xmlunit</groupId>
+      <artifactId>xmlunit</artifactId>
+      <version>1.0</version>
+      <scope>test</scope>
+    </dependency>
+  </dependencies>
+  <reporting>
+    <plugins>
+      <plugin>
+        <groupId>org.codehaus.mojo</groupId>
+        <artifactId>cobertura-maven-plugin</artifactId>
+      </plugin>
+    </plugins>
+  </reporting>
+  <build>
+    <extensions>
+      <extension>
+        <groupId>org.apache.maven.wagon</groupId>
+         <artifactId>wagon-ssh-external</artifactId>
+         <version>1.0-alpha-5</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>
+         </configuration>
+      </plugin>
+      <plugin>
+         <groupId>org.apache.maven.plugins</groupId>
+         <artifactId>maven-source-plugin</artifactId>
+         <executions>
+            <execution>
+                <id>attach-sources</id>
+                <goals>
+                    <goal>jar</goal>
+                </goals>
+            </execution>
+         </executions>
+      </plugin>
+    </plugins>
+  </build>
+  <distributionManagement>
+    <repository>
+      <id>sourceforge</id>
+      <name>Source Forge Repository</name>
+      <url>scp://web.sourceforge.net/home/groups/s/si/simpleweb/htdocs/maven</url>
+    </repository>
+  </distributionManagement>
+</project>
+

Modified: trunk/simple-xml/debian/rules
===================================================================
--- trunk/simple-xml/debian/rules	2009-10-17 22:03:22 UTC (rev 10841)
+++ trunk/simple-xml/debian/rules	2009-10-18 17:44:42 UTC (rev 10842)
@@ -1,12 +1,20 @@
 #!/usr/bin/make -f
+
 include /usr/share/cdbs/1/rules/debhelper.mk
 include /usr/share/cdbs/1/class/ant.mk
 
-JAVA_HOME               := /usr/lib/jvm/default-java
-DEB_ANT_BUILDFILE       := build.xml
-DEB_ANT_BUILD_TARGET    := build javadoc
-DEB_JARS 		:= stax stax-api
+PACKAGE              := $(DEB_SOURCE_PACKAGE)
+VERSION              := $(DEB_UPSTREAM_VERSION)
+JAVA_HOME            := /usr/lib/jvm/default-java
+DEB_JARS             := stax stax-api
+DEB_ANT_BUILD_TARGET := build javadoc
+DEB_ANT_BUILDFILE    := build.xml
+DEB_ANT_ARGS         := -Dpackage=$(PACKAGE) -DartifactId=$(PACKAGE) -Dversion=$(VERSION)
 
-install/libsimple-xml-java::
-	dh_install jar/simple-xml-$(DEB_UPSTREAM_VERSION).jar usr/share/java
-	dh_link /usr/share/java/simple-xml-$(DEB_UPSTREAM_VERSION).jar /usr/share/java/simple-xml.jar     
+binary-post-install/lib$(PACKAGE)-java::
+	mh_installpoms -plib$(PACKAGE)-java
+	mh_installjar -plib$(PACKAGE)-java -l debian/pom.xml jar/$(PACKAGE)-$(DEB_UPSTREAM_VERSION).jar
+
+clean::
+	rm -rf jar api build
+	-rm -rf debian/tmp




More information about the pkg-java-commits mailing list