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