specify org.apache.taverna.commandline.options version
.. but through a <properties> in parent
to avoid errors of invalid OSGi version number
including -incubating and -SNAPSHOT
diff --git a/pom.xml b/pom.xml
index d7833b4..b80b8d3 100644
--- a/pom.xml
+++ b/pom.xml
@@ -11,12 +11,25 @@
<version>3.1.0-incubating-SNAPSHOT</version>
<packaging>pom</packaging>
<name>Apache Taverna Command Line</name>
- <properties>
- <taverna.language.version>0.15.1-incubating-SNAPSHOT</taverna.language.version>
- <taverna.osgi.version>0.2.1-incubating-SNAPSHOT</taverna.osgi.version>
- <taverna.engine.version>3.1.0-incubating-SNAPSHOT</taverna.engine.version>
- <taverna.commonactivities.version>2.1.0-incubating-SNAPSHOT</taverna.commonactivities.version>
- </properties>
+ <properties>
+ <taverna.language.version>0.15.1-incubating-SNAPSHOT</taverna.language.version>
+ <taverna.osgi.version>0.2.1-incubating-SNAPSHOT</taverna.osgi.version>
+ <taverna.engine.version>3.1.0-incubating-SNAPSHOT</taverna.engine.version>
+ <taverna.commonactivities.version>2.1.0-incubating-SNAPSHOT</taverna.commonactivities.version>
+
+ <!--
+ Update below version number to match the <version> above.
+
+ This osgiversion is required for passing the parsed
+ org.apache.taverna.commandline.options.CommandLineOptions
+ from the taverna-commandline-launcher (running outside OSGi)
+ to taverna-commandline-common (running inside OSGi)
+ and therefore must be a falid x.y.z.0 OSGi version number
+ corersponding to the ${pom.version} - but without -SNAPSHOT
+ or -incubating
+ -->
+ <taverna.commandline.osgiversion>3.1.0.0</taverna.commandline.osgiversion>
+ </properties>
<modules>
<module>taverna-commandline-api</module>
<module>taverna-commandline-common</module>
diff --git a/taverna-commandline-product/pom.xml b/taverna-commandline-product/pom.xml
index 0735928..02579ad 100644
--- a/taverna-commandline-product/pom.xml
+++ b/taverna-commandline-product/pom.xml
@@ -99,7 +99,7 @@
</frameworkConfiguration>
<frameworkConfiguration>
<name>org.osgi.framework.system.packages.extra</name>
- <value>com.sun.org.apache.xml.internal.utils,com.sun.source.util,com.sun.source.tree,org.apache.log4j;version=${log4j.version},org.apache.taverna.commandline.options</value>
+ <value>com.sun.org.apache.xml.internal.utils,com.sun.source.util,com.sun.source.tree,org.apache.log4j;version=${log4j.version},org.apache.taverna.commandline.options;version=${taverna.commandline.osgiversion}</value>
</frameworkConfiguration>
<frameworkConfiguration>
<name>org.osgi.framework.storage.clean</name>