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