waynedunican | 724867e | 2023-09-15 08:54:49 +0100 | [diff] [blame] | 1 | <!-- |
| 2 | ============LICENSE_START======================================================= |
| 3 | Copyright (C) 2023 Nordix Foundation. |
| 4 | ================================================================================ |
| 5 | Licensed under the Apache License, Version 2.0 (the "License"); |
| 6 | you may not use this file except in compliance with the License. |
| 7 | You may obtain a copy of the License at |
| 8 | |
| 9 | http://www.apache.org/licenses/LICENSE-2.0 |
| 10 | |
| 11 | Unless required by applicable law or agreed to in writing, software |
| 12 | distributed under the License is distributed on an "AS IS" BASIS, |
| 13 | WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
| 14 | See the License for the specific language governing permissions and |
| 15 | limitations under the License. |
| 16 | |
| 17 | SPDX-License-Identifier: Apache-2.0 |
| 18 | ============LICENSE_END========================================================= |
| 19 | --> |
| 20 | <project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> |
| 21 | <modelVersion>4.0.0</modelVersion> |
| 22 | <parent> |
| 23 | <groupId>org.onap.policy.apex-pdp.examples</groupId> |
| 24 | <artifactId>examples</artifactId> |
adheli.tavares | 2e12a07 | 2024-03-14 13:03:12 +0000 | [diff] [blame^] | 25 | <version>3.1.2-SNAPSHOT</version> |
waynedunican | 724867e | 2023-09-15 08:54:49 +0100 | [diff] [blame] | 26 | </parent> |
| 27 | |
| 28 | <artifactId>examples-decisionmaker-sharedcontext</artifactId> |
| 29 | <name>${project.artifactId}</name> |
| 30 | <description>Specific code for the APEX Decision Maker Example</description> |
| 31 | |
| 32 | <properties> |
| 33 | <policymodel.decisionmaker.name>DecisionMakerPolicyModel</policymodel.decisionmaker.name> |
| 34 | <policymodel.decisionmakertwo.name>DecisionMakerPolicyModel_Decision</policymodel.decisionmakertwo.name> |
| 35 | <apex-domains-decisionmaker-dir>${project.basedir}/src</apex-domains-decisionmaker-dir> |
| 36 | </properties> |
| 37 | |
| 38 | <dependencies> |
| 39 | <dependency> |
| 40 | <groupId>org.onap.policy.apex-pdp.auth</groupId> |
| 41 | <artifactId>cli-editor</artifactId> |
| 42 | <version>${project.version}</version> |
| 43 | </dependency> |
| 44 | <dependency> |
| 45 | <groupId>org.onap.policy.apex-pdp.services</groupId> |
| 46 | <artifactId>services-engine</artifactId> |
| 47 | <version>${project.version}</version> |
| 48 | <scope>test</scope> |
| 49 | </dependency> |
| 50 | <dependency> |
| 51 | <groupId>org.onap.policy.apex-pdp.plugins.plugins-context.plugins-context-schema</groupId> |
| 52 | <artifactId>plugins-context-schema-avro</artifactId> |
| 53 | <version>${project.version}</version> |
| 54 | </dependency> |
| 55 | <dependency> |
| 56 | <groupId>org.onap.policy.apex-pdp.plugins.plugins-executor</groupId> |
| 57 | <artifactId>plugins-executor-javascript</artifactId> |
| 58 | <version>${project.version}</version> |
| 59 | </dependency> |
| 60 | <dependency> |
| 61 | <groupId>org.onap.policy.apex-pdp.plugins.plugins-event.plugins-event-carrier</groupId> |
| 62 | <artifactId>plugins-event-carrier-restserver</artifactId> |
| 63 | <version>${project.version}</version> |
| 64 | </dependency> |
| 65 | </dependencies> |
| 66 | |
| 67 | <build> |
| 68 | <plugins> |
| 69 | <plugin> |
| 70 | <groupId>org.apache.maven.plugins</groupId> |
| 71 | <artifactId>maven-surefire-plugin</artifactId> |
| 72 | <configuration> |
| 73 | <argLine>-Xss1m</argLine> |
| 74 | </configuration> |
| 75 | </plugin> |
| 76 | <!-- Generate the APEX Policy JSON from the APEX CLI command --> |
| 77 | <plugin> |
| 78 | <groupId>org.codehaus.mojo</groupId> |
| 79 | <artifactId>exec-maven-plugin</artifactId> |
| 80 | <executions> |
| 81 | <execution> |
| 82 | <id>generate-decisionmaker-sharedcontext-policy</id> |
| 83 | <phase>compile</phase> |
| 84 | <goals> |
| 85 | <goal>java</goal> |
| 86 | </goals> |
| 87 | <configuration> |
| 88 | <mainClass>org.onap.policy.apex.auth.clieditor.tosca.ApexCliToscaEditorMain</mainClass> |
| 89 | <classpathScope>compile</classpathScope> |
| 90 | <arguments> |
| 91 | <argument>--command-file=${project.basedir}/src/main/resources/policy/${policymodel.decisionmaker.name}.apex</argument> |
| 92 | <argument>--output-tosca-file=${project.build.directory}/classes/${policymodel.decisionmaker.name}.json</argument> |
| 93 | <argument>--log-file=${project.build.directory}/${policymodel.decisionmaker.name}_policygeneration.log</argument> |
| 94 | <argument>--apex-config-file=${project.basedir}/src/main/resources/examples/config/DecisionMaker/ApexConfigRESTServerNoModel.json</argument> |
| 95 | <argument>--tosca-template-file=${project.basedir}/src/main/resources/tosca/ToscaTemplate.json</argument> |
| 96 | </arguments> |
| 97 | </configuration> |
| 98 | </execution> |
| 99 | <execution> |
| 100 | <id>generate-decisionmakertwo-sharedcontext-policy</id> |
| 101 | <phase>compile</phase> |
| 102 | <goals> |
| 103 | <goal>java</goal> |
| 104 | </goals> |
| 105 | <configuration> |
| 106 | <mainClass>org.onap.policy.apex.auth.clieditor.tosca.ApexCliToscaEditorMain</mainClass> |
| 107 | <classpathScope>compile</classpathScope> |
| 108 | <arguments> |
| 109 | <argument>--command-file=${project.basedir}/src/main/resources/policy/${policymodel.decisionmakertwo.name}.apex</argument> |
| 110 | <argument>--output-tosca-file=${project.build.directory}/classes/${policymodel.decisionmakertwo.name}.json</argument> |
| 111 | <argument>--log-file=${project.build.directory}/${policymodel.decisionmakertwo.name}_policygeneration.log</argument> |
| 112 | <argument>--apex-config-file=${project.basedir}/src/main/resources/examples/config/DecisionMaker/ApexConfigRESTServerNoModel_Decision.json</argument> |
| 113 | <argument>--tosca-template-file=${project.basedir}/src/main/resources/tosca/ToscaTemplateTwo.json</argument> |
| 114 | </arguments> |
| 115 | </configuration> |
| 116 | </execution> |
| 117 | </executions> |
| 118 | </plugin> |
| 119 | </plugins> |
| 120 | </build> |
| 121 | </project> |