Bump policy-apex-pdp to 2.3.1-SNAPSHOT
[policy/apex-pdp.git] / examples / examples-onap-bbs / pom.xml
1 <!--
2   ============LICENSE_START=======================================================
3    Copyright (C) 2018 Ericsson. All rights reserved.
4    Copyright (C) 2019 Huawei.
5    Modifications Copyright (C) 2019 Nordix Foundation.
6   ================================================================================
7   Licensed under the Apache License, Version 2.0 (the "License");
8   you may not use this file except in compliance with the License.
9   You may obtain a copy of the License at
10
11        http://www.apache.org/licenses/LICENSE-2.0
12
13   Unless required by applicable law or agreed to in writing, software
14   distributed under the License is distributed on an "AS IS" BASIS,
15   WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
16   See the License for the specific language governing permissions and
17   limitations under the License.
18
19   SPDX-License-Identifier: Apache-2.0
20   ============LICENSE_END=========================================================
21 -->
22 <project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
23     xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
24     <modelVersion>4.0.0</modelVersion>
25     <parent>
26         <groupId>org.onap.policy.apex-pdp.examples</groupId>
27         <artifactId>examples</artifactId>
28         <version>2.3.1-SNAPSHOT</version>
29     </parent>
30
31     <artifactId>examples-onap-bbs</artifactId>
32     <name>${project.artifactId}</name>
33     <description>Specific code for the APEX ONAP BBS Example</description>
34
35     <properties>
36         <policymodel.name>NomadicONTPolicyModel</policymodel.name>
37         <apex-domains-onap-bbs-dir>${project.basedir}/src</apex-domains-onap-bbs-dir>
38     </properties>
39
40     <dependencies>
41         <dependency>
42             <groupId>org.onap.policy.apex-pdp.auth</groupId>
43             <artifactId>cli-editor</artifactId>
44             <version>${project.version}</version>
45         </dependency>
46         <dependency>
47             <groupId>org.onap.policy.apex-pdp.services</groupId>
48             <artifactId>services-engine</artifactId>
49             <version>${project.version}</version>
50             <scope>test</scope>
51         </dependency>
52         <dependency>
53             <groupId>org.onap.policy.apex-pdp.plugins.plugins-context.plugins-context-schema</groupId>
54             <artifactId>plugins-context-schema-avro</artifactId>
55             <version>${project.version}</version>
56         </dependency>
57         <dependency>
58             <groupId>org.onap.policy.apex-pdp.plugins.plugins-executor</groupId>
59             <artifactId>plugins-executor-javascript</artifactId>
60             <version>${project.version}</version>
61         </dependency>
62         <dependency>
63             <groupId>org.onap.policy.apex-pdp.plugins.plugins-event.plugins-event-carrier</groupId>
64             <artifactId>plugins-event-carrier-restrequestor</artifactId>
65             <version>${project.version}</version>
66         </dependency>
67         <dependency>
68             <groupId>org.onap.policy.apex-pdp.plugins.plugins-event.plugins-event-carrier</groupId>
69             <artifactId>plugins-event-carrier-restclient</artifactId>
70             <version>${project.version}</version>
71         </dependency>
72         <dependency>
73             <groupId>org.onap.policy.models.policy-models-interactions.model-impl</groupId>
74             <artifactId>aai</artifactId>
75             <version>${version.policy.models}</version>
76         </dependency>
77         <dependency>
78             <groupId>org.onap.policy.models.policy-models-interactions.model-impl</groupId>
79             <artifactId>appclcm</artifactId>
80             <version>${version.policy.models}</version>
81         </dependency>
82         <dependency>
83             <groupId>org.onap.policy.models.policy-models-interactions.model-impl</groupId>
84             <artifactId>events</artifactId>
85             <version>${version.policy.models}</version>
86         </dependency>
87         <dependency>
88             <groupId>org.mockito</groupId>
89             <artifactId>mockito-all</artifactId>
90             <scope>test</scope>
91         </dependency>
92     </dependencies>
93
94     <build>
95         <plugins>
96             <!-- Generate the APEX Policy JSON from the APEX CLI command -->
97             <plugin>
98                 <groupId>org.codehaus.mojo</groupId>
99                 <artifactId>exec-maven-plugin</artifactId>
100                 <executions>
101                     <execution>
102                         <id>generate-policy</id>
103                         <phase>compile</phase>
104                         <goals>
105                             <goal>java</goal>
106                         </goals>
107                         <configuration>
108                             <mainClass>org.onap.policy.apex.auth.clieditor.ApexCommandLineEditorMain</mainClass>
109                             <classpathScope>compile</classpathScope>
110                             <arguments>
111                                 <argument>--command-file=${project.basedir}/src/main/resources/policy/${policymodel.name}.apex</argument>
112                                 <argument>--output-model-file=${project.build.directory}/classes/${policymodel.name}.json</argument>
113                                 <argument>--log-file=${project.build.directory}/${policymodel.name}_policygeneration.log</argument>
114                                 <argument>--working-dir=${project.basedir}</argument>
115                             </arguments>
116                         </configuration>
117                     </execution>
118                 </executions>
119             </plugin>
120         </plugins>
121     </build>
122
123     <profiles>
124         <profile>
125             <id>apexSite</id>
126             <activation>
127                 <property>
128                     <name>apexSite</name>
129                 </property>
130             </activation>
131             <properties>
132                 <adsite-examples-onap-bbs-dir>${project.basedir}/src</adsite-examples-onap-bbs-dir>
133             </properties>
134             <distributionManagement>
135                 <site>
136                     <id>${project.artifactId}-site</id>
137                     <url>${apex.adsite.prefix}/modules/${project.parent.artifactId}/${project.artifactId}/</url>
138                 </site>
139             </distributionManagement>
140         </profile>
141     </profiles>
142 </project>