annotate jmh-archetypes/jmh-java-benchmark-archetype/src/main/resources/archetype-resources/pom.xml @ 1465:99d7b73cf1e3

7902450: perfasm should provide a way to merge all hot regions from the same method Reviewed-by: shade, ecaspole
author skuksenko
date Fri, 17 May 2019 10:44:26 -0700
parents 5c8f74626ab2
children
rev   line source
shade@16 1 <!--
shade@1045 2 Copyright (c) 2014, Oracle America, Inc.
shade@1045 3 All rights reserved.
shade@16 4
shade@1045 5 Redistribution and use in source and binary forms, with or without
shade@1045 6 modification, are permitted provided that the following conditions are met:
shade@16 7
shade@1045 8 * Redistributions of source code must retain the above copyright notice,
shade@1045 9 this list of conditions and the following disclaimer.
shade@16 10
shade@1045 11 * Redistributions in binary form must reproduce the above copyright
shade@1045 12 notice, this list of conditions and the following disclaimer in the
shade@1045 13 documentation and/or other materials provided with the distribution.
shade@16 14
shade@1045 15 * Neither the name of Oracle nor the names of its contributors may be used
shade@1045 16 to endorse or promote products derived from this software without
shade@1045 17 specific prior written permission.
shade@1045 18
shade@1045 19 THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
shade@1045 20 AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
shade@1045 21 IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
shade@1045 22 ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE
shade@1045 23 LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
shade@1045 24 CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
shade@1045 25 SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
shade@1045 26 INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
shade@1045 27 CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
shade@1045 28 ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF
shade@1045 29 THE POSSIBILITY OF SUCH DAMAGE.
shade@16 30 -->
shade@16 31
shade@16 32 <project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
shade@16 33 xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
shade@16 34 <modelVersion>4.0.0</modelVersion>
shade@16 35
shade@261 36 <groupId>\${groupId}</groupId>
shade@261 37 <artifactId>\${artifactId}</artifactId>
shade@261 38 <version>\${version}</version>
shade@16 39 <packaging>jar</packaging>
shade@16 40
shade@1045 41 <name>JMH benchmark sample: Java</name>
shade@1045 42
shade@1045 43 <!--
shade@1045 44 This is the demo/sample template build script for building Java benchmarks with JMH.
shade@1045 45 Edit as needed.
shade@1045 46 -->
shade@16 47
shade@16 48 <dependencies>
shade@16 49 <dependency>
shade@16 50 <groupId>org.openjdk.jmh</groupId>
shade@16 51 <artifactId>jmh-core</artifactId>
shade@809 52 <version>\${jmh.version}</version>
shade@16 53 </dependency>
shade@485 54 <dependency>
shade@485 55 <groupId>org.openjdk.jmh</groupId>
shade@485 56 <artifactId>jmh-generator-annprocess</artifactId>
shade@809 57 <version>\${jmh.version}</version>
shade@495 58 <scope>provided</scope>
shade@485 59 </dependency>
shade@16 60 </dependencies>
shade@16 61
shade@16 62 <properties>
shade@16 63 <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
shade@1332 64
shade@1332 65 <!--
shade@1332 66 JMH version to use with this project.
shade@1332 67 -->
shade@809 68 <jmh.version>${project.version}</jmh.version>
shade@1332 69
shade@1332 70 <!--
shade@1332 71 Java source/target to use for compilation.
shade@1332 72 -->
shade@1332 73 <javac.target>1.8</javac.target>
shade@1332 74
shade@1332 75 <!--
shade@1332 76 Name of the benchmark Uber-JAR to generate.
shade@1332 77 -->
shade@930 78 <uberjar.name>benchmarks</uberjar.name>
shade@16 79 </properties>
shade@16 80
shade@16 81 <build>
shade@16 82 <plugins>
shade@16 83 <plugin>
shade@16 84 <groupId>org.apache.maven.plugins</groupId>
shade@112 85 <artifactId>maven-compiler-plugin</artifactId>
shade@1460 86 <version>3.8.0</version>
shade@112 87 <configuration>
shade@923 88 <compilerVersion>\${javac.target}</compilerVersion>
shade@923 89 <source>\${javac.target}</source>
shade@923 90 <target>\${javac.target}</target>
shade@112 91 </configuration>
shade@112 92 </plugin>
shade@112 93 <plugin>
shade@112 94 <groupId>org.apache.maven.plugins</groupId>
shade@16 95 <artifactId>maven-shade-plugin</artifactId>
shade@1460 96 <version>3.2.1</version>
shade@16 97 <executions>
shade@16 98 <execution>
shade@16 99 <phase>package</phase>
shade@16 100 <goals>
shade@16 101 <goal>shade</goal>
shade@16 102 </goals>
shade@16 103 <configuration>
shade@930 104 <finalName>\${uberjar.name}</finalName>
shade@16 105 <transformers>
shade@16 106 <transformer implementation="org.apache.maven.plugins.shade.resource.ManifestResourceTransformer">
shade@16 107 <mainClass>org.openjdk.jmh.Main</mainClass>
shade@16 108 </transformer>
shade@16 109 </transformers>
shade@939 110 <filters>
shade@939 111 <filter>
shade@939 112 <!--
shade@939 113 Shading signed JARs will fail without this.
shade@939 114 http://stackoverflow.com/questions/999489/invalid-signature-file-when-attempting-to-run-a-jar
shade@939 115 -->
shade@939 116 <artifact>*:*</artifact>
shade@939 117 <excludes>
shade@939 118 <exclude>META-INF/*.SF</exclude>
shade@939 119 <exclude>META-INF/*.DSA</exclude>
shade@939 120 <exclude>META-INF/*.RSA</exclude>
shade@939 121 </excludes>
shade@939 122 </filter>
shade@939 123 </filters>
shade@16 124 </configuration>
shade@16 125 </execution>
shade@16 126 </executions>
shade@16 127 </plugin>
shade@16 128 </plugins>
shade@646 129 <pluginManagement>
shade@646 130 <plugins>
shade@646 131 <plugin>
shade@646 132 <artifactId>maven-clean-plugin</artifactId>
shade@646 133 <version>2.5</version>
shade@646 134 </plugin>
shade@646 135 <plugin>
shade@646 136 <artifactId>maven-deploy-plugin</artifactId>
shade@646 137 <version>2.8.1</version>
shade@646 138 </plugin>
shade@646 139 <plugin>
shade@646 140 <artifactId>maven-install-plugin</artifactId>
shade@646 141 <version>2.5.1</version>
shade@646 142 </plugin>
shade@646 143 <plugin>
shade@646 144 <artifactId>maven-jar-plugin</artifactId>
shade@646 145 <version>2.4</version>
shade@646 146 </plugin>
shade@646 147 <plugin>
shade@646 148 <artifactId>maven-javadoc-plugin</artifactId>
shade@646 149 <version>2.9.1</version>
shade@646 150 </plugin>
shade@646 151 <plugin>
shade@646 152 <artifactId>maven-resources-plugin</artifactId>
shade@646 153 <version>2.6</version>
shade@646 154 </plugin>
shade@646 155 <plugin>
shade@646 156 <artifactId>maven-site-plugin</artifactId>
shade@646 157 <version>3.3</version>
shade@646 158 </plugin>
shade@646 159 <plugin>
shade@646 160 <artifactId>maven-source-plugin</artifactId>
shade@646 161 <version>2.2.1</version>
shade@646 162 </plugin>
shade@646 163 <plugin>
shade@646 164 <artifactId>maven-surefire-plugin</artifactId>
shade@646 165 <version>2.17</version>
shade@646 166 </plugin>
shade@646 167 </plugins>
shade@646 168 </pluginManagement>
shade@16 169 </build>
shade@16 170
shade@16 171 </project>