Skip to content

Commit 9ed8c5a

Browse files
authored
Merge pull request #609 from kazuki43zoo/allow-override-tomcat-version
Change configuration for allowing override the tomcat major version on tests
2 parents a3a2184 + db6105e commit 9ed8c5a

File tree

1 file changed

+3
-2
lines changed
  • mybatis-spring-boot-samples/mybatis-spring-boot-sample-war

1 file changed

+3
-2
lines changed

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

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,7 @@
2727
<packaging>war</packaging>
2828
<name>mybatis-spring-boot-sample-war</name>
2929
<properties>
30+
<tomcat.major.version>9</tomcat.major.version>
3031
<tomcat.version>9.0.56</tomcat.version>
3132

3233
<module.name>org.mybatis.spring.boot.sample.war</module.name>
@@ -120,9 +121,9 @@
120121
</properties>
121122
</configuration>
122123
<container>
123-
<containerId>tomcat9x</containerId>
124+
<containerId>tomcat${tomcat.major.version}x</containerId>
124125
<zipUrlInstaller>
125-
<url>https://archive.apache.org/dist/tomcat/tomcat-9/v${tomcat.version}/bin/apache-tomcat-${tomcat.version}.zip</url>
126+
<url>https://archive.apache.org/dist/tomcat/tomcat-${tomcat.major.version}/v${tomcat.version}/bin/apache-tomcat-${tomcat.version}.zip</url>
126127
</zipUrlInstaller>
127128
</container>
128129
</configuration>

0 commit comments

Comments
 (0)