This is an automated email from the ASF dual-hosted git repository. davsclaus pushed a commit to branch CAMEL-16055 in repository https://gitbox.apache.org/repos/asf/camel-spring-boot.git
commit c967a1b66b4e226195423eb3543849c255071704 Author: Claus Ibsen <[email protected]> AuthorDate: Thu Jan 21 15:06:32 2021 +0100 CAMEL-16055: Add spring-boot-parent pom.xml so we can separate spring-boot-bom from unwanted extra dependencies via camel-parent --- archetypes/pom.xml | 4 ++-- catalog/pom.xml | 4 ++-- core/pom.xml | 4 ++-- docs/pom.xml | 4 ++-- parent/pom.xml | 68 ++++++++++++++++++++++++++++++++++++++++++++++++++++++ pom.xml | 37 +---------------------------- tests/pom.xml | 4 ++-- tooling/pom.xml | 3 ++- 8 files changed, 81 insertions(+), 47 deletions(-) diff --git a/archetypes/pom.xml b/archetypes/pom.xml index e4883fe..d84e35f 100644 --- a/archetypes/pom.xml +++ b/archetypes/pom.xml @@ -23,9 +23,9 @@ <parent> <groupId>org.apache.camel.springboot</groupId> - <artifactId>spring-boot</artifactId> + <artifactId>spring-boot-parent</artifactId> <version>3.8.0-SNAPSHOT</version> - <relativePath>..</relativePath> + <relativePath>../parent/pom.xml</relativePath> </parent> <artifactId>archetypes</artifactId> diff --git a/catalog/pom.xml b/catalog/pom.xml index c35cd4f..a4e12bd 100644 --- a/catalog/pom.xml +++ b/catalog/pom.xml @@ -23,9 +23,9 @@ <parent> <groupId>org.apache.camel.springboot</groupId> - <artifactId>spring-boot</artifactId> + <artifactId>spring-boot-parent</artifactId> <version>3.8.0-SNAPSHOT</version> - <relativePath>..</relativePath> + <relativePath>../parent/pom.xml</relativePath> </parent> <groupId>org.apache.camel.springboot</groupId> diff --git a/core/pom.xml b/core/pom.xml index 3c13f65..6172fec 100644 --- a/core/pom.xml +++ b/core/pom.xml @@ -24,9 +24,9 @@ <parent> <groupId>org.apache.camel.springboot</groupId> - <artifactId>spring-boot</artifactId> + <artifactId>spring-boot-parent</artifactId> <version>3.8.0-SNAPSHOT</version> - <relativePath>..</relativePath> + <relativePath>../parent/pom.xml</relativePath> </parent> <groupId>org.apache.camel.springboot</groupId> diff --git a/docs/pom.xml b/docs/pom.xml index 725543c..99d5232 100644 --- a/docs/pom.xml +++ b/docs/pom.xml @@ -23,9 +23,9 @@ <parent> <groupId>org.apache.camel.springboot</groupId> - <artifactId>spring-boot</artifactId> + <artifactId>spring-boot-parent</artifactId> <version>3.8.0-SNAPSHOT</version> - <relativePath>..</relativePath> + <relativePath>../parent/pom.xml</relativePath> </parent> <groupId>org.apache.camel.springboot</groupId> diff --git a/parent/pom.xml b/parent/pom.xml new file mode 100644 index 0000000..13d9340 --- /dev/null +++ b/parent/pom.xml @@ -0,0 +1,68 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!-- + + Licensed to the Apache Software Foundation (ASF) under one or more + contributor license agreements. See the NOTICE file distributed with + this work for additional information regarding copyright ownership. + The ASF licenses this file to You under the Apache License, Version 2.0 + (the "License"); you may not use this file except in compliance with + the License. You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. + +--> +<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> + <modelVersion>4.0.0</modelVersion> + + <parent> + <groupId>org.apache.camel.springboot</groupId> + <artifactId>spring-boot</artifactId> + <version>3.8.0-SNAPSHOT</version> + </parent> + + <groupId>org.apache.camel.springboot</groupId> + <artifactId>spring-boot-parent</artifactId> + <version>3.8.0-SNAPSHOT</version> + <packaging>pom</packaging> + + <name>Camel SB :: Parent</name> + + <dependencyManagement> + <dependencies> + <dependency> + <groupId>org.apache.camel.springboot</groupId> + <artifactId>camel-core-starter</artifactId> + <version>${project.version}</version> + </dependency> + <dependency> + <groupId>org.apache.camel.springboot</groupId> + <artifactId>camel-spring-boot-starter</artifactId> + <version>${project.version}</version> + </dependency> + <dependency> + <groupId>org.apache.camel.springboot</groupId> + <artifactId>camel-spring-boot</artifactId> + <version>${project.version}</version> + </dependency> + <dependency> + <groupId>org.apache.camel</groupId> + <artifactId>camel-parent</artifactId> + <version>${camel-version}</version> + <type>pom</type> + <scope>import</scope> + </dependency> + <dependency> + <groupId>com.google.guava</groupId> + <artifactId>guava</artifactId> + <version>${google-guava-version}</version> + </dependency> + </dependencies> + </dependencyManagement> + +</project> diff --git a/pom.xml b/pom.xml index 2908798..1758e5f 100644 --- a/pom.xml +++ b/pom.xml @@ -67,11 +67,8 @@ </mailingList> </mailingLists> - <prerequisites> - <maven>3.5.0</maven> - </prerequisites> - <modules> + <module>parent</module> <module>tooling</module> <module>core</module> <module>components-starter</module> @@ -168,38 +165,6 @@ </pluginRepository> </pluginRepositories> - <dependencyManagement> - <dependencies> - <dependency> - <groupId>org.apache.camel.springboot</groupId> - <artifactId>camel-core-starter</artifactId> - <version>${project.version}</version> - </dependency> - <dependency> - <groupId>org.apache.camel.springboot</groupId> - <artifactId>camel-spring-boot-starter</artifactId> - <version>${project.version}</version> - </dependency> - <dependency> - <groupId>org.apache.camel.springboot</groupId> - <artifactId>camel-spring-boot</artifactId> - <version>${project.version}</version> - </dependency> - <dependency> - <groupId>org.apache.camel</groupId> - <artifactId>camel-parent</artifactId> - <version>${camel-version}</version> - <type>pom</type> - <scope>import</scope> - </dependency> - <dependency> - <groupId>com.google.guava</groupId> - <artifactId>guava</artifactId> - <version>${google-guava-version}</version> - </dependency> - </dependencies> - </dependencyManagement> - <build> <defaultGoal>install</defaultGoal> diff --git a/tests/pom.xml b/tests/pom.xml index 0b4a372..a6dc03d 100644 --- a/tests/pom.xml +++ b/tests/pom.xml @@ -23,9 +23,9 @@ <parent> <groupId>org.apache.camel.springboot</groupId> - <artifactId>spring-boot</artifactId> + <artifactId>spring-boot-parent</artifactId> <version>3.8.0-SNAPSHOT</version> - <relativePath>..</relativePath> + <relativePath>../parent/pom.xml</relativePath> </parent> <groupId>org.apache.camel.springboot</groupId> diff --git a/tooling/pom.xml b/tooling/pom.xml index 768a738..d0af614 100644 --- a/tooling/pom.xml +++ b/tooling/pom.xml @@ -23,8 +23,9 @@ <parent> <groupId>org.apache.camel.springboot</groupId> - <artifactId>spring-boot</artifactId> + <artifactId>spring-boot-parent</artifactId> <version>3.8.0-SNAPSHOT</version> + <relativePath>../parent/pom.xml</relativePath> </parent> <artifactId>tooling</artifactId>
