[
https://issues.apache.org/jira/browse/CAMEL-11756?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16161187#comment-16161187
]
Claus Ibsen commented on CAMEL-11756:
-------------------------------------
Yeah Nicola
I think we should make our POM.xml as slim as possible. When end users do
Spring Boot apps, then they chose which SB version they are using, and then
they do in their POM.xml file the import of the spring-boot-dependencies. And
then they as 2nd add the camel import of the chosen camel version.
eg for SB1
{code}
<dependencyManagement>
<dependencies>
<!-- Spring Boot BOM -->
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-dependencies</artifactId>
<version>1.5.6.RELEASE</version>
<type>pom</type>
<scope>import</scope>
</dependency>
<!-- Camel BOM -->
<dependency>
<groupId>org.apache.camel</groupId>
<artifactId>camel-spring-boot-dependencies</artifactId>
<version>2.19.2</version>
<type>pom</type>
<scope>import</scope>
</dependency>
</dependencies>
</dependencyManagement>
<dependency>
<groupId>org.apache.camel</groupId>
<artifactId>camel-spring-boot-starter</artifactId>
</dependency>
{code}
And then later for SB2
{code}
<dependencyManagement>
<dependencies>
<!-- Spring Boot BOM -->
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-dependencies</artifactId>
<version>2.0.1.RELEASE</version>
<type>pom</type>
<scope>import</scope>
</dependency>
<!-- Camel BOM -->
<dependency>
<groupId>org.apache.camel</groupId>
<artifactId>camel-spring-boot2-dependencies</artifactId>
<version>2.21.0</version>
<type>pom</type>
<scope>import</scope>
</dependency>
</dependencies>
</dependencyManagement>
<dependency>
<groupId>org.apache.camel</groupId>
<artifactId>camel-spring-boot2-starter</artifactId>
</dependency>
{code}
> camel-spring-boot2 - Create experimental spring boot 2 component
> ----------------------------------------------------------------
>
> Key: CAMEL-11756
> URL: https://issues.apache.org/jira/browse/CAMEL-11756
> 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
(v6.4.14#64029)