From 7fa72ed49d0d0acb98d27115161464d450a6930d Mon Sep 17 00:00:00 2001 From: Tommaso Teofili Date: Mon, 10 Oct 2016 12:28:07 +0200 Subject: [PATCH 1/2] JOSHUA-290 - separate OSGi artifact for Joshua, based on 7 branch --- joshua-osgi/pom.xml | 87 +++++++++++++++++++++++++++++++++++++++++++++ pom.xml | 1 + 2 files changed, 88 insertions(+) create mode 100644 joshua-osgi/pom.xml diff --git a/joshua-osgi/pom.xml b/joshua-osgi/pom.xml new file mode 100644 index 00000000..e90dfc19 --- /dev/null +++ b/joshua-osgi/pom.xml @@ -0,0 +1,87 @@ + + + + 4.0.0 + + org.apache.joshua + joshua-parent + 6.1-SNAPSHOT + + + joshua-osgi + bundle + Apache Joshua Machine Translation Toolkit - OSGi + + + + + org.apache.felix + maven-bundle-plugin + true + + + org.apache.joshua.decoder + + com.google.common.*;version="[15,20)", + com.google.gson.*;version="[2.3.0,2.9.0)", + + joshua-core,berkeleylm,args4j + + + + + baseline + + baseline + + pre-integration-test + + false + false + true + + + + + + + + + ${project.groupId} + joshua-core + ${project.version} + + + edu.berkeley.nlp + berkeleylm + 1.1.2 + + + args4j + args4j + 2.0.29 + + + org.osgi + org.osgi.annotation + 6.0.0 + provided + + + diff --git a/pom.xml b/pom.xml index c80584d3..d1da8b03 100644 --- a/pom.xml +++ b/pom.xml @@ -117,6 +117,7 @@ joshua-core joshua-web + joshua-osgi From c7f36a72956bdb407e78446c74c070ec1fce1df2 Mon Sep 17 00:00:00 2001 From: Tommaso Teofili Date: Mon, 10 Oct 2016 16:11:07 +0200 Subject: [PATCH 2/2] JOSHUA-290 - updated export / import package directives --- joshua-osgi/pom.xml | 62 ++++++++++++++++++++++++++++++++++++++++++++- 1 file changed, 61 insertions(+), 1 deletion(-) diff --git a/joshua-osgi/pom.xml b/joshua-osgi/pom.xml index e90dfc19..d6da9780 100644 --- a/joshua-osgi/pom.xml +++ b/joshua-osgi/pom.xml @@ -36,10 +36,16 @@ true - org.apache.joshua.decoder + + org.apache.joshua.decoder, + org.apache.joshua.decoder.segment_file, + org.apache.joshua.decoder.io + com.google.common.*;version="[15,20)", com.google.gson.*;version="[2.3.0,2.9.0)", + com.sun.net.*;resolution:=optional, + * joshua-core,berkeleylm,args4j @@ -83,5 +89,59 @@ 6.0.0 provided + + commons-cli + commons-cli + 1.2 + + + net.sf.jung + jung-algorithms + 2.0 + true + + + net.sf.jung + jung-api + 2.0 + true + + + net.sf.jung + jung-graph-impl + 2.0 + true + + + net.sf.jung + jung-visualization + 2.0 + true + + + com.google.guava + guava + 19.0 + + + com.google.code.gson + gson + 2.5 + + + org.slf4j + slf4j-api + ${slf4j.version} + + + org.slf4j + slf4j-log4j12 + ${slf4j.version} + + + concurrent + concurrent + 1.3.4 +