You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@myfaces.apache.org by hn...@apache.org on 2026/03/12 10:26:24 UTC
(myfaces-tobago) branch main updated: refactor(demo): spring-boot
This is an automated email from the ASF dual-hosted git repository.
hnoeth pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/myfaces-tobago.git
The following commit(s) were added to refs/heads/main by this push:
new 3ec8ff31f3 refactor(demo): spring-boot
3ec8ff31f3 is described below
commit 3ec8ff31f3e73ddd0ff28dfb14b372a007797740
Author: Henning Noeth <hn...@apache.org>
AuthorDate: Thu Mar 12 10:43:59 2026 +0100
refactor(demo): spring-boot
To start the Spring Boot 3 demo, the spring-boot-3 profile must be activated.
---
README.md | 2 +-
tobago-example/tobago-example-spring-boot/pom.xml | 171 +++++++++++++++-------
2 files changed, 120 insertions(+), 53 deletions(-)
diff --git a/README.md b/README.md
index fe4c9b14da..aee95139f9 100644
--- a/README.md
+++ b/README.md
@@ -122,7 +122,7 @@ Browse to the local URL http://localhost:8080/
```shell
mvn clean install
cd tobago-example/tobago-example-spring-boot
-mvn clean package spring-boot:run
+mvn clean package -Pspring-boot-3 spring-boot:run
```
Browse to the local URL http://localhost:8080/
diff --git a/tobago-example/tobago-example-spring-boot/pom.xml b/tobago-example/tobago-example-spring-boot/pom.xml
index 9648ecfa3b..c2bbab15b1 100644
--- a/tobago-example/tobago-example-spring-boot/pom.xml
+++ b/tobago-example/tobago-example-spring-boot/pom.xml
@@ -29,23 +29,9 @@
<description>A minimal Tobago application with spring boot</description>
<properties>
- <joinfaces.version>5.5.7</joinfaces.version>
- <joinfaces-plugin.version>5.1.12</joinfaces-plugin.version>
- <spring-boot.version>3.5.10</spring-boot.version>
- <spring.version>6.2.12</spring.version>
+ <spring-boot.version>4.0.2</spring-boot.version>
</properties>
- <build>
- <finalName>tobago-example-spring-boot</finalName>
- <plugins>
- <plugin>
- <groupId>org.springframework.boot</groupId>
- <artifactId>spring-boot-maven-plugin</artifactId>
- <version>${spring-boot.version}</version>
- </plugin>
- </plugins>
- </build>
-
<dependencies>
<dependency>
<groupId>org.apache.myfaces.tobago</groupId>
@@ -53,54 +39,83 @@
<version>${project.version}</version>
<classifier>export</classifier>
</dependency>
- <dependency>
- <groupId>org.joinfaces</groupId>
- <artifactId>tobago-spring-boot-starter</artifactId>
- <version>${joinfaces.version}</version>
- <exclusions>
- <exclusion>
- <groupId>org.joinfaces</groupId>
- <artifactId>mojarra-spring-boot-starter</artifactId>
- </exclusion>
- <exclusion>
- <groupId>org.apache.myfaces.tobago</groupId>
- <artifactId>tobago-core</artifactId>
- </exclusion>
- <exclusion>
- <groupId>org.apache.myfaces.tobago</groupId>
- <artifactId>tobago-theme-standard</artifactId>
- </exclusion>
- </exclusions>
- </dependency>
- <dependency>
- <groupId>org.joinfaces</groupId>
- <artifactId>myfaces-spring-boot-starter</artifactId>
- <version>${joinfaces.version}</version>
- </dependency>
<dependency>
<groupId>org.springframework.boot</groupId>
- <artifactId>spring-boot-starter-web</artifactId>
+ <artifactId>spring-boot</artifactId>
<version>${spring-boot.version}</version>
+ <scope>provided</scope>
</dependency>
<dependency>
<groupId>org.springframework.boot</groupId>
- <artifactId>spring-boot-starter-validation</artifactId>
+ <artifactId>spring-boot-autoconfigure</artifactId>
<version>${spring-boot.version}</version>
- </dependency>
- <dependency>
- <groupId>com.fasterxml.jackson.core</groupId>
- <artifactId>jackson-annotations</artifactId>
- <version>2.21</version>
- </dependency>
-
- <dependency> <!-- remove this if dependency check does not fail -->
- <groupId>org.apache.logging.log4j</groupId>
- <artifactId>log4j-api</artifactId>
- <version>2.25.3</version>
+ <scope>provided</scope>
</dependency>
</dependencies>
<profiles>
+ <profile>
+ <id>spring-boot-3</id>
+ <properties>
+ <joinfaces.version>5.5.7</joinfaces.version>
+ <joinfaces-plugin.version>5.1.12</joinfaces-plugin.version>
+ <spring-boot.version>3.5.10</spring-boot.version>
+ <spring.version>6.2.12</spring.version>
+ </properties>
+ <build>
+ <finalName>tobago-example-spring-boot</finalName>
+ <plugins>
+ <plugin>
+ <groupId>org.springframework.boot</groupId>
+ <artifactId>spring-boot-maven-plugin</artifactId>
+ <version>${spring-boot.version}</version>
+ </plugin>
+ </plugins>
+ </build>
+
+ <dependencies>
+ <dependency>
+ <groupId>org.joinfaces</groupId>
+ <artifactId>tobago-spring-boot-starter</artifactId>
+ <version>${joinfaces.version}</version>
+ <exclusions>
+ <exclusion>
+ <groupId>org.joinfaces</groupId>
+ <artifactId>mojarra-spring-boot-starter</artifactId>
+ </exclusion>
+ <exclusion>
+ <groupId>org.apache.myfaces.tobago</groupId>
+ <artifactId>tobago-core</artifactId>
+ </exclusion>
+ <exclusion>
+ <groupId>org.apache.myfaces.tobago</groupId>
+ <artifactId>tobago-theme-standard</artifactId>
+ </exclusion>
+ </exclusions>
+ </dependency>
+ <dependency>
+ <groupId>org.joinfaces</groupId>
+ <artifactId>myfaces-spring-boot-starter</artifactId>
+ <version>${joinfaces.version}</version>
+ </dependency>
+ <dependency>
+ <groupId>org.springframework.boot</groupId>
+ <artifactId>spring-boot-starter-web</artifactId>
+ <version>${spring-boot.version}</version>
+ </dependency>
+ <dependency>
+ <groupId>org.springframework.boot</groupId>
+ <artifactId>spring-boot-starter-validation</artifactId>
+ <version>${spring-boot.version}</version>
+ </dependency>
+ <dependency>
+ <groupId>com.fasterxml.jackson.core</groupId>
+ <artifactId>jackson-annotations</artifactId>
+ <version>2.21</version>
+ </dependency>
+ </dependencies>
+ </profile>
+
<profile>
<id>spring-boot-4</id>
<properties>
@@ -109,6 +124,58 @@
<spring-boot.version>4.0.2</spring-boot.version>
<spring.version>7.0.4</spring.version>
</properties>
+ <build>
+ <finalName>tobago-example-spring-boot</finalName>
+ <plugins>
+ <plugin>
+ <groupId>org.springframework.boot</groupId>
+ <artifactId>spring-boot-maven-plugin</artifactId>
+ <version>${spring-boot.version}</version>
+ </plugin>
+ </plugins>
+ </build>
+
+ <dependencies>
+ <dependency>
+ <groupId>org.joinfaces</groupId>
+ <artifactId>tobago-spring-boot-starter</artifactId>
+ <version>${joinfaces.version}</version>
+ <exclusions>
+ <exclusion>
+ <groupId>org.joinfaces</groupId>
+ <artifactId>mojarra-spring-boot-starter</artifactId>
+ </exclusion>
+ <exclusion>
+ <groupId>org.apache.myfaces.tobago</groupId>
+ <artifactId>tobago-core</artifactId>
+ </exclusion>
+ <exclusion>
+ <groupId>org.apache.myfaces.tobago</groupId>
+ <artifactId>tobago-theme-standard</artifactId>
+ </exclusion>
+ </exclusions>
+ </dependency>
+ <dependency>
+ <groupId>org.joinfaces</groupId>
+ <artifactId>myfaces-spring-boot-starter</artifactId>
+ <version>${joinfaces.version}</version>
+ </dependency>
+ <dependency>
+ <groupId>org.springframework.boot</groupId>
+ <artifactId>spring-boot-starter-web</artifactId>
+ <version>${spring-boot.version}</version>
+ </dependency>
+ <dependency>
+ <groupId>org.springframework.boot</groupId>
+ <artifactId>spring-boot-starter-validation</artifactId>
+ <version>${spring-boot.version}</version>
+ </dependency>
+ <dependency>
+ <groupId>com.fasterxml.jackson.core</groupId>
+ <artifactId>jackson-annotations</artifactId>
+ <version>2.21</version>
+ </dependency>
+ </dependencies>
</profile>
</profiles>