074e8944cb04bdf2b9e3b2c61012e573e6cd3205
[policy/apex-pdp.git] / examples / examples-pcvs / 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 <project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
21     xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
22     <modelVersion>4.0.0</modelVersion>
23     <parent>
24         <groupId>org.onap.policy.apex-pdp.examples</groupId>
25         <artifactId>examples</artifactId>
26         <version>2.0.0-SNAPSHOT</version>
27     </parent>
28
29     <artifactId>examples-pcvs</artifactId>
30     <name>${project.artifactId}</name>
31     <description>Example for Policy-controlled Video Streaming</description>
32
33     <properties>
34         <apex-domains-pcvs-dir>${project.basedir}/src</apex-domains-pcvs-dir>
35     </properties>
36
37     <dependencies>
38          <dependency>
39             <groupId>org.onap.policy.common</groupId>
40             <artifactId>utils</artifactId>
41         </dependency>
42         <dependency>
43             <groupId>org.onap.policy.apex-pdp.model</groupId>
44             <artifactId>policy-model</artifactId>
45             <version>${project.version}</version>
46         </dependency>
47         <dependency>
48             <groupId>org.onap.policy.apex-pdp.core</groupId>
49             <artifactId>core-engine</artifactId>
50             <version>${project.version}</version>
51             <scope>test</scope>
52         </dependency>
53         <dependency>
54             <groupId>org.onap.policy.apex-pdp.core</groupId>
55             <artifactId>core-infrastructure</artifactId>
56             <version>${project.version}</version>
57         </dependency>
58         <dependency>
59             <groupId>org.onap.policy.apex-pdp.auth</groupId>
60             <artifactId>cli-editor</artifactId>
61             <version>${project.version}</version>
62         </dependency>
63         <dependency>
64             <groupId>org.onap.policy.apex-pdp.plugins.plugins-executor</groupId>
65             <artifactId>plugins-executor-mvel</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-javascript</artifactId>
72             <version>${project.version}</version>
73             <scope>test</scope>
74         </dependency>
75         <dependency>
76             <groupId>org.apache.derby</groupId>
77             <artifactId>derby</artifactId>
78             <version>${version.derby}</version>
79             <scope>test</scope>
80         </dependency>
81     </dependencies>
82
83     <build>
84         <plugins>
85             <plugin>
86                 <groupId>org.codehaus.mojo</groupId>
87                 <artifactId>exec-maven-plugin</artifactId>
88                 <executions>
89                     <execution>
90                         <id>generate-models</id>
91                         <phase>process-classes</phase>
92                         <goals>
93                             <goal>exec</goal>
94                         </goals>
95                         <configuration>
96                             <executable>java</executable>
97                             <arguments>
98                                 <argument>-classpath</argument>
99                                 <classpath />
100                                 <argument>org.onap.policy.apex.examples.pcvs.model.PCVSDomainModelSaver</argument>
101                                 <argument>${project.basedir}</argument>
102                                 <argument>${project.build.directory}/classes/examples/models/pcvs/</argument>
103                             </arguments>
104                         </configuration>
105                     </execution>
106                 </executions>
107             </plugin>
108         </plugins>
109     </build>
110
111     <profiles>
112         <profile>
113             <id>apexSite</id>
114             <activation>
115                 <property>
116                     <name>apexSite</name>
117                 </property>
118             </activation>
119             <properties>
120                 <adsite-examples-pcvs-dir>${project.basedir}/src</adsite-examples-pcvs-dir>
121             </properties>
122             <distributionManagement>
123                 <site>
124                     <id>${project.artifactId}-site</id>
125                     <url>${apex.adsite.prefix}/modules/${project.parent.artifactId}/${project.artifactId}/</url>
126                 </site>
127             </distributionManagement>
128         </profile>
129     </profiles>
130 </project>