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 <modelVersion>4.0.0</modelVersion> 21 <parent> 22 <groupId>software.amazon.awssdk</groupId> 23 <artifactId>aws-sdk-java-pom</artifactId> 24 <version>2.24.3</version> 25 </parent> 26 <artifactId>bundle-sdk</artifactId> 27 <packaging>jar</packaging> 28 29 <name>AWS Java SDK :: SDK Bundle</name> 30 <description>A single bundled dependency that includes all service and dependent JARs with third-party libraries 31 relocated to different namespaces. 32 </description> 33 <url>https://aws.amazon.com/sdkforjava</url> 34 35 <properties> 36 <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding> 37 <sonar.skip>true</sonar.skip> 38 </properties> 39 40 <dependencyManagement> 41 <dependencies> 42 <dependency> 43 <groupId>software.amazon.awssdk</groupId> 44 <artifactId>bom-internal</artifactId> 45 <version>${project.version}</version> 46 <type>pom</type> 47 <scope>import</scope> 48 </dependency> 49 </dependencies> 50 </dependencyManagement> 51 52 <dependencies> 53 <dependency> 54 <groupId>software.amazon.awssdk</groupId> 55 <artifactId>aws-sdk-java</artifactId> 56 <version>${awsjavasdk.version}</version> 57 <optional>true</optional> 58 </dependency> 59 <dependency> 60 <groupId>software.amazon.s3.accessgrants</groupId> 61 <artifactId>aws-s3-accessgrants-java-plugin</artifactId> 62 <version>${s3accessgrants.version}</version> 63 </dependency> 64 </dependencies> 65 66 <build> 67 <pluginManagement> 68 <plugins> 69 <plugin> 70 <groupId>org.apache.maven.plugins</groupId> 71 <artifactId>maven-shade-plugin</artifactId> 72 <version>3.5.0</version> 73 <configuration> 74 <artifactSet> 75 <includes> 76 <include>com.fasterxml.jackson.jr:*</include> 77 <include>io.netty:*</include> 78 <include>org.apache.httpcomponents:*</include> 79 <include>org.reactivestreams:*</include> 80 <include>org.slf4j:*</include> 81 <include>commons-codec:commons-codec</include> 82 <include>software.amazon.awssdk:*</include> 83 <include>software.amazon:*</include> 84 <include>software.amazon.s3.accessgrants:*</include> 85 <inlcude>com.github.ben-manes.caffeine:*</inlcude> 86 <include>commons-logging:*</include> 87 </includes> 88 </artifactSet> 89 <relocations> 90 <relocation> 91 <pattern>org.apache</pattern> 92 <shadedPattern>software.amazon.awssdk.thirdparty.org.apache</shadedPattern> 93 <excludes> 94 <exclude>org.apache.log4j.*</exclude> 95 </excludes> 96 </relocation> 97 <relocation> 98 <pattern>io.netty</pattern> 99 <shadedPattern>software.amazon.awssdk.thirdparty.io.netty</shadedPattern> 100 </relocation> 101 <relocation> 102 <pattern>org.slf4j</pattern> 103 <shadedPattern>software.amazon.awssdk.thirdparty.org.slf4j</shadedPattern> 104 </relocation> 105 </relocations> 106 <shadedArtifactAttached>false</shadedArtifactAttached> 107 <createDependencyReducedPom>true</createDependencyReducedPom> 108 <dependencyReducedPomLocation>${project.build.directory}/dependency-reduced-pom.xml 109 </dependencyReducedPomLocation> 110 <promoteTransitiveDependencies>true</promoteTransitiveDependencies> 111 </configuration> 112 <executions> 113 <execution> 114 <phase>package</phase> 115 <goals> 116 <goal>shade</goal> 117 </goals> 118 </execution> 119 </executions> 120 </plugin> 121 </plugins> 122 </pluginManagement> 123 124 </build> 125 126 <profiles> 127 <profile> 128 <id>publishing</id> 129 <build> 130 <plugins> 131 <plugin> 132 <groupId>org.apache.maven.plugins</groupId> 133 <artifactId>maven-shade-plugin</artifactId> 134 <configuration> 135 <createSourcesJar>true</createSourcesJar> 136 </configuration> 137 </plugin> 138 <plugin> 139 <artifactId>maven-javadoc-plugin</artifactId> 140 <executions> 141 <execution> 142 <id>javadoc-jar</id> 143 <phase>package</phase> 144 <goals> 145 <goal>jar</goal> 146 </goals> 147 </execution> 148 </executions> 149 <configuration> 150 <sourcepath>${basedir}/../core/profiles/src/main/java/software/amazon/awssdk/profiles;${basedir}/../core/sdk-core/src/main/java/software/amazon/awssdk/core</sourcepath> 151 <failOnError>false</failOnError> 152 </configuration> 153 </plugin> 154 </plugins> 155 </build> 156 </profile> 157 </profiles> 158 159</project> 160