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-aadm</artifactId> |
ramverma | 3d02543 | 2018-07-19 18:45:16 +0100 | [diff] [blame] | 30 | <name>${project.artifactId}</name> |
| 31 | <description>Specific code for the Apex AADM Example</description> |
| 32 | |
| 33 | <dependencies> |
| 34 | <dependency> |
| 35 | <groupId>org.onap.policy.apex-pdp.model</groupId> |
| 36 | <artifactId>policy-model</artifactId> |
| 37 | <version>${project.version}</version> |
| 38 | </dependency> |
| 39 | <dependency> |
| 40 | <groupId>org.onap.policy.apex-pdp.core</groupId> |
| 41 | <artifactId>core-engine</artifactId> |
| 42 | <version>${project.version}</version> |
| 43 | <scope>test</scope> |
| 44 | </dependency> |
| 45 | <dependency> |
| 46 | <groupId>org.onap.policy.apex-pdp.core</groupId> |
| 47 | <artifactId>core-infrastructure</artifactId> |
| 48 | <version>${project.version}</version> |
| 49 | <scope>test</scope> |
| 50 | </dependency> |
| 51 | <dependency> |
| 52 | <groupId>org.onap.policy.apex-pdp.plugins.plugins-executor</groupId> |
| 53 | <artifactId>plugins-executor-mvel</artifactId> |
| 54 | <version>${project.version}</version> |
| 55 | <scope>test</scope> |
| 56 | </dependency> |
| 57 | <dependency> |
| 58 | <groupId>org.apache.derby</groupId> |
| 59 | <artifactId>derby</artifactId> |
| 60 | <version>${version.derby}</version> |
| 61 | <scope>test</scope> |
| 62 | </dependency> |
| 63 | </dependencies> |
| 64 | |
| 65 | <build> |
| 66 | <plugins> |
| 67 | <plugin> |
| 68 | <groupId>org.codehaus.mojo</groupId> |
| 69 | <artifactId>exec-maven-plugin</artifactId> |
| 70 | <executions> |
| 71 | <execution> |
| 72 | <id>generate-models</id> |
| 73 | <phase>process-classes</phase> |
| 74 | <goals> |
| 75 | <goal>exec</goal> |
| 76 | </goals> |
| 77 | <configuration> |
| 78 | <executable>java</executable> |
| 79 | <arguments> |
| 80 | <argument>-classpath</argument> |
| 81 | <!-- automatically creates the classpath using all project dependencies, also adding the project build directory --> |
| 82 | <classpath /> |
| 83 | <argument>org.onap.policy.apex.examples.aadm.model.AADMDomainModelSaver</argument> |
| 84 | <argument>${project.build.directory}/classes/examples/models/AADM</argument> |
| 85 | </arguments> |
| 86 | </configuration> |
| 87 | </execution> |
| 88 | </executions> |
| 89 | </plugin> |
| 90 | </plugins> |
| 91 | </build> |
| 92 | </project> |