2 ============LICENSE_START=======================================================
3 Copyright (C) 2018 Ericsson. All rights reserved.
4 Modifications Copyright (C) 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
10 http://www.apache.org/licenses/LICENSE-2.0
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.
18 SPDX-License-Identifier: Apache-2.0
19 ============LICENSE_END=========================================================
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">
25 <modelVersion>4.0.0</modelVersion>
27 <groupId>org.onap.policy.apex-pdp.examples</groupId>
28 <artifactId>examples</artifactId>
29 <version>2.7.1-SNAPSHOT</version>
32 <artifactId>examples-myfirstpolicy</artifactId>
33 <name>${project.artifactId}</name>
34 <description>Specific code for the Apex MyFirstPolicy Example</description>
37 <policymodel1m.name>MyFirstPolicyModelMvel_0.0.1</policymodel1m.name>
38 <policymodel1j.name>MyFirstPolicyModelJavascript_0.0.1</policymodel1j.name>
39 <policymodel2.name>MyFirstPolicyModel_0.0.1</policymodel2.name>
40 <policymodel3.name>MyFirstPolicyModelSFL_0.0.1</policymodel3.name>
45 <groupId>org.onap.policy.apex-pdp.model</groupId>
46 <artifactId>model</artifactId>
47 <version>${project.version}</version>
50 <groupId>org.onap.policy.apex-pdp.core</groupId>
51 <artifactId>core-engine</artifactId>
52 <version>${project.version}</version>
56 <groupId>org.onap.policy.apex-pdp.core</groupId>
57 <artifactId>core-infrastructure</artifactId>
58 <version>${project.version}</version>
62 <groupId>org.onap.policy.apex-pdp.auth</groupId>
63 <artifactId>cli-editor</artifactId>
64 <version>${project.version}</version>
67 <groupId>org.onap.policy.apex-pdp.plugins.plugins-executor</groupId>
68 <artifactId>plugins-executor-mvel</artifactId>
69 <version>${project.version}</version>
73 <groupId>org.onap.policy.apex-pdp.plugins.plugins-executor</groupId>
74 <artifactId>plugins-executor-javascript</artifactId>
75 <version>${project.version}</version>
83 <groupId>org.codehaus.mojo</groupId>
84 <artifactId>exec-maven-plugin</artifactId>
86 <!-- Generate the APEX Policy JSON files from the APEX CLI command -->
88 <id>generate-policy1m</id>
89 <phase>compile</phase>
94 <mainClass>org.onap.policy.apex.auth.clieditor.ApexCommandLineEditorMain</mainClass>
95 <classpathScope>compile</classpathScope>
98 --command-file=${project.basedir}/src/main/resources/examples/models/MyFirstPolicy/1/${policymodel1m.name}.apex
101 --output-model-file=${project.build.directory}/classes/examples/models/MyFirstPolicy/1/${policymodel1m.name}.json
104 --log-file=${project.build.directory}/${policymodel1m.name}_policygeneration.log
106 <argument>--working-dir=${project.basedir}</argument>
111 <id>generate-policy1j</id>
112 <phase>compile</phase>
117 <mainClass>org.onap.policy.apex.auth.clieditor.ApexCommandLineEditorMain</mainClass>
118 <classpathScope>compile</classpathScope>
121 --command-file=${project.basedir}/src/main/resources/examples/models/MyFirstPolicy/1/${policymodel1j.name}.apex
124 --output-model-file=${project.build.directory}/classes/examples/models/MyFirstPolicy/1/${policymodel1j.name}.json
127 --log-file=${project.build.directory}/${policymodel1j.name}_policygeneration.log
129 <argument>--working-dir=${project.basedir}</argument>
134 <id>generate-policy2</id>
135 <phase>compile</phase>
140 <mainClass>org.onap.policy.apex.auth.clieditor.ApexCommandLineEditorMain</mainClass>
141 <classpathScope>compile</classpathScope>
144 --command-file=${project.basedir}/src/main/resources/examples/models/MyFirstPolicy/2/${policymodel2.name}.apex
147 --output-model-file=${project.build.directory}/classes/examples/models/MyFirstPolicy/2/${policymodel2.name}.json
150 --log-file=${project.build.directory}/${policymodel2.name}_policygeneration.log
152 <argument>--working-dir=${project.basedir}</argument>
157 <id>generate-policy3</id>
158 <phase>compile</phase>
163 <mainClass>org.onap.policy.apex.auth.clieditor.ApexCommandLineEditorMain</mainClass>
164 <classpathScope>compile</classpathScope>
167 --command-file=${project.basedir}/src/main/resources/examples/models/MyFirstPolicy/3/${policymodel3.name}.apex
170 --output-model-file=${project.build.directory}/classes/examples/models/MyFirstPolicy/3/${policymodel3.name}.json
173 --log-file=${project.build.directory}/${policymodel3.name}_policygeneration.log
175 <argument>--working-dir=${project.basedir}</argument>