Update snapshot and/or references of policy/apex-pdp to latest snapshots
[policy/apex-pdp.git] / examples / examples-onap-vcpe / pom.xml
1 <!--
2   ============LICENSE_START=======================================================
3    Copyright (C) 2018 Ericsson. All rights reserved.
4    Modifications Copyright (C) 2019-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 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">
23     <modelVersion>4.0.0</modelVersion>
24     <parent>
25         <groupId>org.onap.policy.apex-pdp.examples</groupId>
26         <artifactId>examples</artifactId>
27         <version>3.0.2-SNAPSHOT</version>
28     </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>
36         <toscapolicy.name>ONAPvCPEToscaPolicy</toscapolicy.name>
37         <policymodelstandalone.name>ONAPvCPEPolicyModelStandalone</policymodelstandalone.name>
38         <toscapolicystandalone.name>ONAPvCPEToscaPolicyStandalone</toscapolicystandalone.name>
39         <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>
52             <scope>test</scope>
53         </dependency>
54         <dependency>
55             <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>
69         <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>
89         <dependency>
90             <groupId>org.onap.policy.common</groupId>
91             <artifactId>policy-endpoints</artifactId>
92             <scope>test</scope>
93         </dependency>
94     </dependencies>
95
96     <build>
97         <plugins>
98             <plugin>
99                 <groupId>org.codehaus.mojo</groupId>
100                 <artifactId>exec-maven-plugin</artifactId>
101                 <executions>
102                     <!-- Generate the APEX Policy JSON from the APEX CLI command -->
103                     <execution>
104                         <id>generate-policy</id>
105                         <phase>compile</phase>
106                         <goals>
107                             <goal>java</goal>
108                         </goals>
109                         <configuration>
110                             <mainClass>org.onap.policy.apex.auth.clieditor.ApexCommandLineEditorMain</mainClass>
111                             <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>
120                     <!-- Generate the APEX ToscaPolicy JSON file-->
121                     <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>
139                     <!-- 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>
176                 </executions>
177             </plugin>
178         </plugins>
179     </build>
180 </project>