Merge "creating meta data creation component(first tab)"
[ccsdk/cds.git] / ms / blueprintsprocessor / application / pom.xml
1 <?xml version="1.0" encoding="UTF-8"?>
2 <!--
3   ~  Copyright © 2017-2018 AT&T Intellectual Property.
4   ~
5   ~  Modifications Copyright © 2018 IBM.
6   ~  Modifications Copyright © 2019 Bell Canada.
7   ~
8   ~  Licensed under the Apache License, Version 2.0 (the "License");
9   ~  you may not use this file except in compliance with the License.
10   ~  You may obtain a copy of the License at
11   ~
12   ~      http://www.apache.org/licenses/LICENSE-2.0
13   ~
14   ~  Unless required by applicable law or agreed to in writing, software
15   ~  distributed under the License is distributed on an "AS IS" BASIS,
16   ~  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
17   ~  See the License for the specific language governing permissions and
18   ~  limitations under the License.
19   -->
20 <project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
21     <modelVersion>4.0.0</modelVersion>
22
23     <parent>
24         <groupId>org.onap.ccsdk.cds.blueprintsprocessor</groupId>
25         <artifactId>parent</artifactId>
26         <version>0.7.0-SNAPSHOT</version>
27         <relativePath>../parent</relativePath>
28     </parent>
29
30     <artifactId>application</artifactId>
31     <packaging>jar</packaging>
32
33     <name>Blueprints Processor Application</name>
34     <description>Blueprints Processor Application</description>
35
36     <properties>
37         <assembly.id>maven</assembly.id>
38         <name.space>org.onap.ccsdk.cds</name.space>
39         <serviceArtifactName>blueprintsprocessor</serviceArtifactName>
40         <image.name>onap/ccsdk-blueprintsprocessor</image.name>
41         <docker.push.phase>deploy</docker.push.phase>
42         <docker.verbose>true</docker.verbose>
43         <ccsdk.project.version>${project.version}</ccsdk.project.version>
44         <ccsdk.build.timestamp>${maven.build.timestamp}</ccsdk.build.timestamp>
45     </properties>
46
47     <dependencies>
48         <dependency>
49            <groupId>org.onap.ccsdk.cds.blueprintsprocessor</groupId>
50            <artifactId>blueprint-core</artifactId>
51            <exclusions>
52                 <exclusion>
53                     <groupId>org.springframework.boot</groupId>
54                     <artifactId>spring-boot-starter-logging</artifactId>
55                 </exclusion>
56             </exclusions>
57         </dependency>
58         <dependency>
59             <groupId>org.springframework.boot</groupId>
60             <artifactId>spring-boot-starter-security</artifactId>
61             <exclusions>
62                 <exclusion>
63                     <groupId>org.springframework.boot</groupId>
64                     <artifactId>spring-boot-starter-logging</artifactId>
65                 </exclusion>
66             </exclusions>
67         </dependency>
68
69         <!-- North Bound -->
70         <dependency>
71             <groupId>org.onap.ccsdk.cds.blueprintsprocessor</groupId>
72             <artifactId>designer-api</artifactId>
73         </dependency>
74         <dependency>
75             <groupId>org.onap.ccsdk.cds.blueprintsprocessor</groupId>
76             <artifactId>resource-api</artifactId>
77         </dependency>
78         <dependency>
79             <groupId>org.onap.ccsdk.cds.blueprintsprocessor</groupId>
80             <artifactId>selfservice-api</artifactId>
81         </dependency>
82         <dependency>
83             <groupId>org.onap.ccsdk.cds.blueprintsprocessor</groupId>
84             <artifactId>configs-api</artifactId>
85         </dependency>
86         <dependency>
87             <groupId>org.onap.ccsdk.cds.blueprintsprocessor</groupId>
88             <artifactId>health-api</artifactId>
89         </dependency>
90         <dependency>
91             <groupId>org.onap.ccsdk.cds.blueprintsprocessor</groupId>
92             <artifactId>health-api-common</artifactId>
93         </dependency>
94
95         <!-- Libs -->
96         <dependency>
97             <groupId>org.onap.ccsdk.cds.blueprintsprocessor</groupId>
98             <artifactId>atomix-lib</artifactId>
99         </dependency>
100
101         <!-- Functions -->
102         <dependency>
103             <groupId>org.onap.ccsdk.cds.blueprintsprocessor.functions</groupId>
104             <artifactId>python-executor</artifactId>
105         </dependency>
106         <dependency>
107             <groupId>org.onap.ccsdk.cds.blueprintsprocessor.functions</groupId>
108             <artifactId>ansible-awx-executor</artifactId>
109         </dependency>
110         <dependency>
111             <groupId>org.onap.ccsdk.cds.blueprintsprocessor.functions</groupId>
112             <artifactId>netconf-executor</artifactId>
113         </dependency>
114         <dependency>
115             <groupId>org.onap.ccsdk.cds.blueprintsprocessor.functions</groupId>
116             <artifactId>restconf-executor</artifactId>
117         </dependency>
118         <dependency>
119             <groupId>org.onap.ccsdk.cds.blueprintsprocessor.functions</groupId>
120             <artifactId>cli-executor</artifactId>
121         </dependency>
122         <dependency>
123             <groupId>org.onap.ccsdk.cds.blueprintsprocessor.functions</groupId>
124             <artifactId>config-snapshots</artifactId>
125         </dependency>
126         <dependency>
127             <groupId>com.h2database</groupId>
128             <artifactId>h2</artifactId>
129         </dependency>
130         <dependency>
131             <groupId>org.powermock</groupId>
132             <artifactId>powermock-api-mockito2</artifactId>
133             <scope>test</scope>
134         </dependency>
135         <dependency>
136             <groupId>org.springframework.boot</groupId>
137             <artifactId>spring-boot-starter-test</artifactId>
138             <scope>test</scope>
139         </dependency>
140         <dependency>
141             <groupId>org.jetbrains.kotlin</groupId>
142             <artifactId>kotlin-test-junit</artifactId>
143             <scope>test</scope>
144         </dependency>
145         <dependency>
146             <groupId>io.projectreactor</groupId>
147             <artifactId>reactor-test</artifactId>
148             <scope>test</scope>
149         </dependency>
150         <!-- BEGIN UAT -->
151         <dependency>
152             <groupId>org.skyscreamer</groupId>
153             <artifactId>jsonassert</artifactId>
154         </dependency>
155         <dependency>
156             <groupId>org.yaml</groupId>
157             <artifactId>snakeyaml</artifactId>
158         </dependency>
159         <dependency>
160             <groupId>com.nhaarman.mockitokotlin2</groupId>
161             <artifactId>mockito-kotlin</artifactId>
162         </dependency>
163         <dependency>
164             <groupId>com.schibsted.spt.data</groupId>
165             <artifactId>jslt</artifactId>
166         </dependency>
167         <dependency>
168             <groupId>org.apache.httpcomponents</groupId>
169             <artifactId>httpclient</artifactId>
170             <version>${apache.httpcomponents.client.version}</version>
171         </dependency>
172         <dependency>
173             <groupId>org.apache.httpcomponents</groupId>
174             <artifactId>httpmime</artifactId>
175             <version>${apache.httpcomponents.client.version}</version>
176         </dependency>
177         <dependency>
178             <groupId>com.github.tomakehurst</groupId>
179             <artifactId>wiremock-jre8</artifactId>
180             <version>2.25.0</version>
181             <scope>test</scope>
182         </dependency>
183         <!-- END UAT -->
184         <dependency>
185             <groupId>ch.qos.logback</groupId>
186             <artifactId>logback-classic</artifactId>
187         </dependency>
188
189     </dependencies>
190
191     <build>
192         <resources>
193             <resource>
194                 <!--config and resource files -->
195                 <directory>${basedir}/etc</directory>
196                 <targetPath>${basedir}/target/etc</targetPath>
197                 <filtering>true</filtering>
198                 <includes>
199                     <include>**/*</include>
200                 </includes>
201             </resource>
202             <resource>
203                 <!--config and resource files -->
204                 <directory>${basedir}/src/main/resources</directory>
205                 <targetPath>${basedir}/target/src/main/resources</targetPath>
206                 <filtering>true</filtering>
207                 <includes>
208                     <include>**/*</include>
209                 </includes>
210             </resource>
211             <resource>
212                 <directory>src/main/resources</directory>
213                 <includes>
214                     <include>**/*</include>
215                 </includes>
216                 <filtering>true</filtering>
217             </resource>
218         </resources>
219         <plugins>
220             <plugin>
221                 <artifactId>maven-resources-plugin</artifactId>
222                 <version>2.6</version>
223                 <executions>
224                     <execution>
225                         <id>copy-dockerfile</id>
226                         <goals>
227                             <goal>copy-resources</goal>
228                         </goals><!-- here the phase you need -->
229                         <phase>validate</phase>
230                         <configuration>
231                             <outputDirectory>${basedir}/target/docker-stage</outputDirectory>
232                             <resources>
233                                 <resource>
234                                     <directory>src/main/docker</directory>
235                                     <includes>
236                                         <include>*</include>
237                                     </includes>
238                                     <filtering>true</filtering>
239                                 </resource>
240                             </resources>
241                         </configuration>
242                     </execution>
243                 </executions>
244             </plugin>
245             <plugin>
246                 <groupId>org.apache.maven.plugins</groupId>
247                 <artifactId>maven-antrun-plugin</artifactId>
248                 <executions>
249                     <execution>
250                         <id>ant-test</id>
251                         <phase>package</phase>
252                         <configuration>
253                             <tasks>
254                                 <fixcrlf srcdir="${basedir}" eol="unix" includes="**/*.sh, **/*.source"/>
255                             </tasks>
256                         </configuration>
257                         <goals>
258                             <goal>run</goal>
259                         </goals>
260                     </execution>
261                 </executions>
262             </plugin>
263             <plugin><!--build the final artifact for docker deployment -->
264                 <artifactId>maven-assembly-plugin</artifactId>
265                 <version>3.1.0</version>
266                 <configuration>
267                     <!-- <skipAssembly>${skip.assembly}</skipAssembly> -->
268                     <outputDirectory>${basedir}/target/docker-stage</outputDirectory>
269                     <descriptors>
270                         <descriptor>src/main/docker/distribution.xml</descriptor>
271                     </descriptors>
272                     <tarLongFileMode>posix</tarLongFileMode>
273                 </configuration>
274                 <executions>
275                     <execution>
276                         <id>${assembly.id}</id>
277                         <phase>package</phase>
278                         <goals>
279                             <goal>single</goal>
280                         </goals>
281                     </execution>
282                 </executions>
283             </plugin>
284             <plugin>
285                 <groupId>org.codehaus.groovy.maven</groupId>
286                 <artifactId>gmaven-plugin</artifactId>
287                 <version>1.0</version>
288                 <executions>
289                     <execution>
290                         <phase>validate</phase>
291                         <goals>
292                             <goal>execute</goal>
293                         </goals>
294                         <configuration>
295                             <source>${basedir}/../../../TagVersion.groovy</source>
296                         </configuration>
297                     </execution>
298                 </executions>
299             </plugin>
300             <plugin>
301                 <artifactId>maven-compiler-plugin</artifactId>
302                 <version>3.1</version>
303                 <configuration>
304                     <source>1.8</source>
305                     <target>1.8</target>
306                 </configuration>
307             </plugin>
308         </plugins>
309     </build>
310
311     <profiles>
312         <profile>
313             <id>docker</id>
314             <build>
315                 <plugins>
316                     <plugin>
317                         <groupId>io.fabric8</groupId>
318                         <artifactId>docker-maven-plugin</artifactId>
319                         <version>0.26.1</version>
320                         <inherited>false</inherited>
321                         <configuration>
322                             <images>
323                                 <image>
324                                     <name>${image.name}</name>
325                                     <build>
326                                         <cleanup>try</cleanup>
327                                         <dockerFileDir>${basedir}/target/docker-stage</dockerFileDir>
328                                         <tags>
329                                             <tag>${project.docker.latestminortag.version}</tag>
330                                             <tag>${project.docker.latestfulltag.version}</tag>
331                                             <tag>${project.docker.latesttagtimestamp.version}</tag>
332                                         </tags>
333                                     </build>
334                                 </image>
335                             </images>
336                             <verbose>true</verbose>
337                         </configuration>
338                         <executions>
339                             <execution>
340                                 <id>generate-images</id>
341                                 <phase>package</phase>
342                                 <goals>
343                                     <goal>build</goal>
344                                 </goals>
345                             </execution>
346                             <execution>
347                                 <id>push-images</id>
348                                 <phase>${docker.push.phase}</phase>
349                                 <goals>
350                                     <goal>build</goal>
351                                     <goal>push</goal>
352                                 </goals>
353                             </execution>
354                         </executions>
355                     </plugin>
356                 </plugins>
357             </build>
358         </profile>
359     </profiles>
360 </project>