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