ramverma | d524ced | 2018-07-24 17:36:53 +0100 | [diff] [blame] | 1 | <!-- |
| 2 | ============LICENSE_START======================================================= |
| 3 | Copyright (C) 2018 Ericsson. All rights reserved. |
| 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" |
| 21 | xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> |
| 22 | <modelVersion>4.0.0</modelVersion> |
| 23 | <parent> |
| 24 | <groupId>org.onap.policy.apex-pdp.examples</groupId> |
| 25 | <artifactId>examples</artifactId> |
| 26 | <version>2.0.0-SNAPSHOT</version> |
| 27 | </parent> |
| 28 | |
| 29 | <artifactId>examples-onap-vcpe</artifactId> |
| 30 | <name>${project.artifactId}</name> |
| 31 | <description>Specific code for the APEX ONAP vCPE Example</description> |
| 32 | |
| 33 | <properties> |
| 34 | <policymodel.name>ONAPvCPEPolicyModel</policymodel.name> |
| 35 | <apex-domains-onap-vcpe-dir>${project.basedir}/src</apex-domains-onap-vcpe-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 | </dependency> |
| 49 | <dependency> |
| 50 | <groupId>org.glassfish.jersey.containers</groupId> |
| 51 | <artifactId>jersey-container-grizzly2-http</artifactId> |
| 52 | <version>${version.jersey}</version> |
| 53 | <scope>test</scope> |
| 54 | </dependency> |
liamfallon | 87be305 | 2018-09-04 17:24:15 +0100 | [diff] [blame] | 55 | <dependency> |
| 56 | <groupId>org.onap.policy.apex-pdp.plugins.plugins-context.plugins-context-schema</groupId> |
| 57 | <artifactId>plugins-context-schema-avro</artifactId> |
| 58 | <version>${project.version}</version> |
| 59 | </dependency> |
| 60 | <dependency> |
| 61 | <groupId>org.onap.policy.apex-pdp.plugins.plugins-executor</groupId> |
| 62 | <artifactId>plugins-executor-javascript</artifactId> |
| 63 | <version>${project.version}</version> |
| 64 | </dependency> |
| 65 | <dependency> |
| 66 | <groupId>org.onap.policy.apex-pdp.plugins.plugins-event.plugins-event-carrier</groupId> |
| 67 | <artifactId>plugins-event-carrier-restrequestor</artifactId> |
| 68 | <version>${project.version}</version> |
| 69 | </dependency> |
ramverma | d524ced | 2018-07-24 17:36:53 +0100 | [diff] [blame] | 70 | </dependencies> |
| 71 | |
| 72 | <build> |
| 73 | <plugins> |
| 74 | <!-- Generate the APEX Policy JSON from the APEX CLI command --> |
| 75 | <plugin> |
| 76 | <groupId>org.codehaus.mojo</groupId> |
| 77 | <artifactId>exec-maven-plugin</artifactId> |
| 78 | <executions> |
| 79 | <execution> |
| 80 | <id>generate-policy</id> |
| 81 | <phase>compile</phase> |
| 82 | <goals> |
| 83 | <goal>java</goal> |
| 84 | </goals> |
| 85 | <configuration> |
liamfallon | 4cfa2e2 | 2018-09-13 15:25:32 +0100 | [diff] [blame^] | 86 | <mainClass>org.onap.policy.apex.auth.clieditor.ApexCommandLineEditorMain</mainClass> |
ramverma | d524ced | 2018-07-24 17:36:53 +0100 | [diff] [blame] | 87 | <classpathScope>compile</classpathScope> |
| 88 | <arguments> |
| 89 | <argument>--command-file=${project.basedir}/src/main/resources/policy/${policymodel.name}.apex</argument> |
| 90 | <argument>--output-model-file=${project.build.directory}/classes/${policymodel.name}.json</argument> |
| 91 | <argument>--log-file=${project.build.directory}/${policymodel.name}_policygeneration.log</argument> |
| 92 | <argument>--working-dir=${project.basedir}</argument> |
| 93 | </arguments> |
| 94 | </configuration> |
| 95 | </execution> |
| 96 | </executions> |
| 97 | </plugin> |
| 98 | </plugins> |
| 99 | </build> |
Dinh Danh Le | 6a2abc8 | 2018-08-23 00:41:47 +0100 | [diff] [blame] | 100 | |
| 101 | <profiles> |
| 102 | <profile> |
| 103 | <id>apexSite</id> |
| 104 | <activation> |
| 105 | <property> |
| 106 | <name>apexSite</name> |
| 107 | </property> |
| 108 | </activation> |
| 109 | <properties> |
| 110 | <adsite-examples-onap-vcpe-dir>${project.basedir}/src</adsite-examples-onap-vcpe-dir> |
| 111 | </properties> |
| 112 | <distributionManagement> |
| 113 | <site> |
| 114 | <id>${project.artifactId}-site</id> |
| 115 | <url>${apex.adsite.prefix}/modules/${project.parent.artifactId}/${project.artifactId}/</url> |
| 116 | </site> |
| 117 | </distributionManagement> |
| 118 | </profile> |
| 119 | </profiles> |
ramverma | d524ced | 2018-07-24 17:36:53 +0100 | [diff] [blame] | 120 | </project> |