ramverma | d524ced | 2018-07-24 17:36:53 +0100 | [diff] [blame] | 1 | <!-- |
| 2 | ============LICENSE_START======================================================= |
| 3 | Copyright (C) 2018 Ericsson. All rights reserved. |
liamfallon | 7a8e49a | 2019-12-19 21:42:34 -0600 | [diff] [blame] | 4 | Modifications Copyright (C) 2019-2020 Nordix Foundation. |
ramverma | d524ced | 2018-07-24 17:36:53 +0100 | [diff] [blame] | 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 |
| 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 | --> |
liamfallon | f996ef8 | 2018-10-08 13:36:31 +0100 | [diff] [blame] | 21 | <project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" |
| 22 | xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> |
ramverma | d524ced | 2018-07-24 17:36:53 +0100 | [diff] [blame] | 23 | <modelVersion>4.0.0</modelVersion> |
| 24 | <parent> |
| 25 | <groupId>org.onap.policy.apex-pdp.examples</groupId> |
| 26 | <artifactId>examples</artifactId> |
rameshiyer27 | c1c7c70 | 2024-11-19 17:25:52 +0000 | [diff] [blame^] | 27 | <version>4.1.0-SNAPSHOT</version> |
ramverma | d524ced | 2018-07-24 17:36:53 +0100 | [diff] [blame] | 28 | </parent> |
| 29 | |
| 30 | <artifactId>examples-onap-vcpe</artifactId> |
| 31 | <name>${project.artifactId}</name> |
| 32 | <description>Specific code for the APEX ONAP vCPE Example</description> |
| 33 | |
| 34 | <properties> |
| 35 | <policymodel.name>ONAPvCPEPolicyModel</policymodel.name> |
a.sreekumar | e578dc0 | 2019-10-01 15:32:25 +0100 | [diff] [blame] | 36 | <toscapolicy.name>ONAPvCPEToscaPolicy</toscapolicy.name> |
liamfallon | 7a8e49a | 2019-12-19 21:42:34 -0600 | [diff] [blame] | 37 | <policymodelstandalone.name>ONAPvCPEPolicyModelStandalone</policymodelstandalone.name> |
| 38 | <toscapolicystandalone.name>ONAPvCPEToscaPolicyStandalone</toscapolicystandalone.name> |
ramverma | d524ced | 2018-07-24 17:36:53 +0100 | [diff] [blame] | 39 | <apex-domains-onap-vcpe-dir>${project.basedir}/src</apex-domains-onap-vcpe-dir> |
| 40 | </properties> |
| 41 | |
| 42 | <dependencies> |
| 43 | <dependency> |
| 44 | <groupId>org.onap.policy.apex-pdp.auth</groupId> |
| 45 | <artifactId>cli-editor</artifactId> |
| 46 | <version>${project.version}</version> |
| 47 | </dependency> |
| 48 | <dependency> |
| 49 | <groupId>org.onap.policy.apex-pdp.services</groupId> |
| 50 | <artifactId>services-engine</artifactId> |
| 51 | <version>${project.version}</version> |
liamfallon | cff079a | 2019-01-09 14:30:23 +0100 | [diff] [blame] | 52 | <scope>test</scope> |
ramverma | d524ced | 2018-07-24 17:36:53 +0100 | [diff] [blame] | 53 | </dependency> |
| 54 | <dependency> |
liamfallon | 87be305 | 2018-09-04 17:24:15 +0100 | [diff] [blame] | 55 | <groupId>org.onap.policy.apex-pdp.plugins.plugins-context.plugins-context-schema</groupId> |
| 56 | <artifactId>plugins-context-schema-avro</artifactId> |
| 57 | <version>${project.version}</version> |
| 58 | </dependency> |
| 59 | <dependency> |
| 60 | <groupId>org.onap.policy.apex-pdp.plugins.plugins-executor</groupId> |
| 61 | <artifactId>plugins-executor-javascript</artifactId> |
| 62 | <version>${project.version}</version> |
| 63 | </dependency> |
| 64 | <dependency> |
| 65 | <groupId>org.onap.policy.apex-pdp.plugins.plugins-event.plugins-event-carrier</groupId> |
| 66 | <artifactId>plugins-event-carrier-restrequestor</artifactId> |
| 67 | <version>${project.version}</version> |
| 68 | </dependency> |
liamfallon | f996ef8 | 2018-10-08 13:36:31 +0100 | [diff] [blame] | 69 | <dependency> |
| 70 | <groupId>org.onap.policy.apex-pdp.plugins.plugins-event.plugins-event-carrier</groupId> |
| 71 | <artifactId>plugins-event-carrier-restclient</artifactId> |
| 72 | <version>${project.version}</version> |
| 73 | </dependency> |
| 74 | <dependency> |
| 75 | <groupId>org.onap.policy.models.policy-models-interactions.model-impl</groupId> |
| 76 | <artifactId>aai</artifactId> |
| 77 | <version>${version.policy.models}</version> |
| 78 | </dependency> |
| 79 | <dependency> |
| 80 | <groupId>org.onap.policy.models.policy-models-interactions.model-impl</groupId> |
| 81 | <artifactId>appclcm</artifactId> |
| 82 | <version>${version.policy.models}</version> |
| 83 | </dependency> |
| 84 | <dependency> |
| 85 | <groupId>org.onap.policy.models.policy-models-interactions.model-impl</groupId> |
| 86 | <artifactId>events</artifactId> |
| 87 | <version>${version.policy.models}</version> |
| 88 | </dependency> |
Henry.Sun | 318a989 | 2019-10-09 18:02:56 +0800 | [diff] [blame] | 89 | <dependency> |
| 90 | <groupId>org.onap.policy.common</groupId> |
| 91 | <artifactId>policy-endpoints</artifactId> |
Henry.Sun | 318a989 | 2019-10-09 18:02:56 +0800 | [diff] [blame] | 92 | <scope>test</scope> |
| 93 | </dependency> |
ramverma | d524ced | 2018-07-24 17:36:53 +0100 | [diff] [blame] | 94 | </dependencies> |
| 95 | |
| 96 | <build> |
| 97 | <plugins> |
ramverma | d524ced | 2018-07-24 17:36:53 +0100 | [diff] [blame] | 98 | <plugin> |
| 99 | <groupId>org.codehaus.mojo</groupId> |
| 100 | <artifactId>exec-maven-plugin</artifactId> |
| 101 | <executions> |
liamfallon | b96fc5e | 2019-11-22 17:09:57 +0000 | [diff] [blame] | 102 | <!-- Generate the APEX Policy JSON from the APEX CLI command --> |
ramverma | d524ced | 2018-07-24 17:36:53 +0100 | [diff] [blame] | 103 | <execution> |
| 104 | <id>generate-policy</id> |
| 105 | <phase>compile</phase> |
| 106 | <goals> |
| 107 | <goal>java</goal> |
| 108 | </goals> |
| 109 | <configuration> |
liamfallon | 4cfa2e2 | 2018-09-13 15:25:32 +0100 | [diff] [blame] | 110 | <mainClass>org.onap.policy.apex.auth.clieditor.ApexCommandLineEditorMain</mainClass> |
ramverma | d524ced | 2018-07-24 17:36:53 +0100 | [diff] [blame] | 111 | <classpathScope>compile</classpathScope> |
| 112 | <arguments> |
| 113 | <argument>--command-file=${project.basedir}/src/main/resources/policy/${policymodel.name}.apex</argument> |
| 114 | <argument>--output-model-file=${project.build.directory}/classes/${policymodel.name}.json</argument> |
| 115 | <argument>--log-file=${project.build.directory}/${policymodel.name}_policygeneration.log</argument> |
| 116 | <argument>--working-dir=${project.basedir}</argument> |
| 117 | </arguments> |
| 118 | </configuration> |
| 119 | </execution> |
liamfallon | b96fc5e | 2019-11-22 17:09:57 +0000 | [diff] [blame] | 120 | <!-- Generate the APEX ToscaPolicy JSON file--> |
a.sreekumar | e578dc0 | 2019-10-01 15:32:25 +0100 | [diff] [blame] | 121 | <execution> |
| 122 | <id>generate-tosca-policy</id> |
| 123 | <phase>compile</phase> |
| 124 | <goals> |
| 125 | <goal>java</goal> |
| 126 | </goals> |
| 127 | <configuration> |
| 128 | <mainClass>org.onap.policy.apex.auth.clieditor.tosca.ApexCliToscaEditorMain</mainClass> |
| 129 | <classpathScope>compile</classpathScope> |
| 130 | <arguments> |
| 131 | <argument>--command-file=${project.basedir}/src/main/resources/policy/${policymodel.name}.apex</argument> |
| 132 | <argument>--output-tosca-file=${project.build.directory}/classes/${toscapolicy.name}.json</argument> |
| 133 | <argument>--log-file=${project.build.directory}/${policymodel.name}_policygeneration.log</argument> |
| 134 | <argument>--apex-config-file=${project.basedir}/src/main/resources/examples/config/ONAPvCPE/ApexConfig.json</argument> |
| 135 | <argument>--tosca-template-file=${project.basedir}/src/main/resources/tosca/ToscaTemplate.json</argument> |
| 136 | </arguments> |
| 137 | </configuration> |
| 138 | </execution> |
liamfallon | 7a8e49a | 2019-12-19 21:42:34 -0600 | [diff] [blame] | 139 | <!-- Generate the Standalone APEX Policy JSON from the APEX CLI command --> |
| 140 | <execution> |
| 141 | <id>generate-standalone-policy</id> |
| 142 | <phase>compile</phase> |
| 143 | <goals> |
| 144 | <goal>java</goal> |
| 145 | </goals> |
| 146 | <configuration> |
| 147 | <mainClass>org.onap.policy.apex.auth.clieditor.ApexCommandLineEditorMain</mainClass> |
| 148 | <classpathScope>compile</classpathScope> |
| 149 | <arguments> |
| 150 | <argument>--command-file=${project.basedir}/src/main/resources/policy/${policymodelstandalone.name}.apex</argument> |
| 151 | <argument>--output-model-file=${project.build.directory}/classes/${policymodelstandalone.name}.json</argument> |
| 152 | <argument>--log-file=${project.build.directory}/${policymodelstandalone.name}_policygeneration.log</argument> |
| 153 | <argument>--working-dir=${project.basedir}</argument> |
| 154 | </arguments> |
| 155 | </configuration> |
| 156 | </execution> |
| 157 | <!-- Generate the standalone APEX ToscaPolicy JSON file--> |
| 158 | <execution> |
| 159 | <id>generate-standalone-tosca-policy</id> |
| 160 | <phase>compile</phase> |
| 161 | <goals> |
| 162 | <goal>java</goal> |
| 163 | </goals> |
| 164 | <configuration> |
| 165 | <mainClass>org.onap.policy.apex.auth.clieditor.tosca.ApexCliToscaEditorMain</mainClass> |
| 166 | <classpathScope>compile</classpathScope> |
| 167 | <arguments> |
| 168 | <argument>--command-file=${project.basedir}/src/main/resources/policy/${policymodelstandalone.name}.apex</argument> |
| 169 | <argument>--output-tosca-file=${project.build.directory}/classes/${toscapolicystandalone.name}.json</argument> |
| 170 | <argument>--log-file=${project.build.directory}/${policymodelstandalone.name}_policygeneration.log</argument> |
| 171 | <argument>--apex-config-file=${project.basedir}/src/main/resources/examples/config/ONAPvCPEStandalone/ApexConfig.json</argument> |
| 172 | <argument>--tosca-template-file=${project.basedir}/src/main/resources/tosca/ToscaTemplate.json</argument> |
| 173 | </arguments> |
| 174 | </configuration> |
| 175 | </execution> |
a.sreekumar | e578dc0 | 2019-10-01 15:32:25 +0100 | [diff] [blame] | 176 | </executions> |
| 177 | </plugin> |
ramverma | d524ced | 2018-07-24 17:36:53 +0100 | [diff] [blame] | 178 | </plugins> |
| 179 | </build> |
liamfallon | f996ef8 | 2018-10-08 13:36:31 +0100 | [diff] [blame] | 180 | </project> |