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