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" |
adheli.tavares | a3a032d | 2023-08-10 16:58:48 +0100 | [diff] [blame] | 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> |
saul.gill | 2516099 | 2024-05-20 11:08:53 +0100 | [diff] [blame^] | 27 | <version>4.0.0-SNAPSHOT</version> |
adheli.tavares | a3a032d | 2023-08-10 16:58:48 +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 | </dependencies> |
| 74 | <build> |
| 75 | <plugins> |
| 76 | <plugin> |
| 77 | <groupId>org.apache.maven.plugins</groupId> |
| 78 | <artifactId>maven-surefire-plugin</artifactId> |
| 79 | <configuration> |
| 80 | <argLine>-Xss1m</argLine> |
| 81 | </configuration> |
| 82 | </plugin> |
| 83 | <plugin> |
| 84 | <groupId>org.codehaus.mojo</groupId> |
| 85 | <artifactId>exec-maven-plugin</artifactId> |
| 86 | <executions> |
| 87 | <!-- Generate the APEX ToscaPolicy JSON file--> |
| 88 | <execution> |
| 89 | <id>generate-tosca-policy</id> |
| 90 | <phase>compile</phase> |
| 91 | <goals> |
| 92 | <goal>java</goal> |
| 93 | </goals> |
| 94 | <configuration> |
| 95 | <mainClass>org.onap.policy.apex.auth.clieditor.tosca.ApexCliToscaEditorMain</mainClass> |
| 96 | <classpathScope>compile</classpathScope> |
| 97 | <arguments> |
| 98 | <argument> |
| 99 | --command-file=${project.basedir}/src/main/resources/policy/${policymodel.name}.apex |
| 100 | </argument> |
| 101 | <argument> |
| 102 | --output-tosca-file=${project.build.directory}/classes/${toscapolicy.name}.json |
| 103 | </argument> |
| 104 | <argument> |
| 105 | --log-file=${project.build.directory}/${policymodel.name}_policygeneration.log |
| 106 | </argument> |
| 107 | <argument> |
| 108 | --apex-config-file=${project.basedir}/src/main/resources/examples/config/apexACM/ApexConfig.json |
| 109 | </argument> |
| 110 | <argument> |
| 111 | --tosca-template-file=${project.basedir}/src/main/resources/tosca/ToscaTemplate.json |
| 112 | </argument> |
| 113 | </arguments> |
| 114 | </configuration> |
| 115 | </execution> |
| 116 | </executions> |
| 117 | </plugin> |
| 118 | </plugins> |
| 119 | </build> |
FrancescoFioraEst | 35e4606 | 2022-08-19 12:09:51 +0100 | [diff] [blame] | 120 | </project> |