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