ramverma | 3d02543 | 2018-07-19 18:45:16 +0100 | [diff] [blame] | 1 | <!-- |
| 2 | ============LICENSE_START======================================================= |
| 3 | Copyright (C) 2018 Ericsson. All rights reserved. |
liamfallon | 755eb9d | 2020-01-22 12:11:11 +0000 | [diff] [blame^] | 4 | Modifications Copyright (C) 2020 Nordix Foundation. |
ramverma | 3d02543 | 2018-07-19 18:45:16 +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 | 755eb9d | 2020-01-22 12:11:11 +0000 | [diff] [blame^] | 21 | <project |
| 22 | xmlns="http://maven.apache.org/POM/4.0.0" |
| 23 | xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" |
| 24 | xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> |
ramverma | 3d02543 | 2018-07-19 18:45:16 +0100 | [diff] [blame] | 25 | <modelVersion>4.0.0</modelVersion> |
| 26 | <parent> |
| 27 | <groupId>org.onap.policy.apex-pdp.examples</groupId> |
| 28 | <artifactId>examples</artifactId> |
jrh3 | d7d9df6 | 2019-09-12 10:07:06 -0400 | [diff] [blame] | 29 | <version>2.3.0-SNAPSHOT</version> |
ramverma | 3d02543 | 2018-07-19 18:45:16 +0100 | [diff] [blame] | 30 | </parent> |
| 31 | |
ramverma | f8959f5 | 2018-07-25 17:26:52 +0100 | [diff] [blame] | 32 | <artifactId>examples-pcvs</artifactId> |
ramverma | 3d02543 | 2018-07-19 18:45:16 +0100 | [diff] [blame] | 33 | <name>${project.artifactId}</name> |
| 34 | <description>Example for Policy-controlled Video Streaming</description> |
| 35 | |
| 36 | <properties> |
liamfallon | 755eb9d | 2020-01-22 12:11:11 +0000 | [diff] [blame^] | 37 | <policymodel.name>vpnsla</policymodel.name> |
ramverma | 3d02543 | 2018-07-19 18:45:16 +0100 | [diff] [blame] | 38 | </properties> |
| 39 | |
| 40 | <dependencies> |
liamfallon | 755eb9d | 2020-01-22 12:11:11 +0000 | [diff] [blame^] | 41 | <dependency> |
liamfallon | efdaa0d | 2018-08-03 16:12:01 +0100 | [diff] [blame] | 42 | <groupId>org.onap.policy.common</groupId> |
| 43 | <artifactId>utils</artifactId> |
| 44 | </dependency> |
ramverma | 3d02543 | 2018-07-19 18:45:16 +0100 | [diff] [blame] | 45 | <dependency> |
| 46 | <groupId>org.onap.policy.apex-pdp.model</groupId> |
| 47 | <artifactId>policy-model</artifactId> |
| 48 | <version>${project.version}</version> |
| 49 | </dependency> |
| 50 | <dependency> |
| 51 | <groupId>org.onap.policy.apex-pdp.core</groupId> |
| 52 | <artifactId>core-engine</artifactId> |
| 53 | <version>${project.version}</version> |
| 54 | <scope>test</scope> |
| 55 | </dependency> |
| 56 | <dependency> |
| 57 | <groupId>org.onap.policy.apex-pdp.core</groupId> |
| 58 | <artifactId>core-infrastructure</artifactId> |
| 59 | <version>${project.version}</version> |
| 60 | </dependency> |
| 61 | <dependency> |
| 62 | <groupId>org.onap.policy.apex-pdp.auth</groupId> |
| 63 | <artifactId>cli-editor</artifactId> |
| 64 | <version>${project.version}</version> |
| 65 | </dependency> |
| 66 | <dependency> |
| 67 | <groupId>org.onap.policy.apex-pdp.plugins.plugins-executor</groupId> |
| 68 | <artifactId>plugins-executor-mvel</artifactId> |
| 69 | <version>${project.version}</version> |
| 70 | <scope>test</scope> |
| 71 | </dependency> |
| 72 | <dependency> |
| 73 | <groupId>org.onap.policy.apex-pdp.plugins.plugins-executor</groupId> |
| 74 | <artifactId>plugins-executor-javascript</artifactId> |
| 75 | <version>${project.version}</version> |
| 76 | <scope>test</scope> |
| 77 | </dependency> |
ramverma | 3d02543 | 2018-07-19 18:45:16 +0100 | [diff] [blame] | 78 | </dependencies> |
| 79 | |
| 80 | <build> |
| 81 | <plugins> |
| 82 | <plugin> |
| 83 | <groupId>org.codehaus.mojo</groupId> |
| 84 | <artifactId>exec-maven-plugin</artifactId> |
| 85 | <executions> |
| 86 | <execution> |
liamfallon | 755eb9d | 2020-01-22 12:11:11 +0000 | [diff] [blame^] | 87 | <id>generate-policy</id> |
| 88 | <phase>compile</phase> |
ramverma | 3d02543 | 2018-07-19 18:45:16 +0100 | [diff] [blame] | 89 | <goals> |
liamfallon | 755eb9d | 2020-01-22 12:11:11 +0000 | [diff] [blame^] | 90 | <goal>java</goal> |
ramverma | 3d02543 | 2018-07-19 18:45:16 +0100 | [diff] [blame] | 91 | </goals> |
| 92 | <configuration> |
liamfallon | 755eb9d | 2020-01-22 12:11:11 +0000 | [diff] [blame^] | 93 | <mainClass>org.onap.policy.apex.auth.clieditor.ApexCommandLineEditorMain</mainClass> |
| 94 | <classpathScope>compile</classpathScope> |
ramverma | 3d02543 | 2018-07-19 18:45:16 +0100 | [diff] [blame] | 95 | <arguments> |
liamfallon | 755eb9d | 2020-01-22 12:11:11 +0000 | [diff] [blame^] | 96 | <argument>-command-file=${project.basedir}/src/main/resources/org/onap/policy/apex/examples/pcvs/vpnsla/${policymodel.name}.apex</argument> |
| 97 | <argument>-output-model-file=${project.build.directory}/classes/examples/models/pcvs/vpnsla/${policymodel.name}.json</argument> |
| 98 | <argument>-log-file=${project.build.directory}/${policymodel.name}_policygeneration.log</argument> |
| 99 | <argument>-working-dir=${project.basedir}</argument> |
ramverma | 3d02543 | 2018-07-19 18:45:16 +0100 | [diff] [blame] | 100 | </arguments> |
| 101 | </configuration> |
| 102 | </execution> |
| 103 | </executions> |
| 104 | </plugin> |
| 105 | </plugins> |
| 106 | </build> |
Dinh Danh Le | 6a2abc8 | 2018-08-23 00:41:47 +0100 | [diff] [blame] | 107 | |
| 108 | <profiles> |
| 109 | <profile> |
| 110 | <id>apexSite</id> |
| 111 | <activation> |
| 112 | <property> |
| 113 | <name>apexSite</name> |
| 114 | </property> |
| 115 | </activation> |
| 116 | <properties> |
| 117 | <adsite-examples-pcvs-dir>${project.basedir}/src</adsite-examples-pcvs-dir> |
| 118 | </properties> |
| 119 | <distributionManagement> |
| 120 | <site> |
| 121 | <id>${project.artifactId}-site</id> |
| 122 | <url>${apex.adsite.prefix}/modules/${project.parent.artifactId}/${project.artifactId}/</url> |
| 123 | </site> |
| 124 | </distributionManagement> |
liamfallon | a41c877 | 2018-09-05 15:46:31 +0100 | [diff] [blame] | 125 | <build> |
| 126 | <plugins> |
| 127 | <plugin> |
| 128 | <groupId>org.apache.maven.plugins</groupId> |
| 129 | <artifactId>maven-resources-plugin</artifactId> |
| 130 | <version>3.0.2</version> |
| 131 | <executions> |
| 132 | <execution> |
| 133 | <id>copy-domain-pcvs-images</id> |
| 134 | <phase>initialize</phase> |
| 135 | <goals> |
| 136 | <goal>copy-resources</goal> |
| 137 | </goals> |
| 138 | <configuration> |
| 139 | <resources> |
| 140 | <resource> |
| 141 | <directory>${project.basedir}/src/site-docs/adoc/resources/images</directory> |
| 142 | <includes> |
| 143 | <include>**/*.jpg</include> |
| 144 | <include>**/*.png</include> |
| 145 | </includes> |
| 146 | </resource> |
| 147 | </resources> |
| 148 | <outputDirectory>${project.build.directory}/site/images</outputDirectory> |
| 149 | </configuration> |
| 150 | </execution> |
| 151 | </executions> |
| 152 | </plugin> |
| 153 | </plugins> |
| 154 | </build> |
Dinh Danh Le | 6a2abc8 | 2018-08-23 00:41:47 +0100 | [diff] [blame] | 155 | </profile> |
| 156 | </profiles> |
liamfallon | 755eb9d | 2020-01-22 12:11:11 +0000 | [diff] [blame^] | 157 | </project> |