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>3.1.3-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     </dependencies>
67
68     <build>
69         <plugins>
70             <!-- Copy required resources and examples -->
71             <plugin>
72                 <groupId>org.apache.maven.plugins</groupId>
73                 <artifactId>maven-dependency-plugin</artifactId>
74                 <executions>
75                     <execution>
76                         <id>unpack-examples</id>
77                         <phase>generate-test-resources</phase>
78                         <goals>
79                             <goal>unpack</goal>
80                         </goals>
81                         <configuration>
82                             <artifactItems>
83                                 <artifactItem>
84                                     <groupId>org.onap.policy.apex-pdp.testsuites.integration</groupId>
85                                     <artifactId>integration-common</artifactId>
86                                     <version>${project.version}</version>
87                                     <type>jar</type>
88                                     <overWrite>false</overWrite>
89                                     <outputDirectory>${project.build.directory}</outputDirectory>
90                                     <includes>examples/**/*</includes>
91                                 </artifactItem>
92                                 <artifactItem>
93                                     <groupId>org.onap.policy.apex-pdp.examples</groupId>
94                                     <artifactId>examples-aadm</artifactId>
95                                     <version>${project.version}</version>
96                                     <type>jar</type>
97                                     <overWrite>false</overWrite>
98                                     <outputDirectory>${project.build.directory}</outputDirectory>
99                                     <includes>examples/**/*</includes>
100                                 </artifactItem>
101                                 <artifactItem>
102                                     <groupId>org.onap.policy.apex-pdp.examples</groupId>
103                                     <artifactId>examples-adaptive</artifactId>
104                                     <version>${project.version}</version>
105                                     <type>jar</type>
106                                     <overWrite>false</overWrite>
107                                     <outputDirectory>${project.build.directory}</outputDirectory>
108                                     <includes>examples/**/*</includes>
109                                 </artifactItem>
110                                 <artifactItem>
111                                     <groupId>org.onap.policy.apex-pdp.examples</groupId>
112                                     <artifactId>examples-myfirstpolicy</artifactId>
113                                     <version>${project.version}</version>
114                                     <type>jar</type>
115                                     <overWrite>false</overWrite>
116                                     <outputDirectory>${project.build.directory}</outputDirectory>
117                                     <includes>examples/**/*</includes>
118                                 </artifactItem>
119                             </artifactItems>
120                             <overWriteReleases>true</overWriteReleases>
121                             <overWriteSnapshots>true</overWriteSnapshots>
122                         </configuration>
123                     </execution>
124                 </executions>
125             </plugin>
126         </plugins>
127     </build>
128
129     <profiles>
130         <profile>
131             <id>only-eclipse</id>
132             <activation>
133                 <property>
134                     <name>m2e.version</name>
135                 </property>
136             </activation>
137             <build>
138                 <pluginManagement>
139                     <plugins>
140                         <plugin>
141                             <groupId>org.eclipse.m2e</groupId>
142                             <artifactId>lifecycle-mapping</artifactId>
143                             <configuration>
144                                 <lifecycleMappingMetadata>
145                                     <pluginExecutions>
146                                         <pluginExecution>
147                                             <pluginExecutionFilter>
148                                                 <groupId>org.apache.maven.plugins</groupId>
149                                                 <artifactId>maven-dependency-plugin</artifactId>
150                                                 <versionRange>[2.0,)</versionRange>
151                                                 <goals>
152                                                     <goal>unpack</goal>
153                                                 </goals>
154                                             </pluginExecutionFilter>
155                                             <action>
156                                                 <ignore/>
157                                             </action>
158                                         </pluginExecution>
159                                     </pluginExecutions>
160                                 </lifecycleMappingMetadata>
161                             </configuration>
162                         </plugin>
163                     </plugins>
164                 </pluginManagement>
165             </build>
166         </profile>
167     </profiles>
168 </project>