blob: 6a105fda3d76c6076d371f15db8c8cd5d93292ef [file] [log] [blame]
ramvermad524ced2018-07-24 17:36:53 +01001<!--
2 ============LICENSE_START=======================================================
3 Copyright (C) 2018 Ericsson. All rights reserved.
liamfallon7a8e49a2019-12-19 21:42:34 -06004 Modifications Copyright (C) 2019-2020 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-->
liamfallonf996ef82018-10-08 13:36:31 +010021<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
22 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 +010023 <modelVersion>4.0.0</modelVersion>
24 <parent>
25 <groupId>org.onap.policy.apex-pdp.examples</groupId>
26 <artifactId>examples</artifactId>
liamfallon886976e2021-11-29 11:33:31 +000027 <version>2.7.1-SNAPSHOT</version>
ramvermad524ced2018-07-24 17:36:53 +010028 </parent>
29
30 <artifactId>examples-onap-vcpe</artifactId>
31 <name>${project.artifactId}</name>
32 <description>Specific code for the APEX ONAP vCPE Example</description>
33
34 <properties>
35 <policymodel.name>ONAPvCPEPolicyModel</policymodel.name>
a.sreekumare578dc02019-10-01 15:32:25 +010036 <toscapolicy.name>ONAPvCPEToscaPolicy</toscapolicy.name>
liamfallon7a8e49a2019-12-19 21:42:34 -060037 <policymodelstandalone.name>ONAPvCPEPolicyModelStandalone</policymodelstandalone.name>
38 <toscapolicystandalone.name>ONAPvCPEToscaPolicyStandalone</toscapolicystandalone.name>
ramvermad524ced2018-07-24 17:36:53 +010039 <apex-domains-onap-vcpe-dir>${project.basedir}/src</apex-domains-onap-vcpe-dir>
40 </properties>
41
42 <dependencies>
43 <dependency>
44 <groupId>org.onap.policy.apex-pdp.auth</groupId>
45 <artifactId>cli-editor</artifactId>
46 <version>${project.version}</version>
47 </dependency>
48 <dependency>
49 <groupId>org.onap.policy.apex-pdp.services</groupId>
50 <artifactId>services-engine</artifactId>
51 <version>${project.version}</version>
liamfalloncff079a2019-01-09 14:30:23 +010052 <scope>test</scope>
ramvermad524ced2018-07-24 17:36:53 +010053 </dependency>
54 <dependency>
liamfallon87be3052018-09-04 17:24:15 +010055 <groupId>org.onap.policy.apex-pdp.plugins.plugins-context.plugins-context-schema</groupId>
56 <artifactId>plugins-context-schema-avro</artifactId>
57 <version>${project.version}</version>
58 </dependency>
59 <dependency>
60 <groupId>org.onap.policy.apex-pdp.plugins.plugins-executor</groupId>
61 <artifactId>plugins-executor-javascript</artifactId>
62 <version>${project.version}</version>
63 </dependency>
64 <dependency>
65 <groupId>org.onap.policy.apex-pdp.plugins.plugins-event.plugins-event-carrier</groupId>
66 <artifactId>plugins-event-carrier-restrequestor</artifactId>
67 <version>${project.version}</version>
68 </dependency>
liamfallonf996ef82018-10-08 13:36:31 +010069 <dependency>
70 <groupId>org.onap.policy.apex-pdp.plugins.plugins-event.plugins-event-carrier</groupId>
71 <artifactId>plugins-event-carrier-restclient</artifactId>
72 <version>${project.version}</version>
73 </dependency>
74 <dependency>
75 <groupId>org.onap.policy.models.policy-models-interactions.model-impl</groupId>
76 <artifactId>aai</artifactId>
77 <version>${version.policy.models}</version>
78 </dependency>
79 <dependency>
80 <groupId>org.onap.policy.models.policy-models-interactions.model-impl</groupId>
81 <artifactId>appclcm</artifactId>
82 <version>${version.policy.models}</version>
83 </dependency>
84 <dependency>
85 <groupId>org.onap.policy.models.policy-models-interactions.model-impl</groupId>
86 <artifactId>events</artifactId>
87 <version>${version.policy.models}</version>
88 </dependency>
Henry.Sun318a9892019-10-09 18:02:56 +080089 <dependency>
90 <groupId>org.onap.policy.common</groupId>
91 <artifactId>policy-endpoints</artifactId>
Henry.Sun318a9892019-10-09 18:02:56 +080092 <scope>test</scope>
93 </dependency>
ramvermad524ced2018-07-24 17:36:53 +010094 </dependencies>
95
96 <build>
97 <plugins>
ramvermad524ced2018-07-24 17:36:53 +010098 <plugin>
99 <groupId>org.codehaus.mojo</groupId>
100 <artifactId>exec-maven-plugin</artifactId>
101 <executions>
liamfallonb96fc5e2019-11-22 17:09:57 +0000102 <!-- Generate the APEX Policy JSON from the APEX CLI command -->
ramvermad524ced2018-07-24 17:36:53 +0100103 <execution>
104 <id>generate-policy</id>
105 <phase>compile</phase>
106 <goals>
107 <goal>java</goal>
108 </goals>
109 <configuration>
liamfallon4cfa2e22018-09-13 15:25:32 +0100110 <mainClass>org.onap.policy.apex.auth.clieditor.ApexCommandLineEditorMain</mainClass>
ramvermad524ced2018-07-24 17:36:53 +0100111 <classpathScope>compile</classpathScope>
112 <arguments>
113 <argument>--command-file=${project.basedir}/src/main/resources/policy/${policymodel.name}.apex</argument>
114 <argument>--output-model-file=${project.build.directory}/classes/${policymodel.name}.json</argument>
115 <argument>--log-file=${project.build.directory}/${policymodel.name}_policygeneration.log</argument>
116 <argument>--working-dir=${project.basedir}</argument>
117 </arguments>
118 </configuration>
119 </execution>
liamfallonb96fc5e2019-11-22 17:09:57 +0000120 <!-- Generate the APEX ToscaPolicy JSON file-->
a.sreekumare578dc02019-10-01 15:32:25 +0100121 <execution>
122 <id>generate-tosca-policy</id>
123 <phase>compile</phase>
124 <goals>
125 <goal>java</goal>
126 </goals>
127 <configuration>
128 <mainClass>org.onap.policy.apex.auth.clieditor.tosca.ApexCliToscaEditorMain</mainClass>
129 <classpathScope>compile</classpathScope>
130 <arguments>
131 <argument>--command-file=${project.basedir}/src/main/resources/policy/${policymodel.name}.apex</argument>
132 <argument>--output-tosca-file=${project.build.directory}/classes/${toscapolicy.name}.json</argument>
133 <argument>--log-file=${project.build.directory}/${policymodel.name}_policygeneration.log</argument>
134 <argument>--apex-config-file=${project.basedir}/src/main/resources/examples/config/ONAPvCPE/ApexConfig.json</argument>
135 <argument>--tosca-template-file=${project.basedir}/src/main/resources/tosca/ToscaTemplate.json</argument>
136 </arguments>
137 </configuration>
138 </execution>
liamfallon7a8e49a2019-12-19 21:42:34 -0600139 <!-- Generate the Standalone APEX Policy JSON from the APEX CLI command -->
140 <execution>
141 <id>generate-standalone-policy</id>
142 <phase>compile</phase>
143 <goals>
144 <goal>java</goal>
145 </goals>
146 <configuration>
147 <mainClass>org.onap.policy.apex.auth.clieditor.ApexCommandLineEditorMain</mainClass>
148 <classpathScope>compile</classpathScope>
149 <arguments>
150 <argument>--command-file=${project.basedir}/src/main/resources/policy/${policymodelstandalone.name}.apex</argument>
151 <argument>--output-model-file=${project.build.directory}/classes/${policymodelstandalone.name}.json</argument>
152 <argument>--log-file=${project.build.directory}/${policymodelstandalone.name}_policygeneration.log</argument>
153 <argument>--working-dir=${project.basedir}</argument>
154 </arguments>
155 </configuration>
156 </execution>
157 <!-- Generate the standalone APEX ToscaPolicy JSON file-->
158 <execution>
159 <id>generate-standalone-tosca-policy</id>
160 <phase>compile</phase>
161 <goals>
162 <goal>java</goal>
163 </goals>
164 <configuration>
165 <mainClass>org.onap.policy.apex.auth.clieditor.tosca.ApexCliToscaEditorMain</mainClass>
166 <classpathScope>compile</classpathScope>
167 <arguments>
168 <argument>--command-file=${project.basedir}/src/main/resources/policy/${policymodelstandalone.name}.apex</argument>
169 <argument>--output-tosca-file=${project.build.directory}/classes/${toscapolicystandalone.name}.json</argument>
170 <argument>--log-file=${project.build.directory}/${policymodelstandalone.name}_policygeneration.log</argument>
171 <argument>--apex-config-file=${project.basedir}/src/main/resources/examples/config/ONAPvCPEStandalone/ApexConfig.json</argument>
172 <argument>--tosca-template-file=${project.basedir}/src/main/resources/tosca/ToscaTemplate.json</argument>
173 </arguments>
174 </configuration>
175 </execution>
a.sreekumare578dc02019-10-01 15:32:25 +0100176 </executions>
177 </plugin>
ramvermad524ced2018-07-24 17:36:53 +0100178 </plugins>
179 </build>
liamfallonf996ef82018-10-08 13:36:31 +0100180</project>