2019-10-31 21:43:47 -04:00
|
|
|
<?xml version="1.0" encoding="UTF-8"?>
|
2021-05-06 07:44:43 -04:00
|
|
|
<project xmlns="http://maven.apache.org/POM/4.0.0"
|
2020-03-15 08:52:24 -04:00
|
|
|
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">
|
2019-10-31 21:43:47 -04:00
|
|
|
<modelVersion>4.0.0</modelVersion>
|
|
|
|
<artifactId>azure</artifactId>
|
|
|
|
<version>0.1</version>
|
|
|
|
<name>azure</name>
|
|
|
|
<packaging>war</packaging>
|
2019-12-05 09:56:52 -05:00
|
|
|
<description>Demo project for Spring Boot on Azure</description>
|
2019-10-31 21:43:47 -04:00
|
|
|
|
|
|
|
<parent>
|
|
|
|
<groupId>com.baeldung</groupId>
|
2019-12-05 09:56:52 -05:00
|
|
|
<artifactId>parent-boot-2</artifactId>
|
2019-10-31 21:43:47 -04:00
|
|
|
<version>0.0.1-SNAPSHOT</version>
|
|
|
|
<relativePath>../parent-boot-2</relativePath>
|
|
|
|
</parent>
|
|
|
|
|
|
|
|
<dependencies>
|
|
|
|
<dependency>
|
|
|
|
<groupId>org.springframework.boot</groupId>
|
|
|
|
<artifactId>spring-boot-starter-web</artifactId>
|
|
|
|
</dependency>
|
|
|
|
<dependency>
|
|
|
|
<groupId>org.springframework.boot</groupId>
|
|
|
|
<artifactId>spring-boot-starter-tomcat</artifactId>
|
|
|
|
<scope>provided</scope>
|
|
|
|
</dependency>
|
|
|
|
<dependency>
|
|
|
|
<groupId>org.springframework.boot</groupId>
|
|
|
|
<artifactId>spring-boot-starter-data-jpa</artifactId>
|
|
|
|
</dependency>
|
|
|
|
<dependency>
|
|
|
|
<groupId>com.h2database</groupId>
|
|
|
|
<artifactId>h2</artifactId>
|
|
|
|
<scope>runtime</scope>
|
|
|
|
</dependency>
|
|
|
|
<dependency>
|
2023-02-17 11:47:01 -05:00
|
|
|
<groupId>com.mysql</groupId>
|
|
|
|
<artifactId>mysql-connector-j</artifactId>
|
2019-10-31 21:43:47 -04:00
|
|
|
<scope>runtime</scope>
|
|
|
|
</dependency>
|
|
|
|
</dependencies>
|
|
|
|
|
|
|
|
<build>
|
|
|
|
<plugins>
|
|
|
|
<plugin>
|
|
|
|
<groupId>org.springframework.boot</groupId>
|
|
|
|
<artifactId>spring-boot-maven-plugin</artifactId>
|
|
|
|
</plugin>
|
|
|
|
<plugin>
|
|
|
|
<groupId>com.spotify</groupId>
|
|
|
|
<artifactId>docker-maven-plugin</artifactId>
|
|
|
|
<version>{docker-maven-plugin.version}</version>
|
|
|
|
<configuration>
|
|
|
|
<imageName>${docker.image.prefix}/${project.artifactId}</imageName>
|
|
|
|
<registryUrl>https://${docker.image.prefix}</registryUrl>
|
|
|
|
<serverId>${azure.containerRegistry}</serverId>
|
|
|
|
<dockerDirectory>docker</dockerDirectory>
|
|
|
|
<resources>
|
|
|
|
<resource>
|
|
|
|
<targetPath>/</targetPath>
|
|
|
|
<directory>${project.build.directory}</directory>
|
|
|
|
<include>${project.build.finalName}.jar</include>
|
|
|
|
</resource>
|
|
|
|
</resources>
|
|
|
|
</configuration>
|
|
|
|
</plugin>
|
|
|
|
<plugin>
|
|
|
|
<groupId>com.microsoft.azure</groupId>
|
|
|
|
<artifactId>azure-webapp-maven-plugin</artifactId>
|
|
|
|
<version>${azure-webapp-maven-plugin.version}</version>
|
|
|
|
<configuration>
|
|
|
|
<authentication>
|
|
|
|
<serverId>azure-auth</serverId>
|
|
|
|
</authentication>
|
|
|
|
<resourceGroup>baeldung-group</resourceGroup>
|
|
|
|
<appName>baeldung-webapp</appName>
|
|
|
|
<appServicePlanName>baeldung-plan</appServicePlanName>
|
|
|
|
<javaVersion>{java.version}</javaVersion>
|
|
|
|
<!--<javaWebContainer>tomcat 8.5</javaWebContainer> -->
|
|
|
|
<!--<region>japanwest</region> -->
|
|
|
|
<!--<containerSettings> -->
|
|
|
|
<!--<imageName>${docker.image.prefix}/${project.artifactId}</imageName> -->
|
|
|
|
<!--<registryUrl>https://${docker.image.prefix}</registryUrl> -->
|
|
|
|
<!--<serverId>${azure.containerRegistry}</serverId> -->
|
|
|
|
<!--</containerSettings> -->
|
|
|
|
<appSettings>
|
|
|
|
<property>
|
|
|
|
<name>spring.datasource.url</name>
|
|
|
|
<value>jdbc:h2:file:~/test</value>
|
|
|
|
<!--<value>jdbc:mysql://127.0.0.1:55738/localdb</value> -->
|
|
|
|
</property>
|
|
|
|
<property>
|
|
|
|
<name>spring.datasource.username</name>
|
|
|
|
<value>sa</value>
|
|
|
|
<!--<value>azure</value> -->
|
|
|
|
</property>
|
|
|
|
<property>
|
|
|
|
<name>spring.datasource.password</name>
|
|
|
|
<value></value>
|
|
|
|
<!--<value>replace-with-your-password</value> -->
|
|
|
|
</property>
|
|
|
|
</appSettings>
|
|
|
|
<!--<deploymentType>ftp</deploymentType> -->
|
|
|
|
<!--<resources> -->
|
|
|
|
<!--<resource> -->
|
|
|
|
<!--<directory>${project.basedir}/target</directory> -->
|
|
|
|
<!--<targetPath>webapps</targetPath> -->
|
|
|
|
<!--<includes> -->
|
|
|
|
<!--<include>*.war</include> -->
|
|
|
|
<!--</includes> -->
|
|
|
|
<!--</resource> -->
|
|
|
|
<!--</resources> -->
|
|
|
|
</configuration>
|
|
|
|
</plugin>
|
|
|
|
</plugins>
|
|
|
|
</build>
|
|
|
|
|
|
|
|
<properties>
|
|
|
|
<azure.containerRegistry>baeldungadr</azure.containerRegistry>
|
|
|
|
<docker.image.prefix>${azure.containerRegistry}.azurecr.io</docker.image.prefix>
|
|
|
|
<docker-maven-plugin.version>1.1.0</docker-maven-plugin.version>
|
|
|
|
<azure-webapp-maven-plugin.version>1.1.0</azure-webapp-maven-plugin.version>
|
2023-03-19 10:16:22 -04:00
|
|
|
<maven-war-plugin.version>3.3.2</maven-war-plugin.version>
|
2019-10-31 21:43:47 -04:00
|
|
|
</properties>
|
|
|
|
|
2021-05-06 07:44:43 -04:00
|
|
|
</project>
|