Merge "Stability test for Apex-pdp"
[policy/apex-pdp.git] / examples / examples-pcvs / pom.xml
1 <!--
2   ============LICENSE_START=======================================================
3    Copyright (C) 2018 Ericsson. All rights reserved.
4    Modifications Copyright (C) 2020 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 <project
22     xmlns="http://maven.apache.org/POM/4.0.0"
23     xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
24     xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
25     <modelVersion>4.0.0</modelVersion>
26     <parent>
27         <groupId>org.onap.policy.apex-pdp.examples</groupId>
28         <artifactId>examples</artifactId>
29         <version>2.4.0-SNAPSHOT</version>
30     </parent>
31
32     <artifactId>examples-pcvs</artifactId>
33     <name>${project.artifactId}</name>
34     <description>Example for Policy-controlled Video Streaming</description>
35
36     <properties>
37         <policymodel.name>vpnsla</policymodel.name>
38     </properties>
39
40     <dependencies>
41         <dependency>
42             <groupId>org.onap.policy.common</groupId>
43             <artifactId>utils</artifactId>
44         </dependency>
45         <dependency>
46             <groupId>org.onap.policy.apex-pdp.model</groupId>
47             <artifactId>policy-model</artifactId>
48             <version>${project.version}</version>
49         </dependency>
50         <dependency>
51             <groupId>org.onap.policy.apex-pdp.core</groupId>
52             <artifactId>core-engine</artifactId>
53             <version>${project.version}</version>
54             <scope>test</scope>
55         </dependency>
56         <dependency>
57             <groupId>org.onap.policy.apex-pdp.core</groupId>
58             <artifactId>core-infrastructure</artifactId>
59             <version>${project.version}</version>
60         </dependency>
61         <dependency>
62             <groupId>org.onap.policy.apex-pdp.auth</groupId>
63             <artifactId>cli-editor</artifactId>
64             <version>${project.version}</version>
65         </dependency>
66         <dependency>
67             <groupId>org.onap.policy.apex-pdp.plugins.plugins-executor</groupId>
68             <artifactId>plugins-executor-mvel</artifactId>
69             <version>${project.version}</version>
70             <scope>test</scope>
71         </dependency>
72         <dependency>
73             <groupId>org.onap.policy.apex-pdp.plugins.plugins-executor</groupId>
74             <artifactId>plugins-executor-javascript</artifactId>
75             <version>${project.version}</version>
76             <scope>test</scope>
77         </dependency>
78     </dependencies>
79
80     <build>
81         <plugins>
82             <plugin>
83                 <groupId>org.codehaus.mojo</groupId>
84                 <artifactId>exec-maven-plugin</artifactId>
85                 <executions>
86                     <execution>
87                         <id>generate-policy</id>
88                         <phase>compile</phase>
89                         <goals>
90                             <goal>java</goal>
91                         </goals>
92                         <configuration>
93                             <mainClass>org.onap.policy.apex.auth.clieditor.ApexCommandLineEditorMain</mainClass>
94                             <classpathScope>compile</classpathScope>
95                             <arguments>
96                                 <argument>-command-file=${project.basedir}/src/main/resources/org/onap/policy/apex/examples/pcvs/vpnsla/${policymodel.name}.apex</argument>
97                                 <argument>-output-model-file=${project.build.directory}/classes/examples/models/pcvs/vpnsla/${policymodel.name}.json</argument>
98                                 <argument>-log-file=${project.build.directory}/${policymodel.name}_policygeneration.log</argument>
99                                 <argument>-working-dir=${project.basedir}</argument>
100                             </arguments>
101                         </configuration>
102                     </execution>
103                 </executions>
104             </plugin>
105         </plugins>
106     </build>
107
108     <profiles>
109         <profile>
110             <id>apexSite</id>
111             <activation>
112                 <property>
113                     <name>apexSite</name>
114                 </property>
115             </activation>
116             <properties>
117                 <adsite-examples-pcvs-dir>${project.basedir}/src</adsite-examples-pcvs-dir>
118             </properties>
119             <distributionManagement>
120                 <site>
121                     <id>${project.artifactId}-site</id>
122                     <url>${apex.adsite.prefix}/modules/${project.parent.artifactId}/${project.artifactId}/</url>
123                 </site>
124             </distributionManagement>
125             <build>
126                 <plugins>
127                     <plugin>
128                         <groupId>org.apache.maven.plugins</groupId>
129                         <artifactId>maven-resources-plugin</artifactId>
130                         <version>3.0.2</version>
131                         <executions>
132                             <execution>
133                                 <id>copy-domain-pcvs-images</id>
134                                 <phase>initialize</phase>
135                                 <goals>
136                                     <goal>copy-resources</goal>
137                                 </goals>
138                                 <configuration>
139                                     <resources>
140                                         <resource>
141                                             <directory>${project.basedir}/src/site-docs/adoc/resources/images</directory>
142                                             <includes>
143                                                 <include>**/*.jpg</include>
144                                                 <include>**/*.png</include>
145                                             </includes>
146                                         </resource>
147                                     </resources>
148                                     <outputDirectory>${project.build.directory}/site/images</outputDirectory>
149                                 </configuration>
150                             </execution>
151                         </executions>
152                     </plugin>
153                 </plugins>
154             </build>
155         </profile>
156     </profiles>
157 </project>