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