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-periodic</artifactId> |
| 30 | <name>${project.artifactId}</name> |
| 31 | <description>APEX periodic event example</description> |
| 32 | |
| 33 | <properties> |
| 34 | <policymodel.name>PeriodicPolicyModel</policymodel.name> |
| 35 | <apex-domains-periodic-dir>${project.basedir}/src</apex-domains-periodic-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 | </dependencies> |
| 45 | |
| 46 | <build> |
| 47 | <plugins> |
| 48 | <!-- Generate the APEX Policy JSON from the APEX CLI command --> |
| 49 | <plugin> |
| 50 | <groupId>org.codehaus.mojo</groupId> |
| 51 | <artifactId>exec-maven-plugin</artifactId> |
| 52 | <executions> |
| 53 | <execution> |
| 54 | <id>generate-policy</id> |
| 55 | <phase>compile</phase> |
| 56 | <goals> |
| 57 | <goal>java</goal> |
| 58 | </goals> |
| 59 | <configuration> |
| 60 | <mainClass>org.onap.policy.apex.auth.clieditor.ApexCLIEditorMain</mainClass> |
| 61 | <classpathScope>compile</classpathScope> |
| 62 | <arguments> |
| 63 | <argument>--command-file=${project.basedir}/src/main/resources/policy/${policymodel.name}.apex</argument> |
| 64 | <argument>--output-model-file=${project.build.directory}/classes/${policymodel.name}.json</argument> |
| 65 | <argument>--log-file=${project.build.directory}/${policymodel.name}_policygeneration.log</argument> |
| 66 | <argument>--working-dir=${project.basedir}</argument> |
| 67 | </arguments> |
| 68 | </configuration> |
| 69 | </execution> |
| 70 | </executions> |
| 71 | </plugin> |
| 72 | </plugins> |
| 73 | </build> |
| 74 | </project> |