1<?xml version="1.0" encoding="UTF-8"?> 2<!-- 3 ~ Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. 4 ~ 5 ~ Licensed under the Apache License, Version 2.0 (the "License"). 6 ~ You may not use this file except in compliance with the License. 7 ~ A copy of the License is located at 8 ~ 9 ~ http://aws.amazon.com/apache2.0 10 ~ 11 ~ or in the "license" file accompanying this file. This file is distributed 12 ~ on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either 13 ~ express or implied. See the License for the specific language governing 14 ~ permissions and limitations under the License. 15 --> 16 17<project xmlns="http://maven.apache.org/POM/4.0.0" 18 xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" 19 xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> 20 <parent> 21 <artifactId>aws-sdk-java-pom</artifactId> 22 <groupId>software.amazon.awssdk</groupId> 23 <version>2.24.3</version> 24 <relativePath>../../pom.xml</relativePath> 25 </parent> 26 <modelVersion>4.0.0</modelVersion> 27 28 <artifactId>module-path-tests</artifactId> 29 30 <name>AWS Java SDK :: Test :: Module Path Tests</name> 31 <description>A set of tests to run v2 in module path with Java 9+.</description> 32 <url>https://aws.amazon.com/sdkforjava</url> 33 34 <dependencyManagement> 35 <dependencies> 36 <dependency> 37 <groupId>software.amazon.awssdk</groupId> 38 <artifactId>bom-internal</artifactId> 39 <version>${project.version}</version> 40 <type>pom</type> 41 <scope>import</scope> 42 </dependency> 43 </dependencies> 44 </dependencyManagement> 45 46 <dependencies> 47 <dependency> 48 <groupId>software.amazon.awssdk</groupId> 49 <artifactId>s3</artifactId> 50 <version>${awsjavasdk.version}</version> 51 </dependency> 52 <dependency> 53 <groupId>software.amazon.awssdk</groupId> 54 <artifactId>protocol-tests</artifactId> 55 <version>${awsjavasdk.version}</version> 56 </dependency> 57 <dependency> 58 <groupId>software.amazon.awssdk</groupId> 59 <artifactId>apache-client</artifactId> 60 <version>${awsjavasdk.version}</version> 61 </dependency> 62 <dependency> 63 <groupId>software.amazon.awssdk</groupId> 64 <artifactId>netty-nio-client</artifactId> 65 <version>${awsjavasdk.version}</version> 66 </dependency> 67 <dependency> 68 <groupId>software.amazon.awssdk</groupId> 69 <artifactId>url-connection-client</artifactId> 70 <version>${awsjavasdk.version}</version> 71 </dependency> 72 <dependency> 73 <groupId>org.slf4j</groupId> 74 <artifactId>slf4j-simple</artifactId> 75 <scope>compile</scope> 76 </dependency> 77 <dependency> 78 <groupId>software.amazon.awssdk</groupId> 79 <artifactId>service-test-utils</artifactId> 80 <version>${awsjavasdk.version}</version> 81 <scope>compile</scope> 82 </dependency> 83 <dependency> 84 <groupId>org.hamcrest</groupId> 85 <artifactId>hamcrest-all</artifactId> 86 <version>${hamcrest.version}</version> 87 <scope>compile</scope> 88 </dependency> 89 </dependencies> 90 91 <profiles> 92 <!-- Skip module-info.java on Java 8 --> 93 <profile> 94 <id>java8</id> 95 <activation> 96 <jdk>[1.8,9)</jdk> 97 </activation> 98 <build> 99 <plugins> 100 <!-- Don't compile module-info.java, see java 9 profile --> 101 <plugin> 102 <groupId>org.apache.maven.plugins</groupId> 103 <artifactId>maven-compiler-plugin</artifactId> 104 <configuration> 105 <excludes> 106 <exclude>module-info.java</exclude> 107 </excludes> 108 </configuration> 109 </plugin> 110 <!-- Disable spotbugs speed up the build. --> 111 <plugin> 112 <groupId>com.github.spotbugs</groupId> 113 <artifactId>spotbugs-maven-plugin</artifactId> 114 <configuration> 115 <skip>true</skip> 116 </configuration> 117 </plugin> 118 <!-- Skip because dependency analysis is on class path and does not apply on module path. --> 119 <plugin> 120 <groupId>org.apache.maven.plugins</groupId> 121 <artifactId>maven-dependency-plugin</artifactId> 122 <configuration> 123 <skip>true</skip> 124 </configuration> 125 </plugin> 126 </plugins> 127 </build> 128 </profile> 129 <profile> 130 <id>java9plus</id> 131 <activation> 132 <jdk>[9,)</jdk> 133 </activation> 134 <build> 135 <plugins> 136 <plugin> 137 <groupId>org.apache.maven.plugins</groupId> 138 <artifactId>maven-compiler-plugin</artifactId> 139 <executions> 140 <execution> 141 <id>default-compile</id> 142 <configuration> 143 <source>9</source> 144 <release>9</release> 145 </configuration> 146 </execution> 147 </executions> 148 <configuration> 149 <jdkToolchain> 150 <version>[9,)</version> 151 </jdkToolchain> 152 <release>9</release> 153 </configuration> 154 </plugin> 155 <plugin> 156 <groupId>org.apache.maven.plugins</groupId> 157 <artifactId>maven-surefire-plugin</artifactId> 158 </plugin> 159 <!-- Disable spotbugs speed up the build. --> 160 <plugin> 161 <groupId>com.github.spotbugs</groupId> 162 <artifactId>spotbugs-maven-plugin</artifactId> 163 <configuration> 164 <skip>true</skip> 165 </configuration> 166 </plugin> 167 <!-- Skip because dependency analysis is on class path and does not apply on module path. --> 168 <plugin> 169 <groupId>org.apache.maven.plugins</groupId> 170 <artifactId>maven-dependency-plugin</artifactId> 171 <configuration> 172 <skip>true</skip> 173 </configuration> 174 </plugin> 175 </plugins> 176 </build> 177 </profile> 178 <profile> 179 <id>mock-tests</id> 180 <build> 181 <plugins> 182 <plugin> 183 <groupId>org.codehaus.mojo</groupId> 184 <!-- https://www.mojohaus.org/exec-maven-plugin/examples/example-exec-for-java-programs.html --> 185 <artifactId>exec-maven-plugin</artifactId> 186 <version>${exec-maven-plugin.version}</version> 187 <configuration> 188 <executable>java</executable> 189 <arguments> 190 <argument>--module-path</argument> 191 <modulepath/> 192 <argument>--module</argument> 193 <argument>software.amazon.awssdk.modulepath.tests/software.amazon.awssdk.modulepath.tests.MockTestsRunner 194 </argument> 195 </arguments> 196 </configuration> 197 </plugin> 198 </plugins> 199 </build> 200 </profile> 201 202 <profile> 203 <id>integ-tests</id> 204 <build> 205 <plugins> 206 <plugin> 207 <groupId>org.codehaus.mojo</groupId> 208 <!-- https://www.mojohaus.org/exec-maven-plugin/examples/example-exec-for-java-programs.html --> 209 <artifactId>exec-maven-plugin</artifactId> 210 <version>${exec-maven-plugin.version}</version> 211 <configuration> 212 <executable>java</executable> 213 <arguments> 214 <argument>--module-path</argument> 215 <modulepath/> 216 <argument>--module</argument> 217 <argument>software.amazon.awssdk.modulepath.tests/software.amazon.awssdk.modulepath.tests.IntegTestsRunner 218 </argument> 219 </arguments> 220 </configuration> 221 </plugin> 222 </plugins> 223 </build> 224 </profile> 225 </profiles> 226</project> 227