OSGi Test in Flowable 6.2.1

After some time spent trying to get the BlueprintBasicTest to work in flowable-osgi in 6.2.1 release. I found that there is a dependency missing on the test case in the create configuration method.

It is necessary to import joda-time:

mavenBundle().groupId(“joda-time”).artifactId(“joda-time”).version(“2.9”)

Steps to reproduce:

  • setup: java 8 (jdk 1.8.0_151)
  • ide: intellji
  • os: macos
  • flowable version: 6.2.1
  • maven profiles active: check and checkosgi

Steps:

  • in project flowable-osgi
  • in test resources
  • remove SNAPSHOT from the static FLOWABLE_VERSION variable and replace it with 6.2.1
  • run the OSGI test with maven package
  • the following error will be shown:

ERROR: Bundle org.flowable.engine.common [15] Error starting mvn:org.flowable/flowable-engine-common/6.2.1 (org.osgi.framework.BundleException: Unable to resolve org.flowable.engine.common [15](R 15.0): missing requirement [org.flowable.engine.common [15](R 15.0)] osgi.wiring.package; (&(osgi.wiring.package=org.joda.time)(version>=2.9.0)(!(version>=3.0.0))) Unresolved requirements: [[org.flowable.engine.common [15](R 15.0)] osgi.wiring.package; (&(osgi.wiring.package=org.joda.time)(version>=2.9.0)(!(version>=3.0.0)))])
org.osgi.framework.BundleException: Unable to resolve org.flowable.engine.common [15](R 15.0): missing requirement [org.flowable.engine.common [15](R 15.0)] osgi.wiring.package; (&(osgi.wiring.package=org.joda.time)(version>=2.9.0)(!(version>=3.0.0))) Unresolved requirements: [[org.flowable.engine.common [15](R 15.0)] osgi.wiring.package; (&(osgi.wiring.package=org.joda.time)(version>=2.9.0)(!(version>=3.0.0)))]
at org.apache.felix.framework.Felix.resolveBundleRevision(Felix.java:4111)
at org.apache.felix.framework.Felix.startBundle(Felix.java:2117)
at org.apache.felix.framework.Felix.setActiveStartLevel(Felix.java:1371)
at org.apache.felix.framework.FrameworkStartLevelImpl.run(FrameworkStartLevelImpl.java:308)
at java.lang.Thread.run(Thread.java:748)

  • add the line:

mavenBundle().groupId(“joda-time”).artifactId(“joda-time”).version(“2.9”),

at the end of the maven bundle lines for class BlueprintBasicTest

  • run again and it works (no errors shown)

Thanks for the information!

This was fixed in current master a few days ago: https://github.com/flowable/flowable-engine/commit/16d8647ce1f214b81a30272a6499eb732d3100d1