aboutsummaryrefslogtreecommitdiffstats
path: root/examples/examples-myfirstpolicy/pom.xml
diff options
context:
space:
mode:
authorRam Krishna Verma <ram_krishna.verma@bell.ca>2020-03-11 20:52:09 +0000
committerGerrit Code Review <gerrit@onap.org>2020-03-11 20:52:09 +0000
commit4e6bd1d02227591d1517245f5bda690ec4eb770e (patch)
tree2903208d905a385ed38e12d700881f00867b7e4b /examples/examples-myfirstpolicy/pom.xml
parentee817eb18923cb1c0423f9f7d9ea93681dafd302 (diff)
parentb87ab1696010ca0bbed5db99c140cf908722df57 (diff)
Merge "Convert examples to Rhino Javascript format"
Diffstat (limited to 'examples/examples-myfirstpolicy/pom.xml')
-rw-r--r--examples/examples-myfirstpolicy/pom.xml26
1 files changed, 12 insertions, 14 deletions
diff --git a/examples/examples-myfirstpolicy/pom.xml b/examples/examples-myfirstpolicy/pom.xml
index ec61748f0..65349d1b3 100644
--- a/examples/examples-myfirstpolicy/pom.xml
+++ b/examples/examples-myfirstpolicy/pom.xml
@@ -34,7 +34,8 @@
<description>Specific code for the Apex MyFirstPolicy Example</description>
<properties>
- <policymodel1.name>MyFirstPolicyModel_0.0.1</policymodel1.name>
+ <policymodel1m.name>MyFirstPolicyModelMvel_0.0.1</policymodel1m.name>
+ <policymodel1j.name>MyFirstPolicyModelJavascript_0.0.1</policymodel1j.name>
<policymodel2.name>MyFirstPolicyModel_0.0.1</policymodel2.name>
</properties>
@@ -81,29 +82,26 @@
<groupId>org.codehaus.mojo</groupId>
<artifactId>exec-maven-plugin</artifactId>
<executions>
+ <!-- Generate the APEX Policy JSON files from the APEX CLI command -->
<execution>
- <id>generate-models</id>
+ <id>generate-policy1m</id>
<phase>compile</phase>
<goals>
<goal>java</goal>
</goals>
<configuration>
- <mainClass>org.onap.policy.apex.examples.myfirstpolicy.model.MfpDomainModelSaver</mainClass>
+ <mainClass>org.onap.policy.apex.auth.clieditor.ApexCommandLineEditorMain</mainClass>
<classpathScope>compile</classpathScope>
<arguments>
- <argument>${project.build.directory}/classes/examples/models/MyFirstPolicy</argument>
+ <argument>--command-file=${project.basedir}/src/main/resources/examples/models/MyFirstPolicy/1/${policymodel1m.name}.apex</argument>
+ <argument>--output-model-file=${project.build.directory}/classes/examples/models/MyFirstPolicy/1/${policymodel1m.name}.json</argument>
+ <argument>--log-file=${project.build.directory}/${policymodel1.name}_policygeneration.log</argument>
+ <argument>--working-dir=${project.basedir}</argument>
</arguments>
</configuration>
</execution>
- </executions>
- </plugin>
- <plugin>
- <groupId>org.codehaus.mojo</groupId>
- <artifactId>exec-maven-plugin</artifactId>
- <executions>
- <!-- Generate the APEX Policy JSON files from the APEX CLI command -->
<execution>
- <id>generate-policy1</id>
+ <id>generate-policy1j</id>
<phase>compile</phase>
<goals>
<goal>java</goal>
@@ -112,8 +110,8 @@
<mainClass>org.onap.policy.apex.auth.clieditor.ApexCommandLineEditorMain</mainClass>
<classpathScope>compile</classpathScope>
<arguments>
- <argument>--command-file=${project.basedir}/src/main/resources/examples/models/MyFirstPolicy/1/${policymodel1.name}.apex</argument>
- <argument>--output-model-file=${project.build.directory}/classes/examples/models/MyFirstPolicy/1/${policymodel1.name}.json</argument>
+ <argument>--command-file=${project.basedir}/src/main/resources/examples/models/MyFirstPolicy/1/${policymodel1j.name}.apex</argument>
+ <argument>--output-model-file=${project.build.directory}/classes/examples/models/MyFirstPolicy/1/${policymodel1j.name}.json</argument>
<argument>--log-file=${project.build.directory}/${policymodel1.name}_policygeneration.log</argument>
<argument>--working-dir=${project.basedir}</argument>
</arguments>