Bump apex-pdp to 2.2.1-SNAPSHOT
[policy/apex-pdp.git] / testsuites / performance / performance-benchmark-test / pom.xml
1 <!--
2   ============LICENSE_START=======================================================
3    Copyright (C) 2018 Ericsson. All rights reserved.
4   ================================================================================
5   Licensed under the Apache License, Version 2.0 (the "License");
6   you may not use this file except in compliance with the License.
7   You may obtain a copy of the License at
8
9        http://www.apache.org/licenses/LICENSE-2.0
10
11   Unless required by applicable law or agreed to in writing, software
12   distributed under the License is distributed on an "AS IS" BASIS,
13   WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14   See the License for the specific language governing permissions and
15   limitations under the License.
16
17   SPDX-License-Identifier: Apache-2.0
18   ============LICENSE_END=========================================================
19 -->
20
21 <project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
22     xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
23     <modelVersion>4.0.0</modelVersion>
24     <parent>
25         <groupId>org.onap.policy.apex-pdp.testsuites.performance</groupId>
26         <artifactId>performance</artifactId>
27         <version>2.2.1-SNAPSHOT</version>
28     </parent>
29
30     <artifactId>performance-benchmark-test</artifactId>
31
32     <dependencies>
33         <dependency>
34             <groupId>org.onap.policy.apex-pdp.services</groupId>
35             <artifactId>services-engine</artifactId>
36             <version>${project.version}</version>
37         </dependency>
38         <dependency>
39             <groupId>org.glassfish.jersey.core</groupId>
40             <artifactId>jersey-client</artifactId>
41             <version>${version.jersey}</version>
42         </dependency>
43         <dependency>
44             <groupId>org.glassfish.jersey.containers</groupId>
45             <artifactId>jersey-container-grizzly2-http</artifactId>
46             <version>${version.jersey}</version>
47         </dependency>
48         <dependency>
49             <groupId>org.glassfish.jersey.containers</groupId>
50             <artifactId>jersey-container-servlet-core</artifactId>
51             <version>${version.jersey}</version>
52         </dependency>
53         <dependency>
54             <groupId>org.glassfish.jersey.inject</groupId>
55             <artifactId>jersey-hk2</artifactId>
56             <version>2.27</version>
57         </dependency>
58         <dependency>
59             <groupId>org.onap.policy.apex-pdp.testsuites.integration</groupId>
60             <artifactId>integration-common</artifactId>
61             <version>${project.version}</version>
62             <scope>test</scope>
63         </dependency>
64         <dependency>
65             <groupId>org.onap.policy.apex-pdp.plugins.plugins-executor</groupId>
66             <artifactId>plugins-executor-mvel</artifactId>
67             <version>${project.version}</version>
68             <scope>test</scope>
69         </dependency>
70         <dependency>
71             <groupId>org.onap.policy.apex-pdp.plugins.plugins-executor</groupId>
72             <artifactId>plugins-executor-javascript</artifactId>
73             <version>${project.version}</version>
74             <scope>test</scope>
75         </dependency>
76         <dependency>
77             <groupId>org.onap.policy.apex-pdp.plugins.plugins-executor</groupId>
78             <artifactId>plugins-executor-jython</artifactId>
79             <version>${project.version}</version>
80             <scope>test</scope>
81         </dependency>
82         <dependency>
83             <groupId>org.onap.policy.apex-pdp.plugins.plugins-executor</groupId>
84             <artifactId>plugins-executor-java</artifactId>
85             <version>${project.version}</version>
86             <scope>test</scope>
87         </dependency>
88         <dependency>
89             <groupId>org.onap.policy.apex-pdp.plugins.plugins-executor</groupId>
90             <artifactId>plugins-executor-jruby</artifactId>
91             <version>${project.version}</version>
92             <scope>test</scope>
93         </dependency>
94         <dependency>
95             <groupId>org.onap.policy.apex-pdp.plugins.plugins-context.plugins-context-schema</groupId>
96             <artifactId>plugins-context-schema-avro</artifactId>
97             <version>${project.version}</version>
98             <scope>test</scope>
99         </dependency>
100         <dependency>
101             <groupId>org.onap.policy.apex-pdp.plugins.plugins-event.plugins-event-carrier</groupId>
102             <artifactId>plugins-event-carrier-restclient</artifactId>
103             <version>${project.version}</version>
104             <scope>test</scope>
105         </dependency>
106         <dependency>
107             <groupId>org.mockito</groupId>
108             <artifactId>mockito-all</artifactId>
109             <scope>test</scope>
110         </dependency>
111     </dependencies>
112
113     <build>
114         <plugins>
115              <!-- Copy required resources and examples -->
116             <plugin>
117                 <groupId>org.apache.maven.plugins</groupId>
118                 <artifactId>maven-dependency-plugin</artifactId>
119                 <executions>
120                     <execution>
121                         <id>unpack-examples</id>
122                         <phase>generate-test-resources</phase>
123                         <goals>
124                             <goal>unpack</goal>
125                         </goals>
126                         <configuration>
127                             <artifactItems>
128                                 <artifactItem>
129                                     <groupId>org.onap.policy.apex-pdp.testsuites.integration</groupId>
130                                     <artifactId>integration-common</artifactId>
131                                     <version>${project.version}</version>
132                                     <type>jar</type>
133                                     <overWrite>false</overWrite>
134                                     <outputDirectory>${project.build.directory}</outputDirectory>
135                                     <includes>examples/**/*</includes>
136                                 </artifactItem>
137                             </artifactItems>
138                             <overWriteReleases>true</overWriteReleases>
139                             <overWriteSnapshots>true</overWriteSnapshots>
140                         </configuration>
141                     </execution>
142                 </executions>
143             </plugin>
144             <plugin>
145                 <groupId>org.apache.maven.plugins</groupId>
146                 <artifactId>maven-surefire-plugin</artifactId>
147                 <configuration>
148                     <reuseForks>false</reuseForks>
149                 </configuration>
150             </plugin>
151         </plugins>
152     </build>
153
154     <profiles>
155          <profile>
156             <id>only-eclipse</id>
157             <activation>
158                 <property>
159                     <name>m2e.version</name>
160                 </property>
161             </activation>
162             <build>
163                 <pluginManagement>
164                     <plugins>
165                         <plugin>
166                             <groupId>org.eclipse.m2e</groupId>
167                             <artifactId>lifecycle-mapping</artifactId>
168                             <version>1.0.0</version>
169                             <configuration>
170                                 <lifecycleMappingMetadata>
171                                     <pluginExecutions>
172                                         <pluginExecution>
173                                             <pluginExecutionFilter>
174                                                 <groupId>org.apache.maven.plugins</groupId>
175                                                 <artifactId>maven-dependency-plugin</artifactId>
176                                                 <versionRange>[2.0,)</versionRange>
177                                                 <goals>
178                                                     <goal>unpack</goal>
179                                                 </goals>
180                                             </pluginExecutionFilter>
181                                             <action>
182                                                 <ignore />
183                                             </action>
184                                         </pluginExecution>
185                                     </pluginExecutions>
186                                 </lifecycleMappingMetadata>
187                             </configuration>
188                         </plugin>
189                     </plugins>
190                 </pluginManagement>
191             </build>
192         </profile>
193
194         <profile>
195             <id>apexSite</id>
196             <activation>
197                 <property>
198                     <name>apexSite</name>
199                 </property>
200             </activation>
201             <distributionManagement>
202                 <site>
203                     <id>${project.artifactId}-site</id>
204                     <url>${apex.adsite.prefix}/modules/testsuites/${project.parent.artifactId}/${project.artifactId}/</url>
205                 </site>
206             </distributionManagement>
207         </profile>
208     </profiles>
209 </project>