Merge "adding new designer component, sort and configuration dashboard"
[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
49         <dependency>
50            <groupId>org.onap.ccsdk.cds.blueprintsprocessor</groupId>
51            <artifactId>blueprint-core</artifactId>
52            <exclusions>
53                 <exclusion>
54                     <groupId>org.springframework.boot</groupId>
55                     <artifactId>spring-boot-starter-logging</artifactId>
56                 </exclusion>
57             </exclusions>
58         </dependency>
59         <dependency>
60             <groupId>org.springframework.boot</groupId>
61             <artifactId>spring-boot-starter-security</artifactId>
62             <exclusions>
63                 <exclusion>
64                     <groupId>org.springframework.boot</groupId>
65                     <artifactId>spring-boot-starter-logging</artifactId>
66                 </exclusion>
67             </exclusions>
68         </dependency>
69
70         <!-- North Bound -->
71         <dependency>
72             <groupId>org.onap.ccsdk.cds.blueprintsprocessor</groupId>
73             <artifactId>designer-api</artifactId>
74         </dependency>
75         <dependency>
76             <groupId>org.onap.ccsdk.cds.blueprintsprocessor</groupId>
77             <artifactId>resource-api</artifactId>
78         </dependency>
79         <dependency>
80             <groupId>org.onap.ccsdk.cds.blueprintsprocessor</groupId>
81             <artifactId>selfservice-api</artifactId>
82         </dependency>
83         <dependency>
84             <groupId>org.onap.ccsdk.cds.blueprintsprocessor</groupId>
85             <artifactId>configs-api</artifactId>
86         </dependency>
87         <dependency>
88             <groupId>org.onap.ccsdk.cds.blueprintsprocessor</groupId>
89             <artifactId>health-api</artifactId>
90             <version>0.7.0-SNAPSHOT</version>
91         </dependency>
92         <dependency>
93             <groupId>org.onap.ccsdk.cds.blueprintsprocessor</groupId>
94             <artifactId>health-api-common</artifactId>
95             <version>0.7.0-SNAPSHOT</version>
96         </dependency>
97
98         <!-- Libs -->
99         <dependency>
100             <groupId>org.onap.ccsdk.cds.blueprintsprocessor</groupId>
101             <artifactId>atomix-lib</artifactId>
102         </dependency>
103
104         <!-- Functions -->
105         <dependency>
106             <groupId>org.onap.ccsdk.cds.blueprintsprocessor.functions</groupId>
107             <artifactId>python-executor</artifactId>
108         </dependency>
109         <dependency>
110             <groupId>org.onap.ccsdk.cds.blueprintsprocessor.functions</groupId>
111             <artifactId>ansible-awx-executor</artifactId>
112         </dependency>
113         <dependency>
114             <groupId>org.onap.ccsdk.cds.blueprintsprocessor.functions</groupId>
115             <artifactId>netconf-executor</artifactId>
116         </dependency>
117         <dependency>
118             <groupId>org.onap.ccsdk.cds.blueprintsprocessor.functions</groupId>
119             <artifactId>restconf-executor</artifactId>
120         </dependency>
121         <dependency>
122             <groupId>org.onap.ccsdk.cds.blueprintsprocessor.functions</groupId>
123             <artifactId>cli-executor</artifactId>
124         </dependency>
125         <dependency>
126             <groupId>org.onap.ccsdk.cds.blueprintsprocessor.functions</groupId>
127             <artifactId>config-snapshots</artifactId>
128         </dependency>
129         <dependency>
130             <groupId>com.h2database</groupId>
131             <artifactId>h2</artifactId>
132         </dependency>
133         <dependency>
134             <groupId>org.powermock</groupId>
135             <artifactId>powermock-api-mockito2</artifactId>
136             <scope>test</scope>
137         </dependency>
138         <dependency>
139             <groupId>org.springframework.boot</groupId>
140             <artifactId>spring-boot-starter-test</artifactId>
141             <scope>test</scope>
142         </dependency>
143         <dependency>
144             <groupId>org.jetbrains.kotlin</groupId>
145             <artifactId>kotlin-test-junit</artifactId>
146             <scope>test</scope>
147         </dependency>
148         <dependency>
149             <groupId>io.projectreactor</groupId>
150             <artifactId>reactor-test</artifactId>
151             <scope>test</scope>
152         </dependency>
153         <!-- BEGIN UAT -->
154         <dependency>
155             <groupId>org.skyscreamer</groupId>
156             <artifactId>jsonassert</artifactId>
157         </dependency>
158         <dependency>
159             <groupId>org.yaml</groupId>
160             <artifactId>snakeyaml</artifactId>
161         </dependency>
162         <dependency>
163             <groupId>com.nhaarman.mockitokotlin2</groupId>
164             <artifactId>mockito-kotlin</artifactId>
165             <version>2.2.0</version>
166         </dependency>
167         <dependency>
168             <groupId>com.schibsted.spt.data</groupId>
169             <artifactId>jslt</artifactId>
170             <version>0.1.8</version>
171         </dependency>
172         <dependency>
173             <groupId>org.apache.httpcomponents</groupId>
174             <artifactId>httpclient</artifactId>
175             <version>${apache.httpcomponents.client.version}</version>
176         </dependency>
177         <dependency>
178             <groupId>org.apache.httpcomponents</groupId>
179             <artifactId>httpmime</artifactId>
180             <version>${apache.httpcomponents.client.version}</version>
181         </dependency>
182         <dependency>
183             <groupId>com.github.tomakehurst</groupId>
184             <artifactId>wiremock-jre8</artifactId>
185             <version>2.25.0</version>
186             <scope>test</scope>
187         </dependency>
188         <!-- END UAT -->
189         <dependency>
190             <groupId>ch.qos.logback</groupId>
191             <artifactId>logback-classic</artifactId>
192         </dependency>
193
194     </dependencies>
195
196     <build>
197         <resources>
198             <resource>
199                 <!--config and resource files -->
200                 <directory>${basedir}/etc</directory>
201                 <targetPath>${basedir}/target/etc</targetPath>
202                 <filtering>true</filtering>
203                 <includes>
204                     <include>**/*</include>
205                 </includes>
206             </resource>
207             <resource>
208                 <!--config and resource files -->
209                 <directory>${basedir}/src/main/resources</directory>
210                 <targetPath>${basedir}/target/src/main/resources</targetPath>
211                 <filtering>true</filtering>
212                 <includes>
213                     <include>**/*</include>
214                 </includes>
215             </resource>
216             <resource>
217                 <directory>src/main/resources</directory>
218                 <includes>
219                     <include>**/*</include>
220                 </includes>
221                 <filtering>true</filtering>
222             </resource>
223         </resources>
224         <plugins>
225             <plugin>
226                 <artifactId>maven-resources-plugin</artifactId>
227                 <version>2.6</version>
228                 <executions>
229                     <execution>
230                         <id>copy-dockerfile</id>
231                         <goals>
232                             <goal>copy-resources</goal>
233                         </goals><!-- here the phase you need -->
234                         <phase>validate</phase>
235                         <configuration>
236                             <outputDirectory>${basedir}/target/docker-stage</outputDirectory>
237                             <resources>
238                                 <resource>
239                                     <directory>src/main/docker</directory>
240                                     <includes>
241                                         <include>*</include>
242                                     </includes>
243                                     <filtering>true</filtering>
244                                 </resource>
245                             </resources>
246                         </configuration>
247                     </execution>
248                 </executions>
249             </plugin>
250             <plugin>
251                 <groupId>org.apache.maven.plugins</groupId>
252                 <artifactId>maven-antrun-plugin</artifactId>
253                 <executions>
254                     <execution>
255                         <id>ant-test</id>
256                         <phase>package</phase>
257                         <configuration>
258                             <tasks>
259                                 <fixcrlf srcdir="${basedir}" eol="unix" includes="**/*.sh, **/*.source"/>
260                             </tasks>
261                         </configuration>
262                         <goals>
263                             <goal>run</goal>
264                         </goals>
265                     </execution>
266                 </executions>
267             </plugin>
268             <plugin><!--build the final artifact for docker deployment -->
269                 <artifactId>maven-assembly-plugin</artifactId>
270                 <version>3.1.0</version>
271                 <configuration>
272                     <!-- <skipAssembly>${skip.assembly}</skipAssembly> -->
273                     <outputDirectory>${basedir}/target/docker-stage</outputDirectory>
274                     <descriptors>
275                         <descriptor>src/main/docker/distribution.xml</descriptor>
276                     </descriptors>
277                     <tarLongFileMode>posix</tarLongFileMode>
278                 </configuration>
279                 <executions>
280                     <execution>
281                         <id>${assembly.id}</id>
282                         <phase>package</phase>
283                         <goals>
284                             <goal>single</goal>
285                         </goals>
286                     </execution>
287                 </executions>
288             </plugin>
289             <plugin>
290                 <groupId>org.codehaus.groovy.maven</groupId>
291                 <artifactId>gmaven-plugin</artifactId>
292                 <version>1.0</version>
293                 <executions>
294                     <execution>
295                         <phase>validate</phase>
296                         <goals>
297                             <goal>execute</goal>
298                         </goals>
299                         <configuration>
300                             <source>${basedir}/../../../TagVersion.groovy</source>
301                         </configuration>
302                     </execution>
303                 </executions>
304             </plugin>
305             <plugin>
306                 <artifactId>maven-compiler-plugin</artifactId>
307                 <version>3.1</version>
308                 <configuration>
309                     <source>1.8</source>
310                     <target>1.8</target>
311                 </configuration>
312             </plugin>
313         </plugins>
314     </build>
315
316     <profiles>
317         <profile>
318             <id>docker</id>
319             <build>
320                 <plugins>
321                     <plugin>
322                         <groupId>io.fabric8</groupId>
323                         <artifactId>docker-maven-plugin</artifactId>
324                         <version>0.26.1</version>
325                         <inherited>false</inherited>
326                         <configuration>
327                             <images>
328                                 <image>
329                                     <name>${image.name}</name>
330                                     <build>
331                                         <cleanup>try</cleanup>
332                                         <dockerFileDir>${basedir}/target/docker-stage</dockerFileDir>
333                                         <tags>
334                                             <tag>${project.docker.latestminortag.version}</tag>
335                                             <tag>${project.docker.latestfulltag.version}</tag>
336                                             <tag>${project.docker.latesttagtimestamp.version}</tag>
337                                         </tags>
338                                     </build>
339                                 </image>
340                             </images>
341                             <verbose>true</verbose>
342                         </configuration>
343                         <executions>
344                             <execution>
345                                 <id>generate-images</id>
346                                 <phase>package</phase>
347                                 <goals>
348                                     <goal>build</goal>
349                                 </goals>
350                             </execution>
351                             <execution>
352                                 <id>push-images</id>
353                                 <phase>${docker.push.phase}</phase>
354                                 <goals>
355                                     <goal>build</goal>
356                                     <goal>push</goal>
357                                 </goals>
358                             </execution>
359                         </executions>
360                     </plugin>
361                 </plugins>
362             </build>
363         </profile>
364     </profiles>
365 </project>