aboutsummaryrefslogtreecommitdiffstats
path: root/examples/examples-myfirstpolicy/pom.xml
diff options
context:
space:
mode:
authorwaynedunican <wayne.dunican@est.tech>2023-06-09 09:56:49 +0100
committerLiam Fallon <liam.fallon@est.tech>2023-06-15 14:41:14 +0000
commit4e0f76b5746ac333907a1415b135ffee89f21fa4 (patch)
treebb2cd3b43bfa59e7f549ddd165a318de2cc38a54 /examples/examples-myfirstpolicy/pom.xml
parentab917840ef7dca6d4127add0beb274924bbc17bd (diff)
Add AVRO example for MyFirstPolicylondon
- Avro example added for MFP - Documentation review to follow - Avro schemaTypes created individally in .avsc files Issue-ID: POLICY-4691 Change-Id: I6be22763eeac9251d75b80f67052ba4ae7274f75 Signed-off-by: waynedunican <wayne.dunican@est.tech> (cherry picked from commit 6b9adb56fe3af31b06a5d5a218d016e0d8780121)
Diffstat (limited to 'examples/examples-myfirstpolicy/pom.xml')
-rw-r--r--examples/examples-myfirstpolicy/pom.xml24
1 files changed, 24 insertions, 0 deletions
diff --git a/examples/examples-myfirstpolicy/pom.xml b/examples/examples-myfirstpolicy/pom.xml
index 04e825329..2884d832a 100644
--- a/examples/examples-myfirstpolicy/pom.xml
+++ b/examples/examples-myfirstpolicy/pom.xml
@@ -38,6 +38,7 @@
<policymodel1j.name>MyFirstPolicyModelJavascript_0.0.1</policymodel1j.name>
<policymodel2.name>MyFirstPolicyModel_0.0.1</policymodel2.name>
<policymodel3.name>MyFirstPolicyModelSFL_0.0.1</policymodel3.name>
+ <policymodel4.name>MyFirstPolicyModelAvro_0.0.1</policymodel4.name>
</properties>
<dependencies>
@@ -170,6 +171,29 @@
</arguments>
</configuration>
</execution>
+ <execution>
+ <id>generate-policy4</id>
+ <phase>compile</phase>
+ <goals>
+ <goal>java</goal>
+ </goals>
+ <configuration>
+ <mainClass>org.onap.policy.apex.auth.clieditor.ApexCommandLineEditorMain</mainClass>
+ <classpathScope>compile</classpathScope>
+ <arguments>
+ <argument>
+ --command-file=${project.basedir}/src/main/resources/examples/models/MyFirstPolicy/4/${policymodel4.name}.apex
+ </argument>
+ <argument>
+ --output-model-file=${project.build.directory}/classes/examples/models/MyFirstPolicy/4/${policymodel4.name}.json
+ </argument>
+ <argument>
+ --log-file=${project.build.directory}/${policymodel4.name}_policygeneration.log
+ </argument>
+ <argument>--working-dir=${project.basedir}</argument>
+ </arguments>
+ </configuration>
+ </execution>
</executions>
</plugin>
</plugins>