Camunda-engine maven dependency with Spring MVC dependency - Compatibility issue

Hi @jigneshpurohit,
in dependency tree you can see, that you have Spring dependencies of two versions. Some are coming from camunda-engine-spring dependency:

[INFO] |  +- org.springframework:spring-jdbc:jar:3.1.2.RELEASE:compile
[INFO] |  +- org.springframework:spring-tx:jar:3.1.2.RELEASE:compile
[INFO] |  |  \- aopalliance:aopalliance:jar:1.0:compile
[INFO] |  +- commons-lang:commons-lang:jar:2.4:compile
[INFO] |  +- org.springframework:spring-orm:jar:3.1.2.RELEASE:compile

Others included directly in your POM:

[INFO] +- org.springframework:spring-context:jar:5.0.3.RELEASE:compile
[INFO] |  +- org.springframework:spring-aop:jar:5.0.3.RELEASE:compile
[INFO] |  +- org.springframework:spring-core:jar:5.0.3.RELEASE:compile
[INFO] |  |  \- org.springframework:spring-jcl:jar:5.0.3.RELEASE:compile
[INFO] |  \- org.springframework:spring-expression:jar:5.0.3.RELEASE:compile
[INFO] +- org.springframework:spring-web:jar:5.0.3.RELEASE:compile
[INFO] +- org.springframework:spring-webmvc:jar:5.0.3.RELEASE:compile
[INFO] +- org.springframework.security:spring-security-web:jar:5.0.0.RELEASE:com
pile
[INFO] |  \- org.springframework.security:spring-security-core:jar:5.0.0.RELEASE
:compile

This won’t work. You have two ways:

  1. Use in your dependencies the same version that Camunda is using: 3.1.2.RELEASE
  2. Exclude Spring transitive dependencies from camunda-engine-spring, and include them manually of version 5.0.3.RELEASE., but no guarantees that Camunda will run on this version