This is an automated email from the ASF dual-hosted git repository. fmariani pushed a commit to branch camel-spring-boot-4.0.0-branch in repository https://gitbox.apache.org/repos/asf/camel-spring-boot.git
commit 3e868417b2e218bd5fceade1896e04568e3b302e Author: Croway <[email protected]> AuthorDate: Mon Mar 6 16:55:19 2023 +0100 CSB-1272: Platform template for jbang --- .../camel/catalog/camel-jbang/spring-boot-pom.tmpl | 117 +++++++++++++++++++++ 1 file changed, 117 insertions(+) diff --git a/catalog/camel-catalog-provider-springboot/src/main/resources/org/apache/camel/catalog/camel-jbang/spring-boot-pom.tmpl b/catalog/camel-catalog-provider-springboot/src/main/resources/org/apache/camel/catalog/camel-jbang/spring-boot-pom.tmpl new file mode 100644 index 00000000000..40849f0ceb1 --- /dev/null +++ b/catalog/camel-catalog-provider-springboot/src/main/resources/org/apache/camel/catalog/camel-jbang/spring-boot-pom.tmpl @@ -0,0 +1,117 @@ +<?xml version="1.0" encoding="UTF-8"?> +<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/maven-v4_0_0.xsd"> + + <modelVersion>4.0.0</modelVersion> + + <groupId>{{ .GroupId }}</groupId> + <artifactId>{{ .ArtifactId }}</artifactId> + <packaging>jar</packaging> + <version>{{ .Version }}</version> + + <properties> + <java.version>{{ .JavaVersion }}</java.version> + <maven.compiler.source>${java.version}</maven.compiler.source> + <maven.compiler.target>${java.version}</maven.compiler.target> + <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding> + <project.reporting.outputEncoding>UTF-8</project.reporting.outputEncoding> + <spring.boot-version>{{ .SpringBootVersion }}</spring.boot-version> + <surefire.plugin.version>3.0.0-M4</surefire.plugin.version> + <jkube.generator.from>registry.access.redhat.com/ubi8/openjdk-11:1.14</jkube.generator.from> +{{ .AdditionalProperties }} + </properties> + + <dependencyManagement> + <dependencies> + <dependency> + <groupId>com.redhat.camel.springboot.platform</groupId> + <artifactId>camel-springboot-bom</artifactId> + <version>{{ .CamelSpringBootVersion }}</version> + <type>pom</type> + <scope>import</scope> + </dependency> + </dependencies> + </dependencyManagement> + +{{ .MavenRepositories }} + <dependencies> + <dependency> + <groupId>org.springframework.boot</groupId> + <artifactId>spring-boot-starter-web</artifactId> + <exclusions> + <exclusion> + <groupId>org.springframework.boot</groupId> + <artifactId>spring-boot-starter-tomcat</artifactId> + </exclusion> + </exclusions> + </dependency> + <dependency> + <groupId>org.springframework.boot</groupId> + <artifactId>spring-boot-starter-undertow</artifactId> + </dependency> + <dependency> + <groupId>org.springframework.boot</groupId> + <artifactId>spring-boot-starter-actuator</artifactId> + </dependency> + + <dependency> + <groupId>org.apache.camel.springboot</groupId> + <artifactId>camel-spring-boot-engine-starter</artifactId> + </dependency> +{{ .CamelDependencies }} + + <dependency> + <groupId>org.springframework.boot</groupId> + <artifactId>spring-boot-starter-test</artifactId> + <scope>test</scope> + </dependency> + <dependency> + <groupId>org.apache.camel</groupId> + <artifactId>camel-test-spring-junit5</artifactId> + <scope>test</scope> + </dependency> + </dependencies> + + <build> + <plugins> + <plugin> + <groupId>org.apache.maven.plugins</groupId> + <artifactId>maven-compiler-plugin</artifactId> + <configuration> + <release>${java.version}</release> + </configuration> + </plugin> + <plugin> + <groupId>org.springframework.boot</groupId> + <artifactId>spring-boot-maven-plugin</artifactId> + <version>${spring.boot-version}</version> + </plugin> + </plugins> + </build> + + <profiles> + <profile> + <id>openshift</id> + <build> + <defaultGoal>install</defaultGoal> + <plugins> + <plugin> + <groupId>org.eclipse.jkube</groupId> + <artifactId>openshift-maven-plugin</artifactId> + <version>${openshift-maven-plugin-version}</version> + <executions> + <execution> + <goals> + <goal>resource</goal> + <goal>build</goal> + <goal>apply</goal> + </goals> + </execution> + </executions> + </plugin> + </plugins> + </build> + </profile> + </profiles> + +</project>
