Skip to content

Commit d3e64a4

Browse files
committed
[pom] Rework how we update tomcat so it is managed by dependabot
1 parent e4ed60f commit d3e64a4

File tree

1 file changed

+13
-1
lines changed
  • mybatis-spring-boot-samples/mybatis-spring-boot-sample-war

1 file changed

+13
-1
lines changed

mybatis-spring-boot-samples/mybatis-spring-boot-sample-war/pom.xml

Lines changed: 13 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,8 +27,20 @@
2727
<packaging>war</packaging>
2828
<name>mybatis-spring-boot-sample-war</name>
2929
<properties>
30+
<tomcat.version>9.0.54</tomcat.version>
31+
3032
<module.name>org.mybatis.spring.boot.sample.war</module.name>
3133
</properties>
34+
<dependencyManagement>
35+
<dependencies>
36+
<dependency>
37+
<groupId>org.apache.tomcat</groupId>
38+
<artifactId>tomcat</artifactId>
39+
<version>${tomcat.version}</version>
40+
<type>zip</type>
41+
</dependency>
42+
</dependencies>
43+
</dependencyManagement>
3244
<dependencies>
3345
<dependency>
3446
<groupId>org.springframework.boot</groupId>
@@ -110,7 +122,7 @@
110122
<container>
111123
<containerId>tomcat9x</containerId>
112124
<zipUrlInstaller>
113-
<url>https://archive.apache.org/dist/tomcat/tomcat-9/v9.0.55/bin/apache-tomcat-9.0.55.zip</url>
125+
<url>https://archive.apache.org/dist/tomcat/tomcat-9/v${tomcat.version}/bin/apache-tomcat-${tomcat.version}.zip</url>
114126
</zipUrlInstaller>
115127
</container>
116128
</configuration>

0 commit comments

Comments
 (0)