e693bbbcc29b7083df7ddf3ef0c62d06a668e2d7
[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-2024 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>3.1.2-SNAPSHOT</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             <version>${version.jersey}</version>
43         </dependency>
44         <dependency>
45             <groupId>org.glassfish.jersey.inject</groupId>
46             <artifactId>jersey-hk2</artifactId>
47         </dependency>
48         <dependency>
49             <groupId>org.onap.policy.apex-pdp.testsuites.integration</groupId>
50             <artifactId>integration-common</artifactId>
51             <version>${project.version}</version>
52             <scope>test</scope>
53         </dependency>
54         <dependency>
55             <groupId>org.onap.policy.apex-pdp.plugins.plugins-executor</groupId>
56             <artifactId>plugins-executor-mvel</artifactId>
57             <version>${project.version}</version>
58             <scope>test</scope>
59         </dependency>
60         <dependency>
61             <groupId>org.onap.policy.apex-pdp.plugins.plugins-executor</groupId>
62             <artifactId>plugins-executor-javascript</artifactId>
63             <version>${project.version}</version>
64             <scope>test</scope>
65         </dependency>
66         <!-- Jython support disabled due to security concerns -->
67         <!-- dependency>
68             <groupId>org.onap.policy.apex-pdp.plugins.plugins-executor</groupId>
69             <artifactId>plugins-executor-jython</artifactId>
70             <version>${project.version}</version>
71             <scope>test</scope>
72         </dependency-->
73         <dependency>
74             <groupId>org.onap.policy.apex-pdp.plugins.plugins-executor</groupId>
75             <artifactId>plugins-executor-java</artifactId>
76             <version>${project.version}</version>
77             <scope>test</scope>
78         </dependency>
79         <dependency>
80             <groupId>org.onap.policy.apex-pdp.plugins.plugins-executor</groupId>
81             <artifactId>plugins-executor-jruby</artifactId>
82             <version>${project.version}</version>
83             <scope>test</scope>
84         </dependency>
85         <dependency>
86             <groupId>org.onap.policy.apex-pdp.plugins.plugins-context.plugins-context-schema</groupId>
87             <artifactId>plugins-context-schema-avro</artifactId>
88             <version>${project.version}</version>
89             <scope>test</scope>
90         </dependency>
91         <dependency>
92             <groupId>org.onap.policy.apex-pdp.plugins.plugins-event.plugins-event-carrier</groupId>
93             <artifactId>plugins-event-carrier-restclient</artifactId>
94             <version>${project.version}</version>
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>