8c960f0a5f5a53e358b12e9b9944a46e26e7178e
[yangtools.git] / benchmarks / pom.xml
1 <?xml version="1.0" encoding="UTF-8"?>
2 <!-- vi: set et smarttab sw=4 tabstop=4: -->
3 <!--
4  Copyright (c) 2013 Cisco Systems, Inc. and others.  All rights reserved.
5
6  This program and the accompanying materials are made available under the
7  terms of the Eclipse Public License v1.0 which accompanies this distribution,
8  and is available at http://www.eclipse.org/legal/epl-v10.html
9 -->
10 <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">
11     <parent>
12         <groupId>org.opendaylight.odlparent</groupId>
13         <artifactId>odlparent</artifactId>
14         <version>12.0.1</version>
15         <relativePath/>
16     </parent>
17     <modelVersion>4.0.0</modelVersion>
18
19     <groupId>org.opendaylight.yangtools</groupId>
20     <artifactId>benchmarks</artifactId>
21     <version>10.0.1-SNAPSHOT</version>
22
23     <properties>
24         <!-- JMH-generated code does not pass SB (very noisily)-->
25         <odlparent.spotbugs.skip>true</odlparent.spotbugs.skip>
26     </properties>
27
28     <dependencies>
29         <dependency>
30             <groupId>org.opendaylight.yangtools</groupId>
31             <artifactId>yang-data-tree-ri</artifactId>
32             <version>10.0.1-SNAPSHOT</version>
33         </dependency>
34         <dependency>
35             <groupId>org.opendaylight.yangtools</groupId>
36             <artifactId>yang-test-util</artifactId>
37             <version>10.0.1-SNAPSHOT</version>
38             <scope>compile</scope>
39         </dependency>
40         <dependency>
41             <groupId>org.openjdk.jmh</groupId>
42             <artifactId>jmh-core</artifactId>
43             <version>1.23</version>
44         </dependency>
45     </dependencies>
46
47     <build>
48         <plugins>
49             <plugin>
50                 <artifactId>maven-compiler-plugin</artifactId>
51                 <configuration>
52                     <annotationProcessorPaths>
53                         <dependency>
54                             <groupId>org.openjdk.jmh</groupId>
55                             <artifactId>jmh-generator-annprocess</artifactId>
56                             <version>1.23</version>
57                         </dependency>
58                     </annotationProcessorPaths>
59                 </configuration>
60             </plugin>
61         </plugins>
62     </build>
63
64     <profiles>
65         <profile>
66             <activation>
67                 <property>
68                     <name>benchmarks</name>
69                 </property>
70             </activation>
71             <build>
72                 <plugins>
73                     <plugin>
74                         <groupId>org.codehaus.mojo</groupId>
75                         <artifactId>exec-maven-plugin</artifactId>
76                         <configuration>
77                             <classpathScope>test</classpathScope>
78                             <executable>java</executable>
79                             <arguments>
80                                 <argument>-classpath</argument>
81                                 <classpath/>
82                                 <argument>org.openjdk.jmh.Main</argument>
83                                 <argument>.*</argument>
84                             </arguments>
85                         </configuration>
86                         <executions>
87                             <execution>
88                                 <id>run-benchmarks</id>
89                                 <phase>integration-test</phase>
90                                 <goals>
91                                     <goal>exec</goal>
92                                 </goals>
93                             </execution>
94                         </executions>
95                     </plugin>
96                 </plugins>
97             </build>
98         </profile>
99     </profiles>
100 </project>