861d3689bec7b5c5523b605cfaef55614ea670e6
[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>13.0.11</version>
15         <relativePath/>
16     </parent>
17     <modelVersion>4.0.0</modelVersion>
18
19     <groupId>org.opendaylight.yangtools</groupId>
20     <artifactId>benchmarks</artifactId>
21     <version>13.0.3-SNAPSHOT</version>
22
23     <properties>
24         <!-- JMH-generated code does not pass SB (very noisily)-->
25         <odlparent.spotbugs.skip>true</odlparent.spotbugs.skip>
26         <!-- FIXME: fix these up and set maven.javadoc.failOnWarnings=true -->
27         <doclint>all,-missing</doclint>
28     </properties>
29
30     <dependencies>
31         <dependency>
32             <groupId>org.opendaylight.yangtools</groupId>
33             <artifactId>yang-data-tree-ri</artifactId>
34             <version>13.0.3-SNAPSHOT</version>
35         </dependency>
36         <dependency>
37             <groupId>org.opendaylight.yangtools</groupId>
38             <artifactId>yang-test-util</artifactId>
39             <version>13.0.3-SNAPSHOT</version>
40             <scope>compile</scope>
41         </dependency>
42         <dependency>
43             <groupId>org.openjdk.jmh</groupId>
44             <artifactId>jmh-core</artifactId>
45             <version>1.23</version>
46         </dependency>
47     </dependencies>
48
49     <build>
50         <plugins>
51             <plugin>
52                 <artifactId>maven-compiler-plugin</artifactId>
53                 <configuration>
54                     <annotationProcessorPaths>
55                         <dependency>
56                             <groupId>org.openjdk.jmh</groupId>
57                             <artifactId>jmh-generator-annprocess</artifactId>
58                             <version>1.23</version>
59                         </dependency>
60                     </annotationProcessorPaths>
61                 </configuration>
62             </plugin>
63         </plugins>
64     </build>
65
66     <profiles>
67         <profile>
68             <activation>
69                 <property>
70                     <name>benchmarks</name>
71                 </property>
72             </activation>
73             <build>
74                 <plugins>
75                     <plugin>
76                         <groupId>org.codehaus.mojo</groupId>
77                         <artifactId>exec-maven-plugin</artifactId>
78                         <configuration>
79                             <classpathScope>test</classpathScope>
80                             <executable>java</executable>
81                             <arguments>
82                                 <argument>-classpath</argument>
83                                 <classpath/>
84                                 <argument>org.openjdk.jmh.Main</argument>
85                                 <argument>.*</argument>
86                             </arguments>
87                         </configuration>
88                         <executions>
89                             <execution>
90                                 <id>run-benchmarks</id>
91                                 <phase>integration-test</phase>
92                                 <goals>
93                                     <goal>exec</goal>
94                                 </goals>
95                             </execution>
96                         </executions>
97                     </plugin>
98                 </plugins>
99             </build>
100         </profile>
101     </profiles>
102 </project>