Created
February 2, 2022 15:41
-
-
Save maciejbak85/69e9a8b7d2cc34478551f634c59cc28a to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?xml version="1.0" encoding="UTF-8" ?> | |
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> | |
<modelVersion>4.0.0</modelVersion> | |
<groupId>com.company</groupId> | |
<artifactId>SwaggerPetstore</artifactId> | |
<version>1.0-SNAPSHOT</version> | |
<packaging>jar</packaging> | |
<name>Azure Java Functions</name> | |
<properties> | |
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding> | |
<java.version>1.8</java.version> | |
<azure.functions.maven.plugin.version>1.6.0</azure.functions.maven.plugin.version> | |
<azure.functions.java.library.version>1.3.1</azure.functions.java.library.version> | |
<functionAppName>SwaggerPetstore</functionAppName> | |
<stagingDirectory>${project.build.directory}/azure-functions/${functionAppName}</stagingDirectory> | |
</properties> | |
<dependencies> | |
<dependency> | |
<groupId>com.microsoft.azure.functions</groupId> | |
<artifactId>azure-functions-java-library</artifactId> | |
<version>${azure.functions.java.library.version}</version> | |
</dependency> | |
<dependency> | |
<groupId>com.fasterxml.jackson.core</groupId> | |
<artifactId>jackson-annotations</artifactId> | |
<version>2.11.1</version> | |
</dependency> | |
<dependency> | |
<groupId>com.azure</groupId> | |
<artifactId>azure-core</artifactId> | |
<version>1.6.0</version> | |
</dependency> | |
<!-- Test --> | |
<dependency> | |
<groupId>org.junit.jupiter</groupId> | |
<artifactId>junit-jupiter</artifactId> | |
<version>5.4.2</version> | |
<scope>test</scope> | |
</dependency> | |
<dependency> | |
<groupId>org.mockito</groupId> | |
<artifactId>mockito-core</artifactId> | |
<version>2.23.4</version> | |
<scope>test</scope> | |
</dependency> | |
</dependencies> | |
<build> | |
<plugins> | |
<plugin> | |
<groupId>org.apache.maven.plugins</groupId> | |
<artifactId>maven-compiler-plugin</artifactId> | |
<version>3.8.1</version> | |
<configuration> | |
<source>${java.version}</source> | |
<target>${java.version}</target> | |
<encoding>${project.build.sourceEncoding}</encoding> | |
</configuration> | |
</plugin> | |
<plugin> | |
<groupId>com.microsoft.azure</groupId> | |
<artifactId>azure-functions-maven-plugin</artifactId> | |
<version>${azure.functions.maven.plugin.version}</version> | |
<configuration> | |
<!-- function app name --> | |
<appName>${functionAppName}</appName> | |
<!-- function app resource group --> | |
<resourceGroup>mamoun-java-11-windows</resourceGroup> | |
<!-- function app service plan name --> | |
<appServicePlanName>ASP-mamounjava11-80eb-windows</appServicePlanName> | |
<!-- function app region--> | |
<!-- refers https://github.com/microsoft/azure-maven-plugins/wiki/Azure-Functions:-Configuration-Details#supported-regions for all valid values --> | |
<region>westus</region> | |
<!-- function pricingTier, default to be consumption if not specified --> | |
<!-- refers https://github.com/microsoft/azure-maven-plugins/wiki/Azure-Functions:-Configuration-Details#supported-pricing-tiers for all valid values --> | |
<!-- <pricingTier></pricingTier> --> | |
<!-- Whether to disable application insights, default is false --> | |
<!-- refers https://github.com/microsoft/azure-maven-plugins/wiki/Azure-Functions:-Configuration-Details for all valid configurations for application insights--> | |
<!-- <disableAppInsights></disableAppInsights> --> | |
<runtime> | |
<!-- runtime os, could be windows, linux or docker--> | |
<os>windows</os> | |
<javaVersion>11</javaVersion> | |
<!-- for docker function, please set the following parameters --> | |
<!-- <image>[hub-user/]repo-name[:tag]</image> --> | |
<!-- <serverId></serverId> --> | |
<!-- <registryUrl></registryUrl> --> | |
</runtime> | |
<appSettings> | |
<property> | |
<name>FUNCTIONS_EXTENSION_VERSION</name> | |
<value>~3</value> | |
</property> | |
</appSettings> | |
</configuration> | |
<executions> | |
<execution> | |
<id>package-functions</id> | |
<goals> | |
<goal>package</goal> | |
</goals> | |
</execution> | |
</executions> | |
</plugin> | |
<plugin> | |
<groupId>org.apache.maven.plugins</groupId> | |
<artifactId>maven-resources-plugin</artifactId> | |
<version>3.1.0</version> | |
<executions> | |
<execution> | |
<id>copy-resources</id> | |
<phase>package</phase> | |
<goals> | |
<goal>copy-resources</goal> | |
</goals> | |
<configuration> | |
<overwrite>true</overwrite> | |
<outputDirectory>${stagingDirectory}</outputDirectory> | |
<resources> | |
<resource> | |
<directory>${project.basedir}</directory> | |
<includes> | |
<include>host.json</include> | |
<include>local.settings.json</include> | |
</includes> | |
</resource> | |
</resources> | |
</configuration> | |
</execution> | |
</executions> | |
</plugin> | |
<plugin> | |
<groupId>org.apache.maven.plugins</groupId> | |
<artifactId>maven-dependency-plugin</artifactId> | |
<version>3.1.1</version> | |
<executions> | |
<execution> | |
<id>copy-dependencies</id> | |
<phase>prepare-package</phase> | |
<goals> | |
<goal>copy-dependencies</goal> | |
</goals> | |
<configuration> | |
<outputDirectory>${stagingDirectory}/lib</outputDirectory> | |
<overWriteReleases>false</overWriteReleases> | |
<overWriteSnapshots>false</overWriteSnapshots> | |
<overWriteIfNewer>true</overWriteIfNewer> | |
<includeScope>runtime</includeScope> | |
<excludeArtifactIds>azure-functions-java-library</excludeArtifactIds> | |
</configuration> | |
</execution> | |
</executions> | |
</plugin> | |
<!--Remove obj folder generated by .NET SDK in maven clean--> | |
<plugin> | |
<artifactId>maven-clean-plugin</artifactId> | |
<version>3.1.0</version> | |
<configuration> | |
<filesets> | |
<fileset> | |
<directory>obj</directory> | |
</fileset> | |
</filesets> | |
</configuration> | |
</plugin> | |
</plugins> | |
</build> | |
</project> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment