Release policy/apex-pdp
[policy/apex-pdp.git] / tools / model-generator / pom.xml
1 <!--
2   ============LICENSE_START=======================================================
3    Copyright (C) 2018 Ericsson. All rights reserved.
4   ================================================================================
5   Licensed under the Apache License, Version 2.0 (the "License");
6   you may not use this file except in compliance with the License.
7   You may obtain a copy of the License at
8
9        http://www.apache.org/licenses/LICENSE-2.0
10
11   Unless required by applicable law or agreed to in writing, software
12   distributed under the License is distributed on an "AS IS" BASIS,
13   WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14   See the License for the specific language governing permissions and
15   limitations under the License.
16
17   SPDX-License-Identifier: Apache-2.0
18   ============LICENSE_END=========================================================
19 -->
20 <project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
21     xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
22     <modelVersion>4.0.0</modelVersion>
23     <parent>
24         <groupId>org.onap.policy.apex-pdp.tools</groupId>
25         <artifactId>tools</artifactId>
26         <version>2.9.0</version>
27     </parent>
28
29     <artifactId>model-generator</artifactId>
30     <name>${project.artifactId}</name>
31     <description>[${project.parent.artifactId}] Apex generators from policy model</description>
32
33     <dependencies>
34         <dependency>
35             <groupId>org.onap.policy.apex-pdp.tools</groupId>
36             <artifactId>tools-common</artifactId>
37             <version>${project.version}</version>
38         </dependency>
39         <dependency>
40             <groupId>org.onap.policy.apex-pdp.model</groupId>
41             <artifactId>model</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-avro</artifactId>
52             <version>${project.version}</version>
53         </dependency>
54         <dependency>
55             <groupId>org.onap.policy.apex-pdp.auth</groupId>
56             <artifactId>cli-codegen</artifactId>
57             <version>${project.version}</version>
58         </dependency>
59         <dependency>
60             <groupId>org.onap.policy.apex-pdp.testsuites.integration</groupId>
61             <artifactId>integration-common</artifactId>
62             <version>${project.version}</version>
63             <scope>test</scope>
64         </dependency>
65           <dependency>
66             <groupId>org.assertj</groupId>
67             <artifactId>assertj-core</artifactId>
68             <scope>test</scope>
69         </dependency>
70     </dependencies>
71
72     <build>
73         <plugins>
74              <!-- Copy required resources and examples -->
75             <plugin>
76                 <groupId>org.apache.maven.plugins</groupId>
77                 <artifactId>maven-dependency-plugin</artifactId>
78                 <executions>
79                     <execution>
80                         <id>unpack-examples</id>
81                         <phase>generate-test-resources</phase>
82                         <goals>
83                             <goal>unpack</goal>
84                         </goals>
85                         <configuration>
86                             <artifactItems>
87                                 <artifactItem>
88                                     <groupId>org.onap.policy.apex-pdp.testsuites.integration</groupId>
89                                     <artifactId>integration-common</artifactId>
90                                     <version>${project.version}</version>
91                                     <type>jar</type>
92                                     <overWrite>false</overWrite>
93                                     <outputDirectory>${project.build.directory}</outputDirectory>
94                                     <includes>examples/**/*</includes>
95                                 </artifactItem>
96                                 <artifactItem>
97                                     <groupId>org.onap.policy.apex-pdp.examples</groupId>
98                                     <artifactId>examples-aadm</artifactId>
99                                     <version>${project.version}</version>
100                                     <type>jar</type>
101                                     <overWrite>false</overWrite>
102                                     <outputDirectory>${project.build.directory}</outputDirectory>
103                                     <includes>examples/**/*</includes>
104                                 </artifactItem>
105                                 <artifactItem>
106                                     <groupId>org.onap.policy.apex-pdp.examples</groupId>
107                                     <artifactId>examples-adaptive</artifactId>
108                                     <version>${project.version}</version>
109                                     <type>jar</type>
110                                     <overWrite>false</overWrite>
111                                     <outputDirectory>${project.build.directory}</outputDirectory>
112                                     <includes>examples/**/*</includes>
113                                 </artifactItem>
114                                 <artifactItem>
115                                     <groupId>org.onap.policy.apex-pdp.examples</groupId>
116                                     <artifactId>examples-pcvs</artifactId>
117                                     <version>${project.version}</version>
118                                     <type>jar</type>
119                                     <overWrite>false</overWrite>
120                                     <outputDirectory>${project.build.directory}</outputDirectory>
121                                     <includes>examples/**/*</includes>
122                                 </artifactItem>
123                                 <artifactItem>
124                                     <groupId>org.onap.policy.apex-pdp.examples</groupId>
125                                     <artifactId>examples-myfirstpolicy</artifactId>
126                                     <version>${project.version}</version>
127                                     <type>jar</type>
128                                     <overWrite>false</overWrite>
129                                     <outputDirectory>${project.build.directory}</outputDirectory>
130                                     <includes>examples/**/*</includes>
131                                 </artifactItem>
132                             </artifactItems>
133                             <overWriteReleases>true</overWriteReleases>
134                             <overWriteSnapshots>true</overWriteSnapshots>
135                         </configuration>
136                     </execution>
137                 </executions>
138             </plugin>
139         </plugins>
140     </build>
141
142     <profiles>
143         <profile>
144             <id>only-eclipse</id>
145             <activation>
146                 <property>
147                     <name>m2e.version</name>
148                 </property>
149             </activation>
150             <build>
151                 <pluginManagement>
152                     <plugins>
153                         <plugin>
154                             <groupId>org.eclipse.m2e</groupId>
155                             <artifactId>lifecycle-mapping</artifactId>
156                             <version>1.0.0</version>
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>