From 5e8ac6ea1a494549e00481bb89bcece78c8313d3 Mon Sep 17 00:00:00 2001 From: Sheng Chen Date: Wed, 23 May 2018 17:12:02 +0800 Subject: [PATCH] change default deployment type from war to ftp --- azure-webapp-maven-plugin/README.md | 2 +- azure-webapp-maven-plugin/pom.xml | 4 ++-- .../microsoft/azure/maven/webapp/AbstractWebAppMojo.java | 2 +- .../azure/maven/webapp/handlers/HandlerFactoryImpl.java | 6 +++--- 4 files changed, 7 insertions(+), 7 deletions(-) diff --git a/azure-webapp-maven-plugin/README.md b/azure-webapp-maven-plugin/README.md index a83b5ef1e9..b51262ed37 100644 --- a/azure-webapp-maven-plugin/README.md +++ b/azure-webapp-maven-plugin/README.md @@ -90,7 +90,7 @@ Property | Required | Description | Version `` | false | Specifies the docker container image to deploy to your Web App.
This setting is only applicable for Web App for Containers. Docker hubs and private container registries are both supported; see the [Container Setting](#container-setting) section of this README for details. | 0.1.0+ `` | false | Specifies the application settings for your Web App, which are defined in name-value pairs like following example:
``
    `xxxx`
    `xxxx`
`
` | 0.1.0+ `` | false | Specifies whether stop target Web App during deployment. This will prevent deployment failure caused by IIS locking files. | 0.1.4+ -`` | false | Specifies the deployment approach you want to use, available options:
  • war (by default): since 1.1.0
  • ftp: since 0.1.0
| 0.1.0+ +`` | false | Specifies the deployment approach you want to use, available options:
  • ftp (by default): since 0.1.0
  • war: since 1.1.0
| 0.1.0+ `` | false | Specifies the artifacts to be deployed to your Web App when `` is set to `ftp`.
See the [Deploy via FTP](#deploy-via-ftp) section for more details. | 0.1.0+ `` | false | Specifies the location of the war file which is to be deployed when `` is set to `war`.
If this configuration is not specified, plugin will find the war file according to the `finalName` in the project build directory. | 1.1.0+ `` | false | Specify the context path for the deployment when `` is set to `war`.
If this configuration is not specified, plugin will deploy to the context path: `/`, which is also known as the `ROOT`. | 1.1.0+ diff --git a/azure-webapp-maven-plugin/pom.xml b/azure-webapp-maven-plugin/pom.xml index 47c739fa77..1e5cbad19a 100644 --- a/azure-webapp-maven-plugin/pom.xml +++ b/azure-webapp-maven-plugin/pom.xml @@ -6,7 +6,7 @@ com.microsoft.azure azure-webapp-maven-plugin - 1.1.0-SNAPSHOT + 1.2.0-SNAPSHOT maven-plugin Maven Plugin for Azure Web Apps Maven Plugin for Azure Web Apps @@ -22,7 +22,7 @@ 3.3.0 3.0.20 1.0.9 - 1.0.0-SNAPSHOT + 1.0.0 4.12 2.4.0 4.1.6.RELEASE diff --git a/azure-webapp-maven-plugin/src/main/java/com/microsoft/azure/maven/webapp/AbstractWebAppMojo.java b/azure-webapp-maven-plugin/src/main/java/com/microsoft/azure/maven/webapp/AbstractWebAppMojo.java index 3a9de78fc4..1e4bc29ee8 100644 --- a/azure-webapp-maven-plugin/src/main/java/com/microsoft/azure/maven/webapp/AbstractWebAppMojo.java +++ b/azure-webapp-maven-plugin/src/main/java/com/microsoft/azure/maven/webapp/AbstractWebAppMojo.java @@ -192,7 +192,7 @@ public abstract class AbstractWebAppMojo extends AbstractAzureMojo { * * @since 0.1.0 */ - @Parameter(property = "webapp.deploymentType", defaultValue = "war") + @Parameter(property = "webapp.deploymentType", defaultValue = "ftp") protected String deploymentType; /** diff --git a/azure-webapp-maven-plugin/src/main/java/com/microsoft/azure/maven/webapp/handlers/HandlerFactoryImpl.java b/azure-webapp-maven-plugin/src/main/java/com/microsoft/azure/maven/webapp/handlers/HandlerFactoryImpl.java index 38763c315b..aa6f182a66 100644 --- a/azure-webapp-maven-plugin/src/main/java/com/microsoft/azure/maven/webapp/handlers/HandlerFactoryImpl.java +++ b/azure-webapp-maven-plugin/src/main/java/com/microsoft/azure/maven/webapp/handlers/HandlerFactoryImpl.java @@ -73,11 +73,11 @@ public ArtifactHandler getArtifactHandler(final AbstractWebAppMojo mojo) throws throw new MojoExecutionException(DEPLOYMENT_TYPE_NOT_FOUND); case UNKNOWN: throw new MojoExecutionException(UNKNOWN_DEPLOYMENT_TYPE); - case FTP: - return new FTPArtifactHandlerImpl(mojo); case WAR: - default: return new WarArtifactHandlerImpl(mojo); + case FTP: + default: + return new FTPArtifactHandlerImpl(mojo); } }