FrancescoFioraEst | 35e4606 | 2022-08-19 12:09:51 +0100 | [diff] [blame] | 1 | <?xml version="1.0" encoding="UTF-8"?> |
| 2 | <!-- |
| 3 | ============LICENSE_START======================================================= |
| 4 | Copyright (C) 2022 Nordix Foundation. |
| 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 | --> |
| 21 | <project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" |
| 22 | xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> |
| 23 | <modelVersion>4.0.0</modelVersion> |
| 24 | <parent> |
| 25 | <groupId>org.onap.policy.apex-pdp.examples</groupId> |
| 26 | <artifactId>examples</artifactId> |
liamfallon | a54acdf | 2022-12-15 16:19:41 +0000 | [diff] [blame] | 27 | <version>2.9.1-SNAPSHOT</version> |
FrancescoFioraEst | 35e4606 | 2022-08-19 12:09:51 +0100 | [diff] [blame] | 28 | </parent> |
| 29 | <artifactId>examples-acm</artifactId> |
| 30 | <name>examples-acm</name> |
| 31 | <description>Specific code for the APEX acm Example</description> |
| 32 | <properties> |
| 33 | <policymodel.name>APEXacElementPolicy</policymodel.name> |
| 34 | <toscapolicy.name>APEXacElementToscaPolicy</toscapolicy.name> |
| 35 | <!-- Update the required node type value for generating a node template --> |
| 36 | <nodeType.name>org.onap.nodetypes.policy.MetadataSet</nodeType.name> |
| 37 | </properties> |
| 38 | <dependencies> |
| 39 | <dependency> |
| 40 | <groupId>org.onap.policy.apex-pdp.auth</groupId> |
| 41 | <artifactId>cli-editor</artifactId> |
| 42 | <version>${project.version}</version> |
| 43 | </dependency> |
| 44 | <dependency> |
| 45 | <groupId>org.onap.policy.apex-pdp.services</groupId> |
| 46 | <artifactId>services-engine</artifactId> |
| 47 | <version>${project.version}</version> |
| 48 | </dependency> |
| 49 | <dependency> |
| 50 | <groupId>org.onap.policy.apex-pdp.plugins.plugins-context.plugins-context-schema</groupId> |
| 51 | <artifactId>plugins-context-schema-json</artifactId> |
| 52 | <version>${project.version}</version> |
| 53 | </dependency> |
| 54 | <dependency> |
| 55 | <groupId>org.onap.policy.apex-pdp.plugins.plugins-executor</groupId> |
| 56 | <artifactId>plugins-executor-javascript</artifactId> |
| 57 | <version>${project.version}</version> |
| 58 | </dependency> |
| 59 | <dependency> |
| 60 | <groupId>org.onap.policy.apex-pdp.plugins.plugins-event.plugins-event-carrier</groupId> |
| 61 | <artifactId>plugins-event-carrier-restclient</artifactId> |
| 62 | <version>${project.version}</version> |
| 63 | </dependency> |
| 64 | <dependency> |
| 65 | <groupId>org.onap.policy.models.policy-models-interactions.model-impl</groupId> |
| 66 | <artifactId>events</artifactId> |
| 67 | <version>${version.policy.models}</version> |
| 68 | </dependency> |
| 69 | <dependency> |
| 70 | <groupId>org.onap.policy.common</groupId> |
| 71 | <artifactId>policy-endpoints</artifactId> |
| 72 | </dependency> |
| 73 | <dependency> |
| 74 | <groupId>junit</groupId> |
| 75 | <artifactId>junit</artifactId> |
| 76 | <scope>test</scope> |
| 77 | </dependency> |
| 78 | </dependencies> |
| 79 | <build> |
| 80 | <plugins> |
| 81 | <plugin> |
| 82 | <groupId>org.apache.maven.plugins</groupId> |
| 83 | <artifactId>maven-surefire-plugin</artifactId> |
| 84 | <configuration> |
| 85 | <argLine>-Xss1m</argLine> |
| 86 | </configuration> |
| 87 | </plugin> |
| 88 | <plugin> |
| 89 | <groupId>org.codehaus.mojo</groupId> |
| 90 | <artifactId>exec-maven-plugin</artifactId> |
| 91 | <executions> |
| 92 | <!-- Generate the APEX ToscaPolicy JSON file--> |
| 93 | <execution> |
| 94 | <id>generate-tosca-policy</id> |
| 95 | <phase>compile</phase> |
| 96 | <goals> |
| 97 | <goal>java</goal> |
| 98 | </goals> |
| 99 | <configuration> |
| 100 | <mainClass>org.onap.policy.apex.auth.clieditor.tosca.ApexCliToscaEditorMain</mainClass> |
| 101 | <classpathScope>compile</classpathScope> |
| 102 | <arguments> |
| 103 | <argument>--command-file=${project.basedir}/src/main/resources/policy/${policymodel.name}.apex</argument> |
| 104 | <argument>--output-tosca-file=${project.build.directory}/classes/${toscapolicy.name}.json</argument> |
| 105 | <argument>--log-file=${project.build.directory}/${policymodel.name}_policygeneration.log</argument> |
| 106 | <argument>--apex-config-file=${project.basedir}/src/main/resources/examples/config/apexACM/ApexConfig.json</argument> |
| 107 | <argument>--tosca-template-file=${project.basedir}/src/main/resources/tosca/ToscaTemplate.json</argument> |
| 108 | </arguments> |
| 109 | </configuration> |
| 110 | </execution> |
| 111 | </executions> |
| 112 | </plugin> |
| 113 | </plugins> |
| 114 | </build> |
| 115 | </project> |