diff --git a/pom.xml b/pom.xml
index 3f330a9ee..5c8771cbe 100644
--- a/pom.xml
+++ b/pom.xml
@@ -10,7 +10,8 @@
spring-boot-starter-parent
3.1.0
- petclinic
+ liberty-spring-petclinic
+ war
@@ -121,6 +122,7 @@
+ liberty-${project.artifactId}
io.spring.javaformat
@@ -243,6 +245,19 @@
false
+
+ io.openliberty.tools
+ liberty-maven-plugin
+ 3.8.1
+
+
+ io.openliberty
+ openliberty-webProfile10
+ 23.0.0.5
+ zip
+
+
+
diff --git a/src/main/java/org/springframework/samples/petclinic/PetClinicServletInitializer.java b/src/main/java/org/springframework/samples/petclinic/PetClinicServletInitializer.java
new file mode 100644
index 000000000..866f90fed
--- /dev/null
+++ b/src/main/java/org/springframework/samples/petclinic/PetClinicServletInitializer.java
@@ -0,0 +1,23 @@
+/*******************************************************************************
+ * Copyright (c) 2023 IBM Corporation and others.
+ * All rights reserved. This program and the accompanying materials
+ * are made available under the terms of the Eclipse Public License 2.0
+ * which accompanies this distribution, and is available at
+ * https://www.eclipse.org/legal/epl-2.0/
+ *
+ * SPDX-License-Identifier: EPL-2.0
+ *
+ *******************************************************************************/
+package org.springframework.samples.petclinic;
+
+import org.springframework.boot.builder.SpringApplicationBuilder;
+import org.springframework.boot.web.servlet.support.SpringBootServletInitializer;
+
+public class PetClinicServletInitializer extends SpringBootServletInitializer {
+
+ @Override
+ protected SpringApplicationBuilder configure(SpringApplicationBuilder application) {
+ return application.sources(PetClinicApplication.class);
+ }
+
+}