You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
[Azure App Service](overview.md) provides a highly scalable, self-patching web hosting service. This quickstart shows how to use the [Azure CLI](/cli/azure/get-started-with-azure-cli) with the [Azure Web App Plugin for Maven](https://github.com/Microsoft/azure-maven-plugins/tree/develop/azure-webapp-maven-plugin) to deploy a .jar file, or .war file. Use the tabs to switch between Java SE and Tomcat instructions.
22
22
23
+
# [Java SE](#tab/javase)
24
+
25
+

26
+
27
+
# [Tomcat](#tab/tomcat)
28
+
29
+

30
+
31
+
# [JBoss EAP](#tab/jbosseap)
32
+
33
+
::: zone pivot="platform-windows"
34
+
35
+
JBoss EAP is only available on the Linux version of App Service. Select the **Linux** button at the top of this article to view the quickstart instructions for JBoss EAP.
36
+
37
+
::: zone-end
38
+
39
+
::: zone pivot="platform-linux"
40
+

41
+
42
+
::: zone-end
43
+
44
+
-----
45
+
23
46
If Maven isn't your preferred development tool, check out our similar tutorials for Java developers:
JBoss EAP is only available on the Linux version of App Service. Please select the **Linux** button at the top of this article to view the quickstart instructions for JBoss EAP.
90
+
JBoss EAP is only available on the Linux version of App Service. Select the **Linux** button at the top of this article to view the quickstart instructions for JBoss EAP.
JBoss EAP is only available on the Linux version of App Service. Please select the **Linux** button at the top of this article to view the quickstart instructions for JBoss EAP.
190
+
JBoss EAP is only available on the Linux version of App Service. Select the **Linux** button at the top of this article to view the quickstart instructions for JBoss EAP.
170
191
171
192
---
172
193
@@ -178,7 +199,7 @@ JBoss EAP is only available on the Linux version of App Service. Please select t
178
199
1. When prompted with **Subscription** option, select the proper `Subscription` by entering the number printed at the line start.
179
200
1. When prompted with **Web App** option, select the default option, `<create>`, by pressing enter.
180
201
1. When prompted with **OS** option, select **Linux** by pressing enter.
181
-
2. When prompted with **javaVersion** option, select **Java 8** by entering `1`.
202
+
2. When prompted with **javaVersion** option, select **Java 11** by entering `2`.
182
203
3. When prompted with **Pricing Tier** option, select **P1v2** by entering `9`.
183
204
4. Finally, press enter on the last prompt to confirm your selections.
184
205
@@ -207,7 +228,7 @@ JBoss EAP is only available on the Linux version of App Service. Please select t
207
228
1. When prompted with **Subscription** option, select the proper `Subscription` by entering the number printed at the line start.
208
229
1. When prompted with **Web App** option, select the default option, `<create>`, by pressing enter.
209
230
1. When prompted with **OS** option, select **Linux** by pressing enter.
210
-
1. When prompted with **javaVersion** option, select **Java 8** by entering `1`.
231
+
1. When prompted with **javaVersion** option, select **Java 11** by entering `2`.
211
232
1. When prompted with **webcontainer** option, select **Tomcat 8.5** by entering `3`.
212
233
1. When prompted with **Pricing Tier** option, select **P1v2** by entering `9`.
213
234
1. Finally, press enter on the last prompt to confirm your selections.
@@ -237,7 +258,7 @@ JBoss EAP is only available on the Linux version of App Service. Please select t
237
258
1. If prompted with **Subscription** option, select the proper `Subscription` by entering the number printed at the line start.
238
259
1. When prompted with **Web App** option, accept the default option `<create>` by pressing enter.
239
260
1. When prompted with **OS** option, select **Linux** by pressing enter.
240
-
1. When prompted with **javaVersion** option, select **Java 8** by entering `1`.
261
+
1. When prompted with **javaVersion** option, select **Java 11** by entering `2`.
241
262
1. When prompted with **webContainer** option, select **Jbosseap 7** by entering `1`
242
263
1. When prompted with **pricingTier** option, select **P1v3** by entering `1`
243
264
1. Finally, press enter on the last prompt to confirm your selections.
@@ -250,7 +271,7 @@ JBoss EAP is only available on the Linux version of App Service. Please select t
250
271
Region : centralus
251
272
PricingTier : P1v3
252
273
OS : Linux
253
-
Java : Java 8
274
+
Java : Java 11
254
275
Web server stack: Jbosseap 7
255
276
Deploy to slot : false
256
277
Confirm (Y/N) [Y]: y
@@ -289,20 +310,57 @@ Be careful about the values of `<appName>` and `<resourceGroup>` (`helloworld-15
289
310
290
311
With all the configuration ready in your pom file, you can deploy your Java app to Azure with one single command.
291
312
313
+
# [Java SE](#tab/javase)
292
314
```azurecli-interactive
293
315
mvn package azure-webapp:deploy
294
316
```
317
+
# [Tomcat](#tab/tomcat)
318
+
```azurecli-interactive
319
+
mvn package azure-webapp:deploy
320
+
```
321
+
# [JBoss EAP](#tab/jbosseap)
295
322
296
-
::: zone pivot="platform-linux"
323
+
::: zone pivot="platform-windows"
324
+
325
+
JBoss EAP is only available on the Linux version of App Service. Select the **Linux** button at the top of this article to view the quickstart instructions for JBoss EAP.
297
326
298
-
> [!NOTE]
299
-
> For JBoss EAP, run `mvn package azure-webapp:deploy -DskipTests` to disable testing, as it requires Wildfly to be installed locally.
327
+
::: zone-end
300
328
329
+
::: zone pivot="platform-linux"
330
+
331
+
```azurecli-interactive
332
+
# Disable testing, as it requires Wildfly to be installed locally.
333
+
mvn package azure-webapp:deploy -DskipTests
334
+
```
301
335
::: zone-end
302
336
337
+
-----
338
+
303
339
Once deployment has completed, your application will be ready at `http://<appName>.azurewebsites.net/` (`http://helloworld-1590394316693.azurewebsites.net` in the demo). Open the url with your local web browser, you should see
304
340
305
-

341
+
# [Java SE](#tab/javase)
342
+
343
+

344
+
345
+
# [Tomcat](#tab/tomcat)
346
+
347
+

348
+
349
+
# [JBoss EAP](#tab/jbosseap)
350
+
351
+
::: zone pivot="platform-windows"
352
+
353
+
JBoss EAP is only available on the Linux version of App Service. Select the **Linux** button at the top of this article to view the quickstart instructions for JBoss EAP.
354
+
355
+
::: zone-end
356
+
357
+
::: zone pivot="platform-linux"
358
+
359
+

360
+
361
+
::: zone-end
362
+
363
+
-----
306
364
307
365
**Congratulations!** You've deployed your first Java app to App Service.
0 commit comments