| <!-- | |
| ~ Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. | |
| ~ | |
| ~ Licensed under the Apache License, Version 2.0 (the "License"). | |
| ~ You may not use this file except in compliance with the License. | |
| ~ A copy of the License is located at | |
| ~ | |
| ~ http://aws.amazon.com/apache2.0 | |
| ~ | |
| ~ or in the "license" file accompanying this file. This file is distributed | |
| ~ on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either | |
| ~ express or implied. See the License for the specific language governing | |
| ~ permissions and limitations under the License. | |
| --> | |
| <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"> | |
| <modelVersion>4.0.0</modelVersion> | |
| <parent> | |
| <groupId>software.amazon.awssdk</groupId> | |
| <artifactId>aws-sdk-java-pom</artifactId> | |
| <version>2.24.3</version> | |
| <relativePath>../../pom.xml</relativePath> | |
| </parent> | |
| <artifactId>sdk-benchmarks</artifactId> | |
| <packaging>jar</packaging> | |
| <name>AWS Java SDK :: Test :: SDK Benchmarks</name> | |
| <description>Contains JMH benchmark code for the SDK</description> | |
| <properties> | |
| <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding> | |
| <!-- | |
| JMH version to use with this project. | |
| --> | |
| <jmh.version>1.29</jmh.version> | |
| <!-- | |
| Java source/target to use for compilation. | |
| --> | |
| <javac.target>1.8</javac.target> | |
| <!-- | |
| Name of the benchmark Uber-JAR to generate. | |
| --> | |
| <uberjar.name>benchmarks</uberjar.name> | |
| <sdk-v1.version>1.11.404</sdk-v1.version> | |
| <exec-maven-plugin.version>1.6.0</exec-maven-plugin.version> | |
| </properties> | |
| <dependencies> | |
| <dependency> | |
| <groupId>org.openjdk.jmh</groupId> | |
| <artifactId>jmh-core</artifactId> | |
| <version>${jmh.version}</version> | |
| </dependency> | |
| <dependency> | |
| <groupId>org.openjdk.jmh</groupId> | |
| <artifactId>jmh-generator-annprocess</artifactId> | |
| <version>${jmh.version}</version> | |
| <scope>provided</scope> | |
| </dependency> | |
| <dependency> | |
| <groupId>com.amazonaws</groupId> | |
| <artifactId>aws-java-sdk-core</artifactId> | |
| <version>${sdk-v1.version}</version> | |
| </dependency> | |
| <dependency> | |
| <groupId>com.amazonaws</groupId> | |
| <artifactId>aws-java-sdk-dynamodb</artifactId> | |
| <version>${sdk-v1.version}</version> | |
| </dependency> | |
| <dependency> | |
| <groupId>software.amazon.awssdk</groupId> | |
| <artifactId>dynamodb</artifactId> | |
| <version>${awsjavasdk.version}</version> | |
| </dependency> | |
| <dependency> | |
| <groupId>com.amazonaws</groupId> | |
| <artifactId>aws-java-sdk-ec2</artifactId> | |
| <version>${sdk-v1.version}</version> | |
| </dependency> | |
| <dependency> | |
| <groupId>software.amazon.awssdk</groupId> | |
| <artifactId>ec2</artifactId> | |
| <version>${awsjavasdk.version}</version> | |
| </dependency> | |
| <dependency> | |
| <groupId>software.amazon.awssdk</groupId> | |
| <artifactId>aws-query-protocol</artifactId> | |
| <version>${awsjavasdk.version}</version> | |
| </dependency> | |
| <dependency> | |
| <groupId>software.amazon.awssdk</groupId> | |
| <artifactId>aws-json-protocol</artifactId> | |
| <version>${awsjavasdk.version}</version> | |
| </dependency> | |
| <dependency> | |
| <groupId>software.amazon.awssdk</groupId> | |
| <artifactId>protocol-core</artifactId> | |
| <version>${awsjavasdk.version}</version> | |
| </dependency> | |
| <dependency> | |
| <groupId>software.amazon.awssdk</groupId> | |
| <artifactId>sdk-core</artifactId> | |
| <version>${awsjavasdk.version}</version> | |
| </dependency> | |
| <dependency> | |
| <groupId>software.amazon.awssdk</groupId> | |
| <artifactId>http-client-spi</artifactId> | |
| <version>${awsjavasdk.version}</version> | |
| </dependency> | |
| <dependency> | |
| <groupId>software.amazon.awssdk</groupId> | |
| <artifactId>url-connection-client</artifactId> | |
| <version>${awsjavasdk.version}</version> | |
| </dependency> | |
| <dependency> | |
| <groupId>software.amazon.awssdk</groupId> | |
| <artifactId>netty-nio-client</artifactId> | |
| <version>${awsjavasdk.version}</version> | |
| </dependency> | |
| <dependency> | |
| <groupId>software.amazon.awssdk</groupId> | |
| <artifactId>dynamodb-enhanced</artifactId> | |
| <version>${awsjavasdk.version}</version> | |
| </dependency> | |
| <dependency> | |
| <groupId>io.netty</groupId> | |
| <artifactId>netty-tcnative-boringssl-static</artifactId> | |
| <scope>compile</scope> | |
| </dependency> | |
| <dependency> | |
| <groupId>software.amazon.awssdk</groupId> | |
| <artifactId>regions</artifactId> | |
| <version>${awsjavasdk.version}</version> | |
| </dependency> | |
| <dependency> | |
| <groupId>software.amazon.awssdk</groupId> | |
| <artifactId>auth</artifactId> | |
| <version>${awsjavasdk.version}</version> | |
| </dependency> | |
| <dependency> | |
| <groupId>software.amazon.awssdk</groupId> | |
| <artifactId>apache-client</artifactId> | |
| <version>${awsjavasdk.version}</version> | |
| </dependency> | |
| <dependency> | |
| <groupId>software.amazon.awssdk</groupId> | |
| <artifactId>protocol-tests</artifactId> | |
| <version>${awsjavasdk.version}</version> | |
| <scope>compile</scope> | |
| </dependency> | |
| <dependency> | |
| <groupId>org.apache.logging.log4j</groupId> | |
| <artifactId>log4j-api</artifactId> | |
| <scope>compile</scope> | |
| </dependency> | |
| <dependency> | |
| <groupId>org.apache.logging.log4j</groupId> | |
| <artifactId>log4j-core</artifactId> | |
| <scope>compile</scope> | |
| </dependency> | |
| <dependency> | |
| <groupId>org.apache.logging.log4j</groupId> | |
| <artifactId>log4j-slf4j-impl</artifactId> | |
| <scope>compile</scope> | |
| </dependency> | |
| <dependency> | |
| <groupId>org.eclipse.jetty</groupId> | |
| <artifactId>jetty-servlet</artifactId> | |
| </dependency> | |
| <dependency> | |
| <groupId>org.eclipse.jetty</groupId> | |
| <artifactId>jetty-server</artifactId> | |
| </dependency> | |
| <dependency> | |
| <groupId>org.eclipse.jetty.http2</groupId> | |
| <artifactId>http2-server</artifactId> | |
| </dependency> | |
| <dependency> | |
| <groupId>org.eclipse.jetty</groupId> | |
| <artifactId>jetty-alpn-java-server</artifactId> | |
| </dependency> | |
| <dependency> | |
| <groupId>org.eclipse.jetty.http2</groupId> | |
| <artifactId>http2-hpack</artifactId> | |
| </dependency> | |
| <dependency> | |
| <groupId>software.amazon.awssdk</groupId> | |
| <artifactId>aws-crt-client</artifactId> | |
| <version>${awsjavasdk.version}</version> | |
| <scope>compile</scope> | |
| </dependency> | |
| <dependency> | |
| <groupId>commons-cli</groupId> | |
| <artifactId>commons-cli</artifactId> | |
| <scope>compile</scope> | |
| </dependency> | |
| </dependencies> | |
| <dependencyManagement> | |
| <dependencies> | |
| <dependency> | |
| <groupId>com.fasterxml.jackson.core</groupId> | |
| <artifactId>jackson-databind</artifactId> | |
| <version>${jackson.databind.version}</version> | |
| </dependency> | |
| <dependency> | |
| <groupId>com.fasterxml.jackson.core</groupId> | |
| <artifactId>jackson-core</artifactId> | |
| <version>${jackson.version}</version> | |
| </dependency> | |
| <dependency> | |
| <groupId>com.fasterxml.jackson.core</groupId> | |
| <artifactId>jackson-annotations</artifactId> | |
| <version>${jackson.version}</version> | |
| </dependency> | |
| <dependency> | |
| <groupId>software.amazon.awssdk</groupId> | |
| <artifactId>bom-internal</artifactId> | |
| <version>${awsjavasdk.version}</version> | |
| <type>pom</type> | |
| <scope>import</scope> | |
| </dependency> | |
| <dependency> | |
| <groupId>org.eclipse.jetty</groupId> | |
| <artifactId>jetty-bom</artifactId> | |
| <version>${jetty.version}</version> | |
| <type>pom</type> | |
| <scope>import</scope> | |
| </dependency> | |
| </dependencies> | |
| </dependencyManagement> | |
| <build> | |
| <resources> | |
| <resource> | |
| <directory>src/main/resources</directory> | |
| </resource> | |
| </resources> | |
| <pluginManagement> | |
| <plugins> | |
| <plugin> | |
| <groupId>org.apache.maven.plugins</groupId> | |
| <artifactId>maven-compiler-plugin</artifactId> | |
| <version>3.1</version> | |
| <!-- Override the configuration in the parent--> | |
| <configuration combine.self="override"> | |
| <compilerVersion>${javac.target}</compilerVersion> | |
| <source>${javac.target}</source> | |
| <target>${javac.target}</target> | |
| </configuration> | |
| <executions> | |
| <execution> | |
| <id>compile</id> | |
| <phase>none</phase> | |
| </execution> | |
| </executions> | |
| <inherited>false</inherited> | |
| </plugin> | |
| <plugin> | |
| <artifactId>maven-clean-plugin</artifactId> | |
| <version>3.1.0</version> | |
| </plugin> | |
| <plugin> | |
| <artifactId>maven-deploy-plugin</artifactId> | |
| <version>2.8.1</version> | |
| </plugin> | |
| <plugin> | |
| <artifactId>maven-install-plugin</artifactId> | |
| <version>2.5.1</version> | |
| </plugin> | |
| <plugin> | |
| <artifactId>maven-jar-plugin</artifactId> | |
| <version>2.4</version> | |
| </plugin> | |
| <plugin> | |
| <artifactId>maven-javadoc-plugin</artifactId> | |
| <version>2.9.1</version> | |
| </plugin> | |
| <plugin> | |
| <artifactId>maven-resources-plugin</artifactId> | |
| <version>2.6</version> | |
| </plugin> | |
| <plugin> | |
| <artifactId>maven-site-plugin</artifactId> | |
| <version>3.3</version> | |
| </plugin> | |
| <plugin> | |
| <artifactId>maven-source-plugin</artifactId> | |
| <version>2.2.1</version> | |
| </plugin> | |
| <plugin> | |
| <artifactId>maven-surefire-plugin</artifactId> | |
| <version>2.17</version> | |
| </plugin> | |
| </plugins> | |
| </pluginManagement> | |
| <plugins> | |
| <plugin> | |
| <groupId>org.apache.maven.plugins</groupId> | |
| <artifactId>maven-compiler-plugin</artifactId> | |
| </plugin> | |
| <plugin> | |
| <groupId>org.apache.maven.plugins</groupId> | |
| <artifactId>maven-shade-plugin</artifactId> | |
| <version>2.2</version> | |
| <executions> | |
| <execution> | |
| <phase>package</phase> | |
| <goals> | |
| <goal>shade</goal> | |
| </goals> | |
| <configuration> | |
| <finalName>${uberjar.name}</finalName> | |
| <createDependencyReducedPom>false</createDependencyReducedPom> | |
| <artifactSet> | |
| <includes> | |
| <include>*:*</include> | |
| </includes> | |
| </artifactSet> | |
| <transformers> | |
| <transformer | |
| implementation="org.apache.maven.plugins.shade.resource.ManifestResourceTransformer"> | |
| <manifestEntries> | |
| <Main-Class>org.openjdk.jmh.Main</Main-Class> | |
| </manifestEntries> | |
| </transformer> | |
| <!-- This is important to run h2 server --> | |
| <!-- https://github.com/jetty-project/embedded-jetty-live-war/blob/master/theserver/pom.xml --> | |
| <transformer implementation="org.apache.maven.plugins.shade.resource.ServicesResourceTransformer"/> | |
| </transformers> | |
| <filters> | |
| <filter> | |
| <!-- | |
| Shading signed JARs will fail without this. | |
| http://stackoverflow.com/questions/999489/invalid-signature-file-when-attempting-to-run-a-jar | |
| --> | |
| <artifact>*:*</artifact> | |
| <excludes> | |
| <exclude>META-INF/*.SF</exclude> | |
| <exclude>META-INF/*.DSA</exclude> | |
| <exclude>META-INF/*.RSA</exclude> | |
| </excludes> | |
| </filter> | |
| </filters> | |
| </configuration> | |
| </execution> | |
| </executions> | |
| </plugin> | |
| <plugin> | |
| <groupId>org.codehaus.mojo</groupId> | |
| <!-- Need to use exec not java see:http://mail.openjdk.java.net/pipermail/jmh-dev/2014-July/001192.html, https://stackoverflow.com/questions/15013651/using-maven-execexec-with-arguments --> | |
| <artifactId>exec-maven-plugin</artifactId> | |
| <version>${exec-maven-plugin.version}</version> | |
| <configuration> | |
| <executable>java</executable> | |
| <arguments> | |
| <argument>-classpath</argument> | |
| <classpath/> | |
| <argument>software.amazon.awssdk.benchmark.BenchmarkRunner</argument> | |
| <!-- Fail process on failed benchmarks --> | |
| <argument>-c</argument> | |
| </arguments> | |
| </configuration> | |
| </plugin> | |
| <plugin> | |
| <groupId>com.github.spotbugs</groupId> | |
| <artifactId>spotbugs-maven-plugin</artifactId> | |
| <configuration> | |
| <!-- Skipping spotbugs for the generated JMH classes--> | |
| <skip>true</skip> | |
| </configuration> | |
| </plugin> | |
| <plugin> | |
| <groupId>org.apache.maven.plugins</groupId> | |
| <artifactId>maven-dependency-plugin</artifactId> | |
| <executions> | |
| <execution> | |
| <goals> | |
| <goal>analyze-only</goal> | |
| </goals> | |
| </execution> | |
| </executions> | |
| <configuration> | |
| <!-- Skipping maven dependencies analysis to speed up the build --> | |
| <skip>true</skip> | |
| </configuration> | |
| </plugin> | |
| </plugins> | |
| </build> | |
| </project> |