[MAGNOLIA-7208] Upgrading to magnolia 5.6 derives old joda-time version which conflicts with jackson-datatype Created: 28/Nov/17  Updated: 28/Nov/17

Status: Open
Project: Magnolia
Component/s: None
Affects Version/s: 5.6
Fix Version/s: None

Type: Bug Priority: Critical
Reporter: Thomas Peintner Assignee: Unassigned
Resolution: Unresolved Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Template:
Acceptance criteria:
Empty
Task DoD:
[ ]* Doc/release notes changes? Comment present?
[ ]* Downstream builds green?
[ ]* Solution information and context easily available?
[ ]* Tests
[ ]* FixVersion filled and not yet released
[ ]  Architecture Decision Record (ADR)
Bug DoR:
[ ]* Steps to reproduce, expected, and actual results filled
[ ]* Affected version filled

 Description   

With magnolia 5.6 the joda-time 1.6.2 is derived via jbpm flow

[INFO] | +- info.magnolia.workflow:magnolia-module-workflow-jbpm:jar:5.7:compile
[INFO] | | +- info.magnolia.workflow:drools-jcr-persistence:jar:5.7:compile
[INFO] | | +- info.magnolia.workflow:jbpm-jcr-persistence:jar:5.7:compile
[INFO] | | | - org.jbpm:jbpm-flow:jar:6.4.0.Final:compile
[INFO] | | | - joda-time:joda-time:jar:1.6.2:compile

This breaks with jackson which derives joda-time in version 2.7

[INFO] +- info.magnolia.rest:magnolia-rest-tools:jar:2.0:compile
[INFO] | +- io.swagger:swagger-jaxrs:jar:1.5.6:compile
[INFO] | | +- com.fasterxml.jackson.dataformat:jackson-dataformat-yaml:jar:2.8.6:compile
[INFO] | | +- com.fasterxml.jackson.dataformat:jackson-dataformat-xml:jar:2.8.6:compile
[INFO] | | | +- org.codehaus.woodstox:stax2-api:jar:3.1.4:compile
[INFO] | | | - com.fasterxml.woodstox:woodstox-core:jar:5.0.3:compile
[INFO] | | - io.swagger:swagger-core:jar:1.5.6:compile
[INFO] | | +- com.fasterxml.jackson.datatype:jackson-datatype-joda:jar:2.8.6:compile
[INFO] | | | - joda-time:joda-time:jar:2.7:compile
[INFO] | | - javax.validation:validation-api:jar:1.1.0.Final:compile

Resulting in exception when creating Jackson Object Mapper =>
Constructor threw exception; nested exception is java.lang.NoClassDefFoundError: Could not initialize class com.fasterxml.jackson.datatype.joda.cfg.FormatConfig

For comparision the dependency tree of workflow-module before the upgrade on mgnl 5.5.6 looks the following

[INFO] | +- info.magnolia.workflow:magnolia-module-workflow-jbpm:jar:5.6.5:compile
[INFO] | | +- org.jbpm:jbpm-runtime-manager:jar:6.4.0.Final:compile
[INFO] | | | +- org.eclipse.aether:aether-api:jar:1.0.0.v20140518:compile
[INFO] | | | +- org.drools:drools-compiler:jar:6.4.0.Final:compile
[INFO] | | | | +- org.antlr:antlr-runtime:jar:3.5:compile
[INFO] | | | | +- org.eclipse.jdt.core.compiler:ecj:jar:4.4.2:compile
[INFO] | | | | +- com.thoughtworks.xstream:xstream:jar:1.4.7:compile
[INFO] | | | | | +- xmlpull:xmlpull:jar:1.1.3.1:compile
[INFO] | | | | | - xpp3:xpp3_min:jar:1.1.4c:compile
[INFO] | | | | - com.google.protobuf:protobuf-java:jar:2.6.0:compile
[INFO] | | | +- org.drools:drools-core:jar:6.4.0.Final:compile
[INFO] | | | +- org.drools:drools-persistence-jpa:jar:6.4.0.Final:compile
[INFO] | | | | +- org.hibernate.javax.persistence:hibernate-jpa-2.0-api:jar:1.0.1.Final:compile
[INFO] | | | | +- dom4j:dom4j:jar:1.6.1:compile
[INFO] | | | | - org.jboss.spec.javax.transaction:jboss-transaction-api_1.1_spec:jar:1.0.1.Final:compile
[INFO] | | | +- org.jbpm:jbpm-flow:jar:6.4.0.Final:compile
[INFO] | | | +- org.jbpm:jbpm-persistence-jpa:jar:6.4.0.Final:compile
[INFO] | | | +- org.kie:kie-api:jar:6.4.0.Final:compile
[INFO] | | | +- org.kie:kie-internal:jar:6.4.0.Final:compile
[INFO] | | | +- org.mvel:mvel2:jar:2.2.8.Final:compile
[INFO] | | | +- org.jbpm:jbpm-human-task-workitems:jar:6.4.0.Final:compile


Generated at Mon Feb 12 04:21:44 CET 2024 using Jira 9.4.2#940002-sha1:46d1a51de284217efdcb32434eab47a99af2938b.