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>sdk-native-image-test</artifactId> 29 <name>AWS Java SDK :: Test :: Native Image Test</name> 30 <description>Tests GraalVM native images using AWS SDK for 2.x.</description> 31 32 <properties> 33 <maven.compiler.plugin.version>3.6.1</maven.compiler.plugin.version> 34 <exec-maven-plugin.version>1.6.0</exec-maven-plugin.version> 35 <slf4j.version>1.7.30</slf4j.version> 36 <graalvm.native.maven.plugin.version>0.9.6</graalvm.native.maven.plugin.version> 37 </properties> 38 39 <dependencies> 40 <dependency> 41 <groupId>software.amazon.awssdk</groupId> 42 <artifactId>s3</artifactId> 43 <version>${awsjavasdk.version}</version> 44 <exclusions> 45 <exclusion> 46 <groupId>commons-logging</groupId> 47 <artifactId>commons-logging</artifactId> 48 </exclusion> 49 </exclusions> 50 </dependency> 51 52 <dependency> 53 <groupId>software.amazon.awssdk</groupId> 54 <artifactId>dynamodb-enhanced</artifactId> 55 <version>${awsjavasdk.version}</version> 56 </dependency> 57 58 <dependency> 59 <groupId>software.amazon.awssdk</groupId> 60 <artifactId>url-connection-client</artifactId> 61 <version>${awsjavasdk.version}</version> 62 </dependency> 63 64 <dependency> 65 <groupId>software.amazon.awssdk</groupId> 66 <artifactId>apache-client</artifactId> 67 <version>${awsjavasdk.version}</version> 68 </dependency> 69 70 71 <dependency> 72 <groupId>org.slf4j</groupId> 73 <artifactId>slf4j-api</artifactId> 74 <version>${slf4j.version}</version> 75 </dependency> 76 77 <dependency> 78 <groupId>org.slf4j</groupId> 79 <artifactId>slf4j-simple</artifactId> 80 <version>${slf4j.version}</version> 81 </dependency> 82 83 <!-- Needed to adapt Apache Commons Logging used by Apache HTTP Client to Slf4j to avoid 84 ClassNotFoundException: org.apache.commons.logging.impl.LogFactoryImpl during runtime --> 85 <dependency> 86 <groupId>org.slf4j</groupId> 87 <artifactId>jcl-over-slf4j</artifactId> 88 <version>${slf4j.version}</version> 89 </dependency> 90 </dependencies> 91 92 <build> 93 <plugins> 94 <plugin> 95 <groupId>org.apache.maven.plugins</groupId> 96 <artifactId>maven-compiler-plugin</artifactId> 97 <version>${maven.compiler.plugin.version}</version> 98 </plugin> 99 <plugin> 100 <groupId>com.github.spotbugs</groupId> 101 <artifactId>spotbugs-maven-plugin</artifactId> 102 <configuration> 103 <!-- Skipping spotbugs for the generated JMH classes--> 104 <skip>true</skip> 105 </configuration> 106 </plugin> 107 <plugin> 108 <groupId>org.apache.maven.plugins</groupId> 109 <artifactId>maven-dependency-plugin</artifactId> 110 <executions> 111 <execution> 112 <goals> 113 <goal>analyze-only</goal> 114 </goals> 115 </execution> 116 </executions> 117 <configuration> 118 <!-- Skipping maven dependencies analysis to speed up the build --> 119 <skip>true</skip> 120 </configuration> 121 </plugin> 122 </plugins> 123 </build> 124 125 <profiles> 126 <profile> 127 <id>native-image</id> 128 <build> 129 <plugins> 130 <plugin> 131 <groupId>org.graalvm.buildtools</groupId> 132 <artifactId>native-maven-plugin</artifactId> 133 <version>${graalvm.native.maven.plugin.version}</version> 134 <executions> 135 <execution> 136 <id>build-native</id> 137 <goals> 138 <goal>build</goal> 139 </goals> 140 <phase>package</phase> 141 </execution> 142 </executions> 143 <configuration> 144 <imageName>sdk-native-image-test</imageName> 145 <mainClass>software.amazon.awssdk.nativeimagetest.App</mainClass> 146 <buildArgs combine.children="append"> 147 <!-- BouncyCastleAlpn issue tracked in https://github.com/netty/netty/issues/11369 --> 148 <buildArgs> 149 --verbose 150 --no-fallback 151 --initialize-at-build-time=org.slf4j 152 --initialize-at-run-time=io.netty.handler.ssl.BouncyCastleAlpnSslUtils 153 </buildArgs> 154 </buildArgs> 155 </configuration> 156 </plugin> 157 </plugins> 158 </build> 159 </profile> 160 </profiles> 161</project> 162