Skip to content

Commit

Permalink
reverting profiles to the current situation in the master branch: spr…
Browse files Browse the repository at this point in the history
…ing-boot:run by defaults starts tomcat, while the jetty profile enables jetty

added a fix to run the generated war with spring-boot on tomcat, due to issues with spring-boot 3.2.0 spring-projects/spring-boot#38585
the jar generated with jetty doesn't work at the moment
  • Loading branch information
stmsat committed Jan 3, 2024
1 parent f24968a commit e7b1b89
Showing 1 changed file with 8 additions and 15 deletions.
23 changes: 8 additions & 15 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -387,6 +387,14 @@
<plugin>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-maven-plugin</artifactId>
<configuration>
<!--
java -jar ROOT.war doesn't work; there is a bug in spring-boot-3.2.0 due to hibernate search,
probably solved in 3.2.1 https://github.com/spring-projects/spring-boot/issues/38585
(at the moment only tomcat works)
-->
<loaderImplementation>CLASSIC</loaderImplementation>
</configuration>
<executions>
<execution>
<goals>
Expand Down Expand Up @@ -567,12 +575,6 @@
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-web</artifactId>
<version>${spring_boot_version}</version>
<exclusions>
<exclusion>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-tomcat</artifactId>
</exclusion>
</exclusions>
</dependency>
</dependencies>
</profile>
Expand All @@ -599,15 +601,6 @@
<version>${spring_boot_version}</version>
</dependency>
</dependencies>
</profile><profile>
<id>tomcat</id>
<dependencies>
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-web</artifactId>
<version>${spring_boot_version}</version>
</dependency>
</dependencies>
</profile>
<profile>
<id>ossrh-repo</id>
Expand Down

0 comments on commit e7b1b89

Please sign in to comment.