blob: 9f0b08ae86af9a6308b5859e9ab44943f4380b67 [file] [log] [blame]
ramverma3d025432018-07-19 18:45:16 +01001<!--
2 ============LICENSE_START=======================================================
3 Copyright (C) 2018 Ericsson. All rights reserved.
liamfallon755eb9d2020-01-22 12:11:11 +00004 Modifications Copyright (C) 2020 Nordix Foundation.
ramverma3d025432018-07-19 18:45:16 +01005 ================================================================================
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-->
liamfallon755eb9d2020-01-22 12:11:11 +000021<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">
ramverma3d025432018-07-19 18:45:16 +010025 <modelVersion>4.0.0</modelVersion>
26 <parent>
27 <groupId>org.onap.policy.apex-pdp.examples</groupId>
28 <artifactId>examples</artifactId>
jrh3d7d9df62019-09-12 10:07:06 -040029 <version>2.3.0-SNAPSHOT</version>
ramverma3d025432018-07-19 18:45:16 +010030 </parent>
31
ramvermaf8959f52018-07-25 17:26:52 +010032 <artifactId>examples-pcvs</artifactId>
ramverma3d025432018-07-19 18:45:16 +010033 <name>${project.artifactId}</name>
34 <description>Example for Policy-controlled Video Streaming</description>
35
36 <properties>
liamfallon755eb9d2020-01-22 12:11:11 +000037 <policymodel.name>vpnsla</policymodel.name>
ramverma3d025432018-07-19 18:45:16 +010038 </properties>
39
40 <dependencies>
liamfallon755eb9d2020-01-22 12:11:11 +000041 <dependency>
liamfallonefdaa0d2018-08-03 16:12:01 +010042 <groupId>org.onap.policy.common</groupId>
43 <artifactId>utils</artifactId>
44 </dependency>
ramverma3d025432018-07-19 18:45:16 +010045 <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>
ramverma3d025432018-07-19 18:45:16 +010078 </dependencies>
79
80 <build>
81 <plugins>
82 <plugin>
83 <groupId>org.codehaus.mojo</groupId>
84 <artifactId>exec-maven-plugin</artifactId>
85 <executions>
86 <execution>
liamfallon755eb9d2020-01-22 12:11:11 +000087 <id>generate-policy</id>
88 <phase>compile</phase>
ramverma3d025432018-07-19 18:45:16 +010089 <goals>
liamfallon755eb9d2020-01-22 12:11:11 +000090 <goal>java</goal>
ramverma3d025432018-07-19 18:45:16 +010091 </goals>
92 <configuration>
liamfallon755eb9d2020-01-22 12:11:11 +000093 <mainClass>org.onap.policy.apex.auth.clieditor.ApexCommandLineEditorMain</mainClass>
94 <classpathScope>compile</classpathScope>
ramverma3d025432018-07-19 18:45:16 +010095 <arguments>
liamfallon755eb9d2020-01-22 12:11:11 +000096 <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>
ramverma3d025432018-07-19 18:45:16 +0100100 </arguments>
101 </configuration>
102 </execution>
103 </executions>
104 </plugin>
105 </plugins>
106 </build>
Dinh Danh Le6a2abc82018-08-23 00:41:47 +0100107
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>
liamfallona41c8772018-09-05 15:46:31 +0100125 <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>
Dinh Danh Le6a2abc82018-08-23 00:41:47 +0100155 </profile>
156 </profiles>
liamfallon755eb9d2020-01-22 12:11:11 +0000157</project>