Activiti Spring Boot REST API starter incompatible with Spring Boot HATEOAS starter

Description

Application based on Spring Boot REST API starter fails to start up after adding Spring Boot HATEOAS starter with NoUniqueBeanDefinitionException exception:

This is caused by ObjectMapper bean definition in RestApiAutoConfiguration which deactivates instance annotated with @Primary from JacksonAutoConfiguration.JacksonObjectMapperConfiguration.

Such configuration in not an issue while only one ObjectMapper instance is present in the application context. However, adding a module which has its own ObjectMapper (such as Spring Boot HATEOAS starter) makes the problem surface.

Minimal project that reproduces issue is available here:
https://github.com/vpavic/activiti-rest-spring-hateoas-error

Pull request with proposed solution:
https://github.com/Activiti/Activiti/pull/679

Environment

None

Assignee

Tijs Rademakers

Reporter

Vedran Pavić

Labels

None

Fix versions

Affects versions

Priority

High
Configure