blob: b8ec049752ee6bf2a2e79f8370a5cf21c30d890e [file] [log] [blame]
ramverma3d025432018-07-19 18:45:16 +01001<!--
2 ============LICENSE_START=======================================================
3 Copyright (C) 2018 Ericsson. All rights reserved.
liamfallonf0fd9642022-02-11 00:43:14 +00004 Modifications Copyright (C) 2020,2022 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
aditya.puthuparambil42cd61a2020-04-01 13:20:53 +010022 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>
26 <parent>
27 <groupId>org.onap.policy.apex-pdp.examples</groupId>
28 <artifactId>examples</artifactId>
liamfallon00e1d222023-10-18 15:48:30 +010029 <version>3.0.2-SNAPSHOT</version>
aditya.puthuparambil42cd61a2020-04-01 13:20:53 +010030 </parent>
ramverma3d025432018-07-19 18:45:16 +010031
aditya.puthuparambil42cd61a2020-04-01 13:20:53 +010032 <artifactId>examples-myfirstpolicy</artifactId>
33 <name>${project.artifactId}</name>
34 <description>Specific code for the Apex MyFirstPolicy Example</description>
ramverma3d025432018-07-19 18:45:16 +010035
aditya.puthuparambil42cd61a2020-04-01 13:20:53 +010036 <properties>
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>
waynedunican6b9adb52023-06-09 09:56:49 +010041 <policymodel4.name>MyFirstPolicyModelAvro_0.0.1</policymodel4.name>
aditya.puthuparambil42cd61a2020-04-01 13:20:53 +010042 </properties>
ramverma3d025432018-07-19 18:45:16 +010043
aditya.puthuparambil42cd61a2020-04-01 13:20:53 +010044 <dependencies>
45 <dependency>
46 <groupId>org.onap.policy.apex-pdp.model</groupId>
liamfallon85347562022-02-10 12:06:25 +000047 <artifactId>model</artifactId>
aditya.puthuparambil42cd61a2020-04-01 13:20:53 +010048 <version>${project.version}</version>
49 </dependency>
50 <dependency>
51 <groupId>org.onap.policy.apex-pdp.core</groupId>
liamfallonf0fd9642022-02-11 00:43:14 +000052 <artifactId>core</artifactId>
aditya.puthuparambil42cd61a2020-04-01 13:20:53 +010053 <version>${project.version}</version>
54 <scope>test</scope>
55 </dependency>
56 <dependency>
57 <groupId>org.onap.policy.apex-pdp.auth</groupId>
58 <artifactId>cli-editor</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-mvel</artifactId>
64 <version>${project.version}</version>
65 <scope>test</scope>
66 </dependency>
67 <dependency>
68 <groupId>org.onap.policy.apex-pdp.plugins.plugins-executor</groupId>
69 <artifactId>plugins-executor-javascript</artifactId>
70 <version>${project.version}</version>
71 <scope>test</scope>
72 </dependency>
73 </dependencies>
ramverma3d025432018-07-19 18:45:16 +010074
aditya.puthuparambil42cd61a2020-04-01 13:20:53 +010075 <build>
76 <plugins>
77 <plugin>
78 <groupId>org.codehaus.mojo</groupId>
79 <artifactId>exec-maven-plugin</artifactId>
80 <executions>
81 <!-- Generate the APEX Policy JSON files from the APEX CLI command -->
82 <execution>
83 <id>generate-policy1m</id>
84 <phase>compile</phase>
85 <goals>
86 <goal>java</goal>
87 </goals>
88 <configuration>
89 <mainClass>org.onap.policy.apex.auth.clieditor.ApexCommandLineEditorMain</mainClass>
90 <classpathScope>compile</classpathScope>
91 <arguments>
92 <argument>
93 --command-file=${project.basedir}/src/main/resources/examples/models/MyFirstPolicy/1/${policymodel1m.name}.apex
94 </argument>
95 <argument>
96 --output-model-file=${project.build.directory}/classes/examples/models/MyFirstPolicy/1/${policymodel1m.name}.json
97 </argument>
98 <argument>
99 --log-file=${project.build.directory}/${policymodel1m.name}_policygeneration.log
100 </argument>
101 <argument>--working-dir=${project.basedir}</argument>
102 </arguments>
103 </configuration>
104 </execution>
105 <execution>
106 <id>generate-policy1j</id>
107 <phase>compile</phase>
108 <goals>
109 <goal>java</goal>
110 </goals>
111 <configuration>
112 <mainClass>org.onap.policy.apex.auth.clieditor.ApexCommandLineEditorMain</mainClass>
113 <classpathScope>compile</classpathScope>
114 <arguments>
115 <argument>
116 --command-file=${project.basedir}/src/main/resources/examples/models/MyFirstPolicy/1/${policymodel1j.name}.apex
117 </argument>
118 <argument>
119 --output-model-file=${project.build.directory}/classes/examples/models/MyFirstPolicy/1/${policymodel1j.name}.json
120 </argument>
121 <argument>
122 --log-file=${project.build.directory}/${policymodel1j.name}_policygeneration.log
123 </argument>
124 <argument>--working-dir=${project.basedir}</argument>
125 </arguments>
126 </configuration>
127 </execution>
128 <execution>
129 <id>generate-policy2</id>
130 <phase>compile</phase>
131 <goals>
132 <goal>java</goal>
133 </goals>
134 <configuration>
135 <mainClass>org.onap.policy.apex.auth.clieditor.ApexCommandLineEditorMain</mainClass>
136 <classpathScope>compile</classpathScope>
137 <arguments>
138 <argument>
139 --command-file=${project.basedir}/src/main/resources/examples/models/MyFirstPolicy/2/${policymodel2.name}.apex
140 </argument>
141 <argument>
142 --output-model-file=${project.build.directory}/classes/examples/models/MyFirstPolicy/2/${policymodel2.name}.json
143 </argument>
144 <argument>
145 --log-file=${project.build.directory}/${policymodel2.name}_policygeneration.log
146 </argument>
147 <argument>--working-dir=${project.basedir}</argument>
148 </arguments>
149 </configuration>
150 </execution>
151 <execution>
152 <id>generate-policy3</id>
153 <phase>compile</phase>
154 <goals>
155 <goal>java</goal>
156 </goals>
157 <configuration>
158 <mainClass>org.onap.policy.apex.auth.clieditor.ApexCommandLineEditorMain</mainClass>
159 <classpathScope>compile</classpathScope>
160 <arguments>
161 <argument>
162 --command-file=${project.basedir}/src/main/resources/examples/models/MyFirstPolicy/3/${policymodel3.name}.apex
163 </argument>
164 <argument>
165 --output-model-file=${project.build.directory}/classes/examples/models/MyFirstPolicy/3/${policymodel3.name}.json
166 </argument>
167 <argument>
168 --log-file=${project.build.directory}/${policymodel3.name}_policygeneration.log
169 </argument>
170 <argument>--working-dir=${project.basedir}</argument>
171 </arguments>
172 </configuration>
173 </execution>
waynedunican6b9adb52023-06-09 09:56:49 +0100174 <execution>
175 <id>generate-policy4</id>
176 <phase>compile</phase>
177 <goals>
178 <goal>java</goal>
179 </goals>
180 <configuration>
181 <mainClass>org.onap.policy.apex.auth.clieditor.ApexCommandLineEditorMain</mainClass>
182 <classpathScope>compile</classpathScope>
183 <arguments>
184 <argument>
185 --command-file=${project.basedir}/src/main/resources/examples/models/MyFirstPolicy/4/${policymodel4.name}.apex
186 </argument>
187 <argument>
188 --output-model-file=${project.build.directory}/classes/examples/models/MyFirstPolicy/4/${policymodel4.name}.json
189 </argument>
190 <argument>
191 --log-file=${project.build.directory}/${policymodel4.name}_policygeneration.log
192 </argument>
193 <argument>--working-dir=${project.basedir}</argument>
194 </arguments>
195 </configuration>
196 </execution>
aditya.puthuparambil42cd61a2020-04-01 13:20:53 +0100197 </executions>
198 </plugin>
199 </plugins>
200 </build>
a.sreekumarf1f9a302020-03-25 23:01:06 +0000201</project>