Blob Blame History Raw
commit 5d1f18ef7a2b144edecf82c8b9b6158045dc3f47
Author: František Dvořák <valtri@civ.zcu.cz>
Date:   Sat Aug 24 16:47:14 2013 +0200

    Add maven pom files for jobid.api-java and lb.client-java (solves issue #18).

diff --git a/org.glite.jobid.api-java/Makefile b/org.glite.jobid.api-java/Makefile
index 7fb42e4..d619d9b 100644
--- a/org.glite.jobid.api-java/Makefile
+++ b/org.glite.jobid.api-java/Makefile
@@ -16,9 +16,12 @@ SOURCES=\
 	build.xml Makefile \
 	nbproject/*.properties nbproject/*.xml \
 	nbproject/private/*.properties nbproject/private/*.xml \
+	project/pom.xml \
 	src/org/glite/jobid/*.java
 
-all compile doc:
+POM=JPP-${package}.pom
+
+all compile doc: ${POM}
 	${ant_prefix}/bin/ant ${ANT_ARGS}
 
 stage:
@@ -33,9 +36,15 @@ check:
 
 clean:
 	${ant_prefix}/bin/ant ${ANT_ARGS} clean
+	rm -fv ${POM}
 	rm -rvf dist ${package}-*.tar.gz
 
 distclean:
 	rm -rvf project/changelog Makefile.inc *.spec debian/
 
+${POM}: ${top_srcdir}/project/pom.xml
+	sed -e "s:@DESCRIPTION@:$(shell cat ${top_srcdir}/project/package.description):" \
+	    -e "s:@VERSION@:${version}:" \
+	    $< > $@
+
 .PHONY: default all compile stage install check clean distclean dist distcheck
diff --git a/org.glite.jobid.api-java/project/pom.xml b/org.glite.jobid.api-java/project/pom.xml
new file mode 100644
index 0000000..789d9d7
--- /dev/null
+++ b/org.glite.jobid.api-java/project/pom.xml
@@ -0,0 +1,52 @@
+<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/xsd/maven-4.0.0.xsd">
+  <modelVersion>4.0.0</modelVersion>
+
+  <groupId>org.glite</groupId>
+  <artifactId>jobid-api-java</artifactId>
+  <version>@VERSION@</version>
+  <packaging>jar</packaging>
+
+  <dependencies>
+    <dependency>
+      <groupId>commons-codec</groupId>
+      <artifactId>commons-codec</artifactId>
+    </dependency>
+  </dependencies>
+
+  <description>@DESCRIPTION@</description>
+  <url>http://egee.cesnet.cz/en/JRA1/LB/</url>
+  <inceptionYear>2008</inceptionYear>
+
+  <licenses>
+    <license>
+      <name>The Apache Software License, Version 2.0</name>
+      <url>http://www.apache.org/licenses/LICENSE-2.0.txt</url>
+    </license>
+  </licenses>
+
+  <organization>
+    <name>CESNET</name>
+    <url>http://cesnet.cz</url>
+  </organization>
+
+  <issueManagement>
+    <system>GitHub Issues</system>
+    <url>https://github.com/CESNET/glite-lb/issues</url>
+  </issueManagement>
+
+  <mailingLists>
+    <mailingList>
+      <name>EMI L&amp;B</name>
+      <post>emi-lb@metacentrum.cz</post>
+    </mailingList>
+  </mailingLists>
+
+  <scm>
+    <connection>scm:git:git://github.com/CESNET/glite-lb</connection>
+    <url>https://github.com/CESNET/glite-lb</url>
+  </scm>
+
+</project>