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