Update snapshot and/or references of policy/apex-pdp to latest snapshots
[policy/apex-pdp.git] / tools / model-generator / pom.xml
1 <!--
2   ============LICENSE_START=======================================================
3    Copyright (C) 2018 Ericsson. All rights reserved.
4    Modifications Copyright (C) 2023 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.tools</groupId>
26         <artifactId>tools</artifactId>
27         <version>2.9.2-SNAPSHOT</version>
28     </parent>
29
30     <artifactId>model-generator</artifactId>
31     <name>${project.artifactId}</name>
32     <description>[${project.parent.artifactId}] Apex generators from policy model</description>
33
34     <dependencies>
35         <dependency>
36             <groupId>org.onap.policy.apex-pdp.tools</groupId>
37             <artifactId>tools-common</artifactId>
38             <version>${project.version}</version>
39         </dependency>
40         <dependency>
41             <groupId>org.onap.policy.apex-pdp.model</groupId>
42             <artifactId>model</artifactId>
43             <version>${project.version}</version>
44         </dependency>
45         <dependency>
46             <groupId>org.onap.policy.apex-pdp.services</groupId>
47             <artifactId>services-engine</artifactId>
48             <version>${project.version}</version>
49         </dependency>
50         <dependency>
51             <groupId>org.onap.policy.apex-pdp.plugins.plugins-context.plugins-context-schema</groupId>
52             <artifactId>plugins-context-schema-avro</artifactId>
53             <version>${project.version}</version>
54         </dependency>
55         <dependency>
56             <groupId>org.onap.policy.apex-pdp.auth</groupId>
57             <artifactId>cli-codegen</artifactId>
58             <version>${project.version}</version>
59         </dependency>
60         <dependency>
61             <groupId>org.onap.policy.apex-pdp.testsuites.integration</groupId>
62             <artifactId>integration-common</artifactId>
63             <version>${project.version}</version>
64             <scope>test</scope>
65         </dependency>
66           <dependency>
67             <groupId>org.assertj</groupId>
68             <artifactId>assertj-core</artifactId>
69             <scope>test</scope>
70         </dependency>
71     </dependencies>
72
73     <build>
74         <plugins>
75              <!-- Copy required resources and examples -->
76             <plugin>
77                 <groupId>org.apache.maven.plugins</groupId>
78                 <artifactId>maven-dependency-plugin</artifactId>
79                 <executions>
80                     <execution>
81                         <id>unpack-examples</id>
82                         <phase>generate-test-resources</phase>
83                         <goals>
84                             <goal>unpack</goal>
85                         </goals>
86                         <configuration>
87                             <artifactItems>
88                                 <artifactItem>
89                                     <groupId>org.onap.policy.apex-pdp.testsuites.integration</groupId>
90                                     <artifactId>integration-common</artifactId>
91                                     <version>${project.version}</version>
92                                     <type>jar</type>
93                                     <overWrite>false</overWrite>
94                                     <outputDirectory>${project.build.directory}</outputDirectory>
95                                     <includes>examples/**/*</includes>
96                                 </artifactItem>
97                                 <artifactItem>
98                                     <groupId>org.onap.policy.apex-pdp.examples</groupId>
99                                     <artifactId>examples-aadm</artifactId>
100                                     <version>${project.version}</version>
101                                     <type>jar</type>
102                                     <overWrite>false</overWrite>
103                                     <outputDirectory>${project.build.directory}</outputDirectory>
104                                     <includes>examples/**/*</includes>
105                                 </artifactItem>
106                                 <artifactItem>
107                                     <groupId>org.onap.policy.apex-pdp.examples</groupId>
108                                     <artifactId>examples-adaptive</artifactId>
109                                     <version>${project.version}</version>
110                                     <type>jar</type>
111                                     <overWrite>false</overWrite>
112                                     <outputDirectory>${project.build.directory}</outputDirectory>
113                                     <includes>examples/**/*</includes>
114                                 </artifactItem>
115                                 <artifactItem>
116                                     <groupId>org.onap.policy.apex-pdp.examples</groupId>
117                                     <artifactId>examples-pcvs</artifactId>
118                                     <version>${project.version}</version>
119                                     <type>jar</type>
120                                     <overWrite>false</overWrite>
121                                     <outputDirectory>${project.build.directory}</outputDirectory>
122                                     <includes>examples/**/*</includes>
123                                 </artifactItem>
124                                 <artifactItem>
125                                     <groupId>org.onap.policy.apex-pdp.examples</groupId>
126                                     <artifactId>examples-myfirstpolicy</artifactId>
127                                     <version>${project.version}</version>
128                                     <type>jar</type>
129                                     <overWrite>false</overWrite>
130                                     <outputDirectory>${project.build.directory}</outputDirectory>
131                                     <includes>examples/**/*</includes>
132                                 </artifactItem>
133                             </artifactItems>
134                             <overWriteReleases>true</overWriteReleases>
135                             <overWriteSnapshots>true</overWriteSnapshots>
136                         </configuration>
137                     </execution>
138                 </executions>
139             </plugin>
140         </plugins>
141     </build>
142
143     <profiles>
144         <profile>
145             <id>only-eclipse</id>
146             <activation>
147                 <property>
148                     <name>m2e.version</name>
149                 </property>
150             </activation>
151             <build>
152                 <pluginManagement>
153                     <plugins>
154                         <plugin>
155                             <groupId>org.eclipse.m2e</groupId>
156                             <artifactId>lifecycle-mapping</artifactId>
157                             <configuration>
158                                 <lifecycleMappingMetadata>
159                                     <pluginExecutions>
160                                         <pluginExecution>
161                                             <pluginExecutionFilter>
162                                                 <groupId>org.apache.maven.plugins</groupId>
163                                                 <artifactId>maven-dependency-plugin</artifactId>
164                                                 <versionRange>[2.0,)</versionRange>
165                                                 <goals>
166                                                     <goal>unpack</goal>
167                                                 </goals>
168                                             </pluginExecutionFilter>
169                                             <action>
170                                                 <ignore />
171                                             </action>
172                                         </pluginExecution>
173                                     </pluginExecutions>
174                                 </lifecycleMappingMetadata>
175                             </configuration>
176                         </plugin>
177                     </plugins>
178                 </pluginManagement>
179             </build>
180         </profile>
181     </profiles>
182 </project>