19fb321db3afe58f0bcad1ca22468b100d0f25ef
[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>3.0.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.onap.policy.apex-pdp.testsuites.integration</groupId>
46             <artifactId>integration-common</artifactId>
47             <version>${project.version}</version>
48             <scope>test</scope>
49         </dependency>
50         <dependency>
51             <groupId>org.onap.policy.apex-pdp.plugins.plugins-executor</groupId>
52             <artifactId>plugins-executor-mvel</artifactId>
53             <version>${project.version}</version>
54             <scope>test</scope>
55         </dependency>
56         <dependency>
57             <groupId>org.onap.policy.apex-pdp.plugins.plugins-executor</groupId>
58             <artifactId>plugins-executor-javascript</artifactId>
59             <version>${project.version}</version>
60             <scope>test</scope>
61         </dependency>
62         <!-- Jython support disabled due to security concerns -->
63         <!-- dependency>
64             <groupId>org.onap.policy.apex-pdp.plugins.plugins-executor</groupId>
65             <artifactId>plugins-executor-jython</artifactId>
66             <version>${project.version}</version>
67             <scope>test</scope>
68         </dependency-->
69         <dependency>
70             <groupId>org.onap.policy.apex-pdp.plugins.plugins-executor</groupId>
71             <artifactId>plugins-executor-java</artifactId>
72             <version>${project.version}</version>
73             <scope>test</scope>
74         </dependency>
75         <dependency>
76             <groupId>org.onap.policy.apex-pdp.plugins.plugins-executor</groupId>
77             <artifactId>plugins-executor-jruby</artifactId>
78             <version>${project.version}</version>
79             <scope>test</scope>
80         </dependency>
81         <dependency>
82             <groupId>org.onap.policy.apex-pdp.plugins.plugins-context.plugins-context-schema</groupId>
83             <artifactId>plugins-context-schema-avro</artifactId>
84             <version>${project.version}</version>
85             <scope>test</scope>
86         </dependency>
87         <dependency>
88             <groupId>org.onap.policy.apex-pdp.plugins.plugins-event.plugins-event-carrier</groupId>
89             <artifactId>plugins-event-carrier-restclient</artifactId>
90             <version>${project.version}</version>
91             <scope>test</scope>
92         </dependency>
93     </dependencies>
94
95     <build>
96         <plugins>
97             <!-- Copy required resources and examples -->
98             <plugin>
99                 <groupId>org.apache.maven.plugins</groupId>
100                 <artifactId>maven-dependency-plugin</artifactId>
101                 <executions>
102                     <execution>
103                         <id>unpack-examples</id>
104                         <phase>generate-test-resources</phase>
105                         <goals>
106                             <goal>unpack</goal>
107                         </goals>
108                         <configuration>
109                             <artifactItems>
110                                 <artifactItem>
111                                     <groupId>org.onap.policy.apex-pdp.testsuites.integration</groupId>
112                                     <artifactId>integration-common</artifactId>
113                                     <version>${project.version}</version>
114                                     <type>jar</type>
115                                     <overWrite>false</overWrite>
116                                     <outputDirectory>${project.build.directory}</outputDirectory>
117                                     <includes>examples/**/*</includes>
118                                 </artifactItem>
119                             </artifactItems>
120                             <overWriteReleases>true</overWriteReleases>
121                             <overWriteSnapshots>true</overWriteSnapshots>
122                         </configuration>
123                     </execution>
124                 </executions>
125             </plugin>
126             <plugin>
127                 <groupId>org.apache.maven.plugins</groupId>
128                 <artifactId>maven-surefire-plugin</artifactId>
129                 <configuration>
130                     <reuseForks>false</reuseForks>
131                 </configuration>
132             </plugin>
133         </plugins>
134     </build>
135
136     <profiles>
137         <profile>
138             <id>only-eclipse</id>
139             <activation>
140                 <property>
141                     <name>m2e.version</name>
142                 </property>
143             </activation>
144             <build>
145                 <pluginManagement>
146                     <plugins>
147                         <plugin>
148                             <groupId>org.eclipse.m2e</groupId>
149                             <artifactId>lifecycle-mapping</artifactId>
150                             <configuration>
151                                 <lifecycleMappingMetadata>
152                                     <pluginExecutions>
153                                         <pluginExecution>
154                                             <pluginExecutionFilter>
155                                                 <groupId>org.apache.maven.plugins</groupId>
156                                                 <artifactId>maven-dependency-plugin</artifactId>
157                                                 <versionRange>[2.0,)</versionRange>
158                                                 <goals>
159                                                     <goal>unpack</goal>
160                                                 </goals>
161                                             </pluginExecutionFilter>
162                                             <action>
163                                                 <ignore/>
164                                             </action>
165                                         </pluginExecution>
166                                     </pluginExecutions>
167                                 </lifecycleMappingMetadata>
168                             </configuration>
169                         </plugin>
170                     </plugins>
171                 </pluginManagement>
172             </build>
173         </profile>
174     </profiles>
175 </project>