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> |
| 55 | </dependencies> |
| 56 | |
| 57 | <build> |
| 58 | <plugins> |
| 59 | <!-- Generate the APEX Policy JSON from the APEX CLI command --> |
| 60 | <plugin> |
| 61 | <groupId>org.codehaus.mojo</groupId> |
| 62 | <artifactId>exec-maven-plugin</artifactId> |
| 63 | <executions> |
| 64 | <execution> |
| 65 | <id>generate-policy</id> |
| 66 | <phase>compile</phase> |
| 67 | <goals> |
| 68 | <goal>java</goal> |
| 69 | </goals> |
| 70 | <configuration> |
| 71 | <mainClass>org.onap.policy.apex.auth.clieditor.ApexCLIEditorMain</mainClass> |
| 72 | <classpathScope>compile</classpathScope> |
| 73 | <arguments> |
| 74 | <argument>--command-file=${project.basedir}/src/main/resources/policy/${policymodel.name}.apex</argument> |
| 75 | <argument>--output-model-file=${project.build.directory}/classes/${policymodel.name}.json</argument> |
| 76 | <argument>--log-file=${project.build.directory}/${policymodel.name}_policygeneration.log</argument> |
| 77 | <argument>--working-dir=${project.basedir}</argument> |
| 78 | </arguments> |
| 79 | </configuration> |
| 80 | </execution> |
| 81 | </executions> |
| 82 | </plugin> |
| 83 | </plugins> |
| 84 | </build> |
| 85 | </project> |