110110 <version >2.35.2</version >
111111 <scope >test</scope >
112112 </dependency >
113-
114- <!-- JMH dependencies -->
115- <dependency >
116- <groupId >org.openjdk.jmh</groupId >
117- <artifactId >jmh-core</artifactId >
118- <version >${jmh.version} </version >
119- <scope >compile</scope >
120- </dependency >
121- <dependency >
122- <groupId >org.openjdk.jmh</groupId >
123- <artifactId >jmh-generator-annprocess</artifactId >
124- <version >${jmh.version} </version >
125- <scope >compile</scope >
126- </dependency >
127113 </dependencies >
128114
129115 <build >
130116 <plugins >
131- <plugin >
132- <groupId >org.apache.maven.plugins</groupId >
133- <artifactId >maven-compiler-plugin</artifactId >
134- <configuration >
135- <annotationProcessorPaths >
136- <path >
137- <groupId >org.openjdk.jmh</groupId >
138- <artifactId >jmh-generator-annprocess</artifactId >
139- <version >${jmh.version} </version >
140- </path >
141- </annotationProcessorPaths >
142- <release >8</release >
143- </configuration >
144- </plugin >
145117 <plugin >
146118 <groupId >org.apache.maven.plugins</groupId >
147119 <artifactId >maven-shade-plugin</artifactId >
189161 </filters >
190162 </configuration >
191163 </execution >
192- <execution >
193- <phase >package</phase >
194- <goals >
195- <goal >shade</goal >
196- </goals >
197- <configuration >
198- <finalName >benchmarks</finalName >
199- <transformers >
200- <transformer implementation =" org.apache.maven.plugins.shade.resource.ManifestResourceTransformer" >
201- <mainClass >org.openjdk.jmh.Main</mainClass >
202- </transformer >
203- </transformers >
204- </configuration >
205- </execution >
206164 </executions >
207165 </plugin >
208166 <plugin >
218176 </execution >
219177 </executions >
220178 </plugin >
221- <plugin >
222- <groupId >org.codehaus.mojo</groupId >
223- <artifactId >exec-maven-plugin</artifactId >
224- <executions >
225- <execution >
226- <id >run-benchmarks</id >
227- <phase >integration-test</phase >
228- <goals >
229- <goal >exec</goal >
230- </goals >
231- <configuration >
232- <classpathScope >test</classpathScope >
233- <executable >java</executable >
234- <arguments >
235- <argument >-classpath</argument >
236- <classpath />
237- <argument >org.openjdk.jmh.Main</argument >
238- <argument >.*</argument >
239- </arguments >
240- </configuration >
241- </execution >
242- </executions >
243- </plugin >
244- <plugin >
245- <groupId >org.codehaus.mojo</groupId >
246- <artifactId >build-helper-maven-plugin</artifactId >
247- <version >3.6.0</version >
248- <executions >
249- <execution >
250- <id >add-test-source</id >
251- <phase >generate-test-sources</phase >
252- <goals >
253- <goal >add-test-source</goal >
254- </goals >
255- <configuration >
256- <sources >
257- <source >src/test/perf</source >
258- </sources >
259- </configuration >
260- </execution >
261- </executions >
262- </plugin >
263179 </plugins >
264180 </build >
181+
182+ <profiles >
183+ <profile >
184+ <id >performance-testing</id >
185+ <activation ><activeByDefault >false</activeByDefault ></activation >
186+ <dependencies >
187+ <dependency >
188+ <groupId >org.openjdk.jmh</groupId >
189+ <artifactId >jmh-core</artifactId >
190+ <version >${jmh.version} </version >
191+ </dependency >
192+ <dependency >
193+ <groupId >org.openjdk.jmh</groupId >
194+ <artifactId >jmh-generator-annprocess</artifactId >
195+ <version >${jmh.version} </version >
196+ </dependency >
197+ </dependencies >
198+ <build >
199+ <plugins >
200+ <plugin >
201+ <groupId >org.apache.maven.plugins</groupId >
202+ <artifactId >maven-compiler-plugin</artifactId >
203+ <configuration >
204+ <annotationProcessorPaths >
205+ <path >
206+ <groupId >org.projectlombok</groupId >
207+ <artifactId >lombok</artifactId >
208+ <version >1.18.32</version >
209+ </path >
210+ <path >
211+ <groupId >org.openjdk.jmh</groupId >
212+ <artifactId >jmh-generator-annprocess</artifactId >
213+ <version >${jmh.version} </version >
214+ </path >
215+ </annotationProcessorPaths >
216+ <release >8</release >
217+ </configuration >
218+ </plugin >
219+ <plugin >
220+ <groupId >org.apache.maven.plugins</groupId >
221+ <artifactId >maven-shade-plugin</artifactId >
222+ <executions >
223+ <execution >
224+ <phase >package</phase >
225+ <goals >
226+ <goal >shade</goal >
227+ </goals >
228+ <configuration >
229+ <finalName >benchmarks</finalName >
230+ <transformers >
231+ <transformer implementation =" org.apache.maven.plugins.shade.resource.ManifestResourceTransformer" >
232+ <mainClass >org.openjdk.jmh.Main</mainClass >
233+ </transformer >
234+ </transformers >
235+ </configuration >
236+ </execution >
237+ </executions >
238+ </plugin >
239+ <plugin >
240+ <groupId >org.codehaus.mojo</groupId >
241+ <artifactId >build-helper-maven-plugin</artifactId >
242+ <version >3.6.0</version >
243+ <executions >
244+ <execution >
245+ <id >add-test-source</id >
246+ <phase >generate-test-sources</phase >
247+ <goals >
248+ <goal >add-test-source</goal >
249+ </goals >
250+ <configuration >
251+ <sources >
252+ <source >src/test/perf</source >
253+ </sources >
254+ </configuration >
255+ </execution >
256+ </executions >
257+ </plugin >
258+ <plugin >
259+ <groupId >org.codehaus.mojo</groupId >
260+ <artifactId >exec-maven-plugin</artifactId >
261+ <executions >
262+ <execution >
263+ <id >run-benchmarks</id >
264+ <phase >integration-test</phase >
265+ <goals >
266+ <goal >exec</goal >
267+ </goals >
268+ <configuration >
269+ <classpathScope >test</classpathScope >
270+ <executable >java</executable >
271+ <arguments >
272+ <argument >-classpath</argument >
273+ <classpath />
274+ <argument >org.openjdk.jmh.Main</argument >
275+ <argument >.*</argument >
276+ </arguments >
277+ </configuration >
278+ </execution >
279+ </executions >
280+ </plugin >
281+ </plugins >
282+ </build >
283+ </profile >
284+ </profiles >
265285</project >
0 commit comments