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 | --> |
liamfallon | 3aa7cbe | 2018-10-31 16:35:54 +0000 | [diff] [blame] | 20 | <project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" 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] | 21 | <modelVersion>4.0.0</modelVersion> |
| 22 | <parent> |
| 23 | <groupId>org.onap.policy.apex-pdp.examples</groupId> |
| 24 | <artifactId>examples</artifactId> |
saul.gill | 2516099 | 2024-05-20 11:08:53 +0100 | [diff] [blame] | 25 | <version>4.0.0-SNAPSHOT</version> |
ramverma | d524ced | 2018-07-24 17:36:53 +0100 | [diff] [blame] | 26 | </parent> |
| 27 | |
| 28 | <artifactId>examples-periodic</artifactId> |
| 29 | <name>${project.artifactId}</name> |
| 30 | <description>APEX periodic event example</description> |
| 31 | |
| 32 | <properties> |
| 33 | <policymodel.name>PeriodicPolicyModel</policymodel.name> |
| 34 | <apex-domains-periodic-dir>${project.basedir}/src</apex-domains-periodic-dir> |
| 35 | </properties> |
| 36 | |
| 37 | <dependencies> |
| 38 | <dependency> |
| 39 | <groupId>org.onap.policy.apex-pdp.auth</groupId> |
| 40 | <artifactId>cli-editor</artifactId> |
| 41 | <version>${project.version}</version> |
| 42 | </dependency> |
| 43 | </dependencies> |
| 44 | |
| 45 | <build> |
| 46 | <plugins> |
| 47 | <!-- Generate the APEX Policy JSON from the APEX CLI command --> |
| 48 | <plugin> |
| 49 | <groupId>org.codehaus.mojo</groupId> |
| 50 | <artifactId>exec-maven-plugin</artifactId> |
| 51 | <executions> |
| 52 | <execution> |
| 53 | <id>generate-policy</id> |
| 54 | <phase>compile</phase> |
| 55 | <goals> |
| 56 | <goal>java</goal> |
| 57 | </goals> |
| 58 | <configuration> |
liamfallon | 4cfa2e2 | 2018-09-13 15:25:32 +0100 | [diff] [blame] | 59 | <mainClass>org.onap.policy.apex.auth.clieditor.ApexCommandLineEditorMain</mainClass> |
ramverma | d524ced | 2018-07-24 17:36:53 +0100 | [diff] [blame] | 60 | <classpathScope>compile</classpathScope> |
| 61 | <arguments> |
| 62 | <argument>--command-file=${project.basedir}/src/main/resources/policy/${policymodel.name}.apex</argument> |
| 63 | <argument>--output-model-file=${project.build.directory}/classes/${policymodel.name}.json</argument> |
| 64 | <argument>--log-file=${project.build.directory}/${policymodel.name}_policygeneration.log</argument> |
| 65 | <argument>--working-dir=${project.basedir}</argument> |
| 66 | </arguments> |
| 67 | </configuration> |
| 68 | </execution> |
| 69 | </executions> |
| 70 | </plugin> |
| 71 | </plugins> |
| 72 | </build> |
a.sreekumar | f1f9a30 | 2020-03-25 23:01:06 +0000 | [diff] [blame] | 73 | </project> |