2019-12-05 09:56:52 -05:00
|
|
|
<?xml version="1.0" encoding="UTF-8"?>
|
2021-05-17 10:53:25 -04:00
|
|
|
<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">
|
2019-10-17 12:17:31 -04:00
|
|
|
<modelVersion>4.0.0</modelVersion>
|
|
|
|
<artifactId>spring-resttemplate</artifactId>
|
|
|
|
<version>0.1-SNAPSHOT</version>
|
|
|
|
<name>spring-resttemplate</name>
|
|
|
|
<packaging>war</packaging>
|
|
|
|
|
|
|
|
<parent>
|
|
|
|
<groupId>com.baeldung</groupId>
|
2024-01-23 10:54:18 -05:00
|
|
|
<artifactId>parent-boot-3</artifactId>
|
2019-10-17 12:17:31 -04:00
|
|
|
<version>0.0.1-SNAPSHOT</version>
|
2024-01-23 10:54:18 -05:00
|
|
|
<relativePath>../../parent-boot-3</relativePath>
|
2019-10-17 12:17:31 -04:00
|
|
|
</parent>
|
|
|
|
|
|
|
|
<dependencies>
|
|
|
|
<!-- Spring Boot Dependencies -->
|
|
|
|
<dependency>
|
|
|
|
<groupId>org.springframework.boot</groupId>
|
|
|
|
<artifactId>spring-boot-starter-web</artifactId>
|
|
|
|
</dependency>
|
|
|
|
<dependency>
|
|
|
|
<groupId>org.springframework.boot</groupId>
|
2024-01-23 10:54:18 -05:00
|
|
|
<artifactId>spring-boot-starter-actuator</artifactId>
|
2019-10-17 12:17:31 -04:00
|
|
|
</dependency>
|
|
|
|
<dependency>
|
|
|
|
<groupId>com.thoughtworks.xstream</groupId>
|
|
|
|
<artifactId>xstream</artifactId>
|
|
|
|
<version>${xstream.version}</version>
|
|
|
|
</dependency>
|
|
|
|
<!-- util -->
|
|
|
|
<dependency>
|
|
|
|
<groupId>com.google.guava</groupId>
|
|
|
|
<artifactId>guava</artifactId>
|
|
|
|
<version>${guava.version}</version>
|
|
|
|
</dependency>
|
|
|
|
<dependency>
|
|
|
|
<groupId>org.apache.commons</groupId>
|
|
|
|
<artifactId>commons-lang3</artifactId>
|
|
|
|
<version>${commons-lang3.version}</version>
|
|
|
|
</dependency>
|
|
|
|
<!-- okhttp -->
|
|
|
|
<dependency>
|
|
|
|
<groupId>com.squareup.okhttp3</groupId>
|
|
|
|
<artifactId>okhttp</artifactId>
|
|
|
|
<version>${com.squareup.okhttp3.version}</version>
|
|
|
|
</dependency>
|
|
|
|
<!-- test scoped -->
|
|
|
|
<dependency>
|
2024-01-23 10:54:18 -05:00
|
|
|
<groupId>org.springframework.boot</groupId>
|
|
|
|
<artifactId>spring-boot-starter-test</artifactId>
|
2022-05-08 07:06:25 -04:00
|
|
|
<scope>test</scope>
|
2024-01-23 10:54:18 -05:00
|
|
|
<exclusions>
|
|
|
|
<exclusion>
|
|
|
|
<groupId>org.junit.vintage</groupId>
|
|
|
|
<artifactId>junit-vintage-engine</artifactId>
|
|
|
|
</exclusion>
|
|
|
|
</exclusions>
|
2022-03-29 11:06:29 -04:00
|
|
|
</dependency>
|
2019-10-17 12:17:31 -04:00
|
|
|
</dependencies>
|
|
|
|
|
|
|
|
<build>
|
|
|
|
<finalName>spring-resttemplate</finalName>
|
|
|
|
<resources>
|
|
|
|
<resource>
|
|
|
|
<directory>src/main/resources</directory>
|
|
|
|
<filtering>true</filtering>
|
|
|
|
</resource>
|
|
|
|
</resources>
|
|
|
|
<plugins>
|
2024-01-23 10:54:18 -05:00
|
|
|
<plugin>
|
|
|
|
<groupId>org.springframework.boot</groupId>
|
|
|
|
<artifactId>spring-boot-maven-plugin</artifactId>
|
|
|
|
</plugin>
|
2019-10-17 12:17:31 -04:00
|
|
|
<plugin>
|
|
|
|
<groupId>org.apache.maven.plugins</groupId>
|
|
|
|
<artifactId>maven-compiler-plugin</artifactId>
|
|
|
|
</plugin>
|
|
|
|
<plugin>
|
|
|
|
<groupId>org.apache.maven.plugins</groupId>
|
|
|
|
<artifactId>maven-war-plugin</artifactId>
|
|
|
|
</plugin>
|
|
|
|
<plugin>
|
|
|
|
<groupId>org.apache.maven.plugins</groupId>
|
|
|
|
<artifactId>maven-surefire-plugin</artifactId>
|
|
|
|
<configuration>
|
|
|
|
<forkCount>3</forkCount>
|
|
|
|
<reuseForks>true</reuseForks>
|
|
|
|
<excludes>
|
|
|
|
<exclude>**/*IntegrationTest.java</exclude>
|
|
|
|
<exclude>**/*IntTest.java</exclude>
|
|
|
|
<exclude>**/*LongRunningUnitTest.java</exclude>
|
|
|
|
<exclude>**/*ManualTest.java</exclude>
|
|
|
|
<exclude>**/JdbcTest.java</exclude>
|
|
|
|
<exclude>**/*LiveTest.java</exclude>
|
|
|
|
</excludes>
|
|
|
|
</configuration>
|
|
|
|
</plugin>
|
|
|
|
<plugin>
|
|
|
|
<groupId>org.codehaus.cargo</groupId>
|
|
|
|
<artifactId>cargo-maven2-plugin</artifactId>
|
|
|
|
<version>${cargo-maven2-plugin.version}</version>
|
|
|
|
<configuration>
|
2021-02-02 14:42:29 -05:00
|
|
|
<wait>true</wait>
|
2019-10-17 12:17:31 -04:00
|
|
|
<container>
|
|
|
|
<containerId>tomcat8x</containerId>
|
|
|
|
<type>embedded</type>
|
|
|
|
<systemProperties>
|
|
|
|
<!-- <provPersistenceTarget>cargo</provPersistenceTarget> -->
|
|
|
|
</systemProperties>
|
|
|
|
</container>
|
|
|
|
<configuration>
|
|
|
|
<properties>
|
|
|
|
<cargo.servlet.port>8082</cargo.servlet.port>
|
|
|
|
</properties>
|
|
|
|
</configuration>
|
|
|
|
</configuration>
|
|
|
|
</plugin>
|
|
|
|
</plugins>
|
|
|
|
</build>
|
|
|
|
|
|
|
|
<profiles>
|
|
|
|
<profile>
|
|
|
|
<id>integration</id>
|
|
|
|
<build>
|
|
|
|
<plugins>
|
|
|
|
<plugin>
|
|
|
|
<groupId>org.apache.maven.plugins</groupId>
|
|
|
|
<artifactId>maven-surefire-plugin</artifactId>
|
|
|
|
<executions>
|
|
|
|
<execution>
|
|
|
|
<phase>integration-test</phase>
|
|
|
|
<goals>
|
|
|
|
<goal>test</goal>
|
|
|
|
</goals>
|
|
|
|
<configuration>
|
|
|
|
<excludes>
|
|
|
|
<exclude>none</exclude>
|
|
|
|
</excludes>
|
|
|
|
<includes>
|
|
|
|
<include>**/*IntegrationTest.java</include>
|
|
|
|
<include>**/*IntTest.java</include>
|
|
|
|
</includes>
|
|
|
|
</configuration>
|
|
|
|
</execution>
|
|
|
|
</executions>
|
|
|
|
</plugin>
|
|
|
|
</plugins>
|
|
|
|
</build>
|
|
|
|
</profile>
|
|
|
|
<profile>
|
|
|
|
<id>live</id>
|
|
|
|
<build>
|
|
|
|
<plugins>
|
|
|
|
<plugin>
|
|
|
|
<groupId>org.codehaus.cargo</groupId>
|
|
|
|
<artifactId>cargo-maven2-plugin</artifactId>
|
|
|
|
<executions>
|
|
|
|
<execution>
|
|
|
|
<id>start-server</id>
|
|
|
|
<phase>pre-integration-test</phase>
|
|
|
|
<goals>
|
|
|
|
<goal>start</goal>
|
|
|
|
</goals>
|
|
|
|
</execution>
|
|
|
|
<execution>
|
|
|
|
<id>stop-server</id>
|
|
|
|
<phase>post-integration-test</phase>
|
|
|
|
<goals>
|
|
|
|
<goal>stop</goal>
|
|
|
|
</goals>
|
|
|
|
</execution>
|
|
|
|
</executions>
|
|
|
|
</plugin>
|
|
|
|
<plugin>
|
|
|
|
<groupId>org.apache.maven.plugins</groupId>
|
|
|
|
<artifactId>maven-surefire-plugin</artifactId>
|
|
|
|
<executions>
|
|
|
|
<execution>
|
|
|
|
<phase>integration-test</phase>
|
|
|
|
<goals>
|
|
|
|
<goal>test</goal>
|
|
|
|
</goals>
|
|
|
|
<configuration>
|
|
|
|
<excludes>
|
|
|
|
<exclude>none</exclude>
|
|
|
|
</excludes>
|
|
|
|
<includes>
|
|
|
|
<include>**/*LiveTest.java</include>
|
|
|
|
</includes>
|
|
|
|
<systemPropertyVariables>
|
|
|
|
<webTarget>cargo</webTarget>
|
|
|
|
</systemPropertyVariables>
|
|
|
|
</configuration>
|
|
|
|
</execution>
|
|
|
|
</executions>
|
|
|
|
</plugin>
|
|
|
|
</plugins>
|
|
|
|
</build>
|
|
|
|
</profile>
|
|
|
|
</profiles>
|
|
|
|
|
|
|
|
<properties>
|
2024-01-23 10:54:18 -05:00
|
|
|
<xstream.version>1.4.20</xstream.version>
|
2019-10-17 12:17:31 -04:00
|
|
|
<!-- Maven plugins -->
|
2021-02-02 14:42:29 -05:00
|
|
|
<cargo-maven2-plugin.version>1.6.1</cargo-maven2-plugin.version>
|
2019-10-17 12:17:31 -04:00
|
|
|
<findbugs-maven-plugin.version>3.0.4</findbugs-maven-plugin.version>
|
|
|
|
<!-- okhttp -->
|
2023-11-19 13:43:50 -05:00
|
|
|
<com.squareup.okhttp3.version>4.12.0</com.squareup.okhttp3.version>
|
2019-10-17 12:17:31 -04:00
|
|
|
</properties>
|
|
|
|
|
2021-05-17 10:53:25 -04:00
|
|
|
</project>
|