blob: 0196064d2d96b89bb76ed47cb571234803adfb86 [file] [log] [blame]
ramvermad524ced2018-07-24 17:36:53 +01001<!--
2 ============LICENSE_START=======================================================
3 Copyright (C) 2018 Ericsson. All rights reserved.
liamfalloncff079a2019-01-09 14:30:23 +01004 Copyright (C) 2019 Nordix Foundation.
ramvermad524ced2018-07-24 17:36:53 +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-->
liamfallon3aa7cbe2018-10-31 16:35:54 +000021<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
ramvermad524ced2018-07-24 17:36:53 +010022 <modelVersion>4.0.0</modelVersion>
23 <parent>
24 <groupId>org.onap.policy.apex-pdp.examples</groupId>
25 <artifactId>examples</artifactId>
liamfallon3aa7cbe2018-10-31 16:35:54 +000026 <version>2.1.0-SNAPSHOT</version>
ramvermad524ced2018-07-24 17:36:53 +010027 </parent>
28
29 <artifactId>examples-onap-vcpe</artifactId>
30 <name>${project.artifactId}</name>
31 <description>Specific code for the APEX ONAP vCPE Example</description>
32
33 <properties>
34 <policymodel.name>ONAPvCPEPolicyModel</policymodel.name>
35 <apex-domains-onap-vcpe-dir>${project.basedir}/src</apex-domains-onap-vcpe-dir>
36 </properties>
37
38 <dependencies>
39 <dependency>
40 <groupId>org.onap.policy.apex-pdp.auth</groupId>
41 <artifactId>cli-editor</artifactId>
42 <version>${project.version}</version>
43 </dependency>
44 <dependency>
45 <groupId>org.onap.policy.apex-pdp.services</groupId>
46 <artifactId>services-engine</artifactId>
47 <version>${project.version}</version>
liamfalloncff079a2019-01-09 14:30:23 +010048 <scope>test</scope>
ramvermad524ced2018-07-24 17:36:53 +010049 </dependency>
50 <dependency>
51 <groupId>org.glassfish.jersey.containers</groupId>
52 <artifactId>jersey-container-grizzly2-http</artifactId>
53 <version>${version.jersey}</version>
54 <scope>test</scope>
55 </dependency>
liamfallon87be3052018-09-04 17:24:15 +010056 <dependency>
57 <groupId>org.onap.policy.apex-pdp.plugins.plugins-context.plugins-context-schema</groupId>
58 <artifactId>plugins-context-schema-avro</artifactId>
59 <version>${project.version}</version>
60 </dependency>
61 <dependency>
62 <groupId>org.onap.policy.apex-pdp.plugins.plugins-executor</groupId>
63 <artifactId>plugins-executor-javascript</artifactId>
64 <version>${project.version}</version>
65 </dependency>
66 <dependency>
67 <groupId>org.onap.policy.apex-pdp.plugins.plugins-event.plugins-event-carrier</groupId>
68 <artifactId>plugins-event-carrier-restrequestor</artifactId>
69 <version>${project.version}</version>
70 </dependency>
ramvermad524ced2018-07-24 17:36:53 +010071 </dependencies>
72
73 <build>
74 <plugins>
75 <!-- Generate the APEX Policy JSON from the APEX CLI command -->
76 <plugin>
77 <groupId>org.codehaus.mojo</groupId>
78 <artifactId>exec-maven-plugin</artifactId>
79 <executions>
80 <execution>
81 <id>generate-policy</id>
82 <phase>compile</phase>
83 <goals>
84 <goal>java</goal>
85 </goals>
86 <configuration>
liamfallon4cfa2e22018-09-13 15:25:32 +010087 <mainClass>org.onap.policy.apex.auth.clieditor.ApexCommandLineEditorMain</mainClass>
ramvermad524ced2018-07-24 17:36:53 +010088 <classpathScope>compile</classpathScope>
89 <arguments>
90 <argument>--command-file=${project.basedir}/src/main/resources/policy/${policymodel.name}.apex</argument>
91 <argument>--output-model-file=${project.build.directory}/classes/${policymodel.name}.json</argument>
92 <argument>--log-file=${project.build.directory}/${policymodel.name}_policygeneration.log</argument>
93 <argument>--working-dir=${project.basedir}</argument>
94 </arguments>
95 </configuration>
96 </execution>
97 </executions>
98 </plugin>
99 </plugins>
100 </build>
Dinh Danh Le6a2abc82018-08-23 00:41:47 +0100101
102 <profiles>
103 <profile>
104 <id>apexSite</id>
105 <activation>
106 <property>
107 <name>apexSite</name>
108 </property>
109 </activation>
110 <properties>
111 <adsite-examples-onap-vcpe-dir>${project.basedir}/src</adsite-examples-onap-vcpe-dir>
112 </properties>
113 <distributionManagement>
114 <site>
115 <id>${project.artifactId}-site</id>
116 <url>${apex.adsite.prefix}/modules/${project.parent.artifactId}/${project.artifactId}/</url>
117 </site>
118 </distributionManagement>
119 </profile>
120 </profiles>
ramvermad524ced2018-07-24 17:36:53 +0100121</project>