ramverma | d524ced | 2018-07-24 17:36:53 +0100 | [diff] [blame] | 1 | <!-- |
| 2 | ============LICENSE_START======================================================= |
| 3 | Copyright (C) 2018 Ericsson. All rights reserved. |
liamfallon | cff079a | 2019-01-09 14:30:23 +0100 | [diff] [blame] | 4 | Copyright (C) 2019 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> |
jrh3 | d7d9df6 | 2019-09-12 10:07:06 -0400 | [diff] [blame] | 27 | <version>2.3.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> |
ramverma | d524ced | 2018-07-24 17:36:53 +0100 | [diff] [blame] | 37 | <apex-domains-onap-vcpe-dir>${project.basedir}/src</apex-domains-onap-vcpe-dir> |
| 38 | </properties> |
| 39 | |
| 40 | <dependencies> |
| 41 | <dependency> |
| 42 | <groupId>org.onap.policy.apex-pdp.auth</groupId> |
| 43 | <artifactId>cli-editor</artifactId> |
| 44 | <version>${project.version}</version> |
| 45 | </dependency> |
| 46 | <dependency> |
| 47 | <groupId>org.onap.policy.apex-pdp.services</groupId> |
| 48 | <artifactId>services-engine</artifactId> |
| 49 | <version>${project.version}</version> |
liamfallon | cff079a | 2019-01-09 14:30:23 +0100 | [diff] [blame] | 50 | <scope>test</scope> |
ramverma | d524ced | 2018-07-24 17:36:53 +0100 | [diff] [blame] | 51 | </dependency> |
| 52 | <dependency> |
liamfallon | 87be305 | 2018-09-04 17:24:15 +0100 | [diff] [blame] | 53 | <groupId>org.onap.policy.apex-pdp.plugins.plugins-context.plugins-context-schema</groupId> |
| 54 | <artifactId>plugins-context-schema-avro</artifactId> |
| 55 | <version>${project.version}</version> |
| 56 | </dependency> |
| 57 | <dependency> |
| 58 | <groupId>org.onap.policy.apex-pdp.plugins.plugins-executor</groupId> |
| 59 | <artifactId>plugins-executor-javascript</artifactId> |
| 60 | <version>${project.version}</version> |
| 61 | </dependency> |
| 62 | <dependency> |
| 63 | <groupId>org.onap.policy.apex-pdp.plugins.plugins-event.plugins-event-carrier</groupId> |
| 64 | <artifactId>plugins-event-carrier-restrequestor</artifactId> |
| 65 | <version>${project.version}</version> |
| 66 | </dependency> |
liamfallon | f996ef8 | 2018-10-08 13:36:31 +0100 | [diff] [blame] | 67 | <dependency> |
| 68 | <groupId>org.onap.policy.apex-pdp.plugins.plugins-event.plugins-event-carrier</groupId> |
| 69 | <artifactId>plugins-event-carrier-restclient</artifactId> |
| 70 | <version>${project.version}</version> |
| 71 | </dependency> |
| 72 | <dependency> |
| 73 | <groupId>org.onap.policy.models.policy-models-interactions.model-impl</groupId> |
| 74 | <artifactId>aai</artifactId> |
| 75 | <version>${version.policy.models}</version> |
| 76 | </dependency> |
| 77 | <dependency> |
| 78 | <groupId>org.onap.policy.models.policy-models-interactions.model-impl</groupId> |
| 79 | <artifactId>appclcm</artifactId> |
| 80 | <version>${version.policy.models}</version> |
| 81 | </dependency> |
| 82 | <dependency> |
| 83 | <groupId>org.onap.policy.models.policy-models-interactions.model-impl</groupId> |
| 84 | <artifactId>events</artifactId> |
| 85 | <version>${version.policy.models}</version> |
| 86 | </dependency> |
Henry.Sun | 318a989 | 2019-10-09 18:02:56 +0800 | [diff] [blame] | 87 | <dependency> |
| 88 | <groupId>org.onap.policy.common</groupId> |
| 89 | <artifactId>policy-endpoints</artifactId> |
Henry.Sun | 318a989 | 2019-10-09 18:02:56 +0800 | [diff] [blame] | 90 | <scope>test</scope> |
| 91 | </dependency> |
ramverma | d524ced | 2018-07-24 17:36:53 +0100 | [diff] [blame] | 92 | </dependencies> |
| 93 | |
| 94 | <build> |
| 95 | <plugins> |
ramverma | d524ced | 2018-07-24 17:36:53 +0100 | [diff] [blame] | 96 | <plugin> |
| 97 | <groupId>org.codehaus.mojo</groupId> |
| 98 | <artifactId>exec-maven-plugin</artifactId> |
| 99 | <executions> |
liamfallon | b96fc5e | 2019-11-22 17:09:57 +0000 | [diff] [blame] | 100 | <!-- Generate the APEX Policy JSON from the APEX CLI command --> |
ramverma | d524ced | 2018-07-24 17:36:53 +0100 | [diff] [blame] | 101 | <execution> |
| 102 | <id>generate-policy</id> |
| 103 | <phase>compile</phase> |
| 104 | <goals> |
| 105 | <goal>java</goal> |
| 106 | </goals> |
| 107 | <configuration> |
liamfallon | 4cfa2e2 | 2018-09-13 15:25:32 +0100 | [diff] [blame] | 108 | <mainClass>org.onap.policy.apex.auth.clieditor.ApexCommandLineEditorMain</mainClass> |
ramverma | d524ced | 2018-07-24 17:36:53 +0100 | [diff] [blame] | 109 | <classpathScope>compile</classpathScope> |
| 110 | <arguments> |
| 111 | <argument>--command-file=${project.basedir}/src/main/resources/policy/${policymodel.name}.apex</argument> |
| 112 | <argument>--output-model-file=${project.build.directory}/classes/${policymodel.name}.json</argument> |
| 113 | <argument>--log-file=${project.build.directory}/${policymodel.name}_policygeneration.log</argument> |
| 114 | <argument>--working-dir=${project.basedir}</argument> |
| 115 | </arguments> |
| 116 | </configuration> |
| 117 | </execution> |
liamfallon | b96fc5e | 2019-11-22 17:09:57 +0000 | [diff] [blame] | 118 | <!-- Generate the APEX ToscaPolicy JSON file--> |
a.sreekumar | e578dc0 | 2019-10-01 15:32:25 +0100 | [diff] [blame] | 119 | <execution> |
| 120 | <id>generate-tosca-policy</id> |
| 121 | <phase>compile</phase> |
| 122 | <goals> |
| 123 | <goal>java</goal> |
| 124 | </goals> |
| 125 | <configuration> |
| 126 | <mainClass>org.onap.policy.apex.auth.clieditor.tosca.ApexCliToscaEditorMain</mainClass> |
| 127 | <classpathScope>compile</classpathScope> |
| 128 | <arguments> |
| 129 | <argument>--command-file=${project.basedir}/src/main/resources/policy/${policymodel.name}.apex</argument> |
| 130 | <argument>--output-tosca-file=${project.build.directory}/classes/${toscapolicy.name}.json</argument> |
| 131 | <argument>--log-file=${project.build.directory}/${policymodel.name}_policygeneration.log</argument> |
| 132 | <argument>--apex-config-file=${project.basedir}/src/main/resources/examples/config/ONAPvCPE/ApexConfig.json</argument> |
| 133 | <argument>--tosca-template-file=${project.basedir}/src/main/resources/tosca/ToscaTemplate.json</argument> |
| 134 | </arguments> |
| 135 | </configuration> |
| 136 | </execution> |
| 137 | </executions> |
| 138 | </plugin> |
ramverma | d524ced | 2018-07-24 17:36:53 +0100 | [diff] [blame] | 139 | </plugins> |
| 140 | </build> |
Dinh Danh Le | 6a2abc8 | 2018-08-23 00:41:47 +0100 | [diff] [blame] | 141 | |
| 142 | <profiles> |
| 143 | <profile> |
| 144 | <id>apexSite</id> |
| 145 | <activation> |
| 146 | <property> |
| 147 | <name>apexSite</name> |
| 148 | </property> |
| 149 | </activation> |
| 150 | <properties> |
| 151 | <adsite-examples-onap-vcpe-dir>${project.basedir}/src</adsite-examples-onap-vcpe-dir> |
| 152 | </properties> |
| 153 | <distributionManagement> |
| 154 | <site> |
| 155 | <id>${project.artifactId}-site</id> |
| 156 | <url>${apex.adsite.prefix}/modules/${project.parent.artifactId}/${project.artifactId}/</url> |
| 157 | </site> |
| 158 | </distributionManagement> |
| 159 | </profile> |
| 160 | </profiles> |
liamfallon | f996ef8 | 2018-10-08 13:36:31 +0100 | [diff] [blame] | 161 | </project> |