This sample includes a Tomcat application run by an embedded Tomcat server. It's configured to be deployable as an executable uber JAR file to Azure App Service.
- Build with
mvn clean package
. - Run locally with
java -jar .\target\embeddedTomcatExample.jar
.
To deploy to App Service, edit the section "Configure your deployment to Azure App Service" on the file pom.xml and run mvn package azure-webapp:deploy
.
-
Add the plugin azure-webapp-maven-plugin by running the following command:
mvn com.microsoft.azure:azure-webapp-maven-plugin:2.13.0:config
-
Deploy the app by running the following command:
mvn package azure-webapp:deploy