|
| 1 | +<?xml version="1.0" encoding="UTF-8"?> |
| 2 | +<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" |
| 3 | + xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> |
| 4 | + <modelVersion>4.0.0</modelVersion> |
| 5 | + |
| 6 | + <artifactId>springboot-3-appsdirectory-apps-it</artifactId> |
| 7 | + <version>1.0.0.Final</version> |
| 8 | + <packaging>jar</packaging> |
| 9 | + |
| 10 | + <parent> |
| 11 | + <groupId>org.springframework.boot</groupId> |
| 12 | + <artifactId>spring-boot-starter-parent</artifactId> |
| 13 | + <version>3.1.3</version> |
| 14 | + <relativePath /> <!-- lookup parent from repository --> |
| 15 | + </parent> |
| 16 | + |
| 17 | + <properties> |
| 18 | + <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding> |
| 19 | + <project.reporting.outputEncoding>UTF-8</project.reporting.outputEncoding> |
| 20 | + <maven.compiler.source>17</maven.compiler.source> |
| 21 | + <maven.compiler.target>17</maven.compiler.target> |
| 22 | + </properties> |
| 23 | + |
| 24 | + <dependencies> |
| 25 | + <dependency> |
| 26 | + <groupId>org.springframework.boot</groupId> |
| 27 | + <artifactId>spring-boot-starter-web</artifactId> |
| 28 | + </dependency> |
| 29 | + <dependency> |
| 30 | + <groupId>org.springframework.boot</groupId> |
| 31 | + <artifactId>spring-boot-starter-test</artifactId> |
| 32 | + <scope>test</scope> |
| 33 | + </dependency> |
| 34 | + <dependency> |
| 35 | + <groupId>junit</groupId> |
| 36 | + <artifactId>junit</artifactId> |
| 37 | + <version>4.13.2</version> |
| 38 | + <scope>test</scope> |
| 39 | + </dependency> |
| 40 | + <!-- Support for JDK 9 and above--> |
| 41 | + <dependency> |
| 42 | + <groupId>javax.xml.bind</groupId> |
| 43 | + <artifactId>jaxb-api</artifactId> |
| 44 | + <version>2.3.1</version> |
| 45 | + <scope>provided</scope> |
| 46 | + </dependency> |
| 47 | + <dependency> |
| 48 | + <groupId>com.sun.xml.bind</groupId> |
| 49 | + <artifactId>jaxb-core</artifactId> |
| 50 | + <version>2.3.0.1</version> |
| 51 | + <scope>provided</scope> |
| 52 | + </dependency> |
| 53 | + <dependency> |
| 54 | + <groupId>javax.activation</groupId> |
| 55 | + <artifactId>activation</artifactId> |
| 56 | + <version>1.1.1</version> |
| 57 | + <scope>provided</scope> |
| 58 | + </dependency> |
| 59 | + </dependencies> |
| 60 | + |
| 61 | + <build> |
| 62 | + <plugins> |
| 63 | + <plugin> |
| 64 | + <groupId>org.springframework.boot</groupId> |
| 65 | + <artifactId>spring-boot-maven-plugin</artifactId> |
| 66 | + <!-- Test support for classifier configuration parameter --> |
| 67 | + <configuration> |
| 68 | + <classifier>exec</classifier> |
| 69 | + </configuration> |
| 70 | + </plugin> |
| 71 | + |
| 72 | + <plugin> |
| 73 | + <groupId>io.openliberty.tools</groupId> |
| 74 | + <artifactId>liberty-maven-plugin</artifactId> |
| 75 | + <version>@pom.version@</version> |
| 76 | + |
| 77 | + <!-- Specify configuration, executions for liberty-maven-plugin --> |
| 78 | + <configuration> |
| 79 | + <serverName>test</serverName> |
| 80 | + <serverXmlFile>src/test/resources/server.xml</serverXmlFile> |
| 81 | + <runtimeArtifact> |
| 82 | + <groupId>${runtimeGroupId}</groupId> |
| 83 | + <artifactId>${runtimeArtifactId}</artifactId> |
| 84 | + <version>23.0.0.9</version> |
| 85 | + <type>zip</type> |
| 86 | + </runtimeArtifact> |
| 87 | + <appsDirectory>apps</appsDirectory> |
| 88 | + <deployPackages>spring-boot-project</deployPackages> |
| 89 | + </configuration> |
| 90 | + |
| 91 | + <executions> |
| 92 | + <execution> |
| 93 | + <id>stop-server-before-clean</id> |
| 94 | + <phase>pre-clean</phase> |
| 95 | + <goals> |
| 96 | + <goal>stop</goal> |
| 97 | + </goals> |
| 98 | + </execution> |
| 99 | + <execution> |
| 100 | + <id>create-server</id> |
| 101 | + <phase>prepare-package</phase> |
| 102 | + <goals> |
| 103 | + <goal>install-server</goal> |
| 104 | + <goal>create</goal> |
| 105 | + <goal>install-feature</goal> |
| 106 | + </goals> |
| 107 | + </execution> |
| 108 | + <execution> |
| 109 | + <id>install-apps</id> |
| 110 | + <phase>package</phase> |
| 111 | + <goals> |
| 112 | + <goal>deploy</goal> |
| 113 | + </goals> |
| 114 | + </execution> |
| 115 | + <execution> |
| 116 | + <id>test-start-server</id> |
| 117 | + <phase>pre-integration-test</phase> |
| 118 | + <goals> |
| 119 | + <goal>test-start</goal> |
| 120 | + </goals> |
| 121 | + </execution> |
| 122 | + <execution> |
| 123 | + <id>test-stop-server</id> |
| 124 | + <phase>post-integration-test</phase> |
| 125 | + <goals> |
| 126 | + <goal>test-stop</goal> |
| 127 | + </goals> |
| 128 | + </execution> |
| 129 | + </executions> |
| 130 | + </plugin> |
| 131 | + |
| 132 | + <plugin> |
| 133 | + <artifactId>maven-failsafe-plugin</artifactId> |
| 134 | + <version>3.1.2</version> |
| 135 | + <configuration> |
| 136 | + <runOrder>alphabetical</runOrder> |
| 137 | + </configuration> |
| 138 | + <executions> |
| 139 | + <execution> |
| 140 | + <id>default-integration-test</id> |
| 141 | + <phase>integration-test</phase> |
| 142 | + <goals> |
| 143 | + <goal>integration-test</goal> |
| 144 | + </goals> |
| 145 | + </execution> |
| 146 | + <execution> |
| 147 | + <id>default-verify</id> |
| 148 | + <phase>verify</phase> |
| 149 | + <goals> |
| 150 | + <goal>verify</goal> |
| 151 | + </goals> |
| 152 | + </execution> |
| 153 | + </executions> |
| 154 | + </plugin> |
| 155 | + </plugins> |
| 156 | + </build> |
| 157 | + |
| 158 | +</project> |
0 commit comments