camel-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Claus Ibsen (JIRA)" <>
Subject [jira] [Commented] (CAMEL-11756) camel-spring-boot2 - Create experimental spring boot 2 component
Date Sun, 10 Sep 2017 10:54:02 GMT


Claus Ibsen commented on CAMEL-11756:

Okay there is a boot2 branch with a working camel-spring-boot2 component.

There is the following issues

- two of the examples cannot compile as they are using spring-boot v1 api's that has been
refactored in v2, those are: camel-example-spring-boot-clustered-route-controller and camel-example-spring-boot-rest-jpa
- the camel-commands-spring-boot module has been removed as there is no commands support in
spring boot v2, and we have also deprecated this already
- all the -starter compiles as-is and runs with both v1 and v2
- some of the complex configuration does not yet work, some of the cloud unit tests has been
ignored in camel-spring-boot2
- upgrading to spring framework v5 causes one unit test to fail in camel-spring which was
ignored. It was using guava caching which is not longer provided in the spring framework.

Spring Boot v2 has removed some auto configuration code that we use to set properties on camel
-starter components. Therefore we have introduced a new camel-spring-boot-common module in
tooling, that we use in the spring-boot -starter source code generator, and as well in the
camel-spring-boot and camel-spring-boot2 modules. This allows us to copy over the working
source code from v1 and use that for camel with spring-boot v2.

But as said there is an issue with the complex auto configuration which has 4 unit tests ignored
in camel-spring-boot2. We should look into getting that fixed.

There is a maven profile to turn on spring-boot2, which you do with

mvn clean install -P fastinstall -P spring-boot2

Then it builds the project with spring-boot 2 and spring framework 5 as default.

> camel-spring-boot2 - Create experimental spring boot 2 component
> ----------------------------------------------------------------
>                 Key: CAMEL-11756
>                 URL:
>             Project: Camel
>          Issue Type: Task
>          Components: camel-spring-boot
>            Reporter: Claus Ibsen
>            Assignee: Claus Ibsen
>             Fix For: 2.20.0
> We should try get started with the migration effort for getting Camel running on Spring
Boot 2.0.x.
> There may be issues with the starter component as Spring Boot guys changed stuff how
auto configuration and setting properties works. So we may need to have some kind of interface
in camel-spring-boot and camel-spring-boot2 where we can have different implementation that
the -starter can use.

This message was sent by Atlassian JIRA

View raw message