Add aai-service bean
[ccsdk/apps.git] / ms / sliboot / pom.xml
1 <?xml version="1.0" encoding="UTF-8"?>
2 <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">
3     <modelVersion>4.0.0</modelVersion>
4
5     <parent>
6         <groupId>org.onap.ccsdk.parent</groupId>
7         <artifactId>spring-boot-starter-parent</artifactId>
8         <version>2.1.0-SNAPSHOT</version>
9         <relativePath/>
10     </parent>
11
12     <groupId>org.onap.ccsdk.apps</groupId>
13     <artifactId>sliboot</artifactId>
14     <version>1.1.0-SNAPSHOT</version>
15     <packaging>jar</packaging>
16
17     <name>ccsdk-apps :: sliboot :: ${project.artifactId}</name>
18
19     <properties>
20         <start-class>org.onap.ccsdk.apps.ms.sliboot.SlibootApp</start-class>
21         <shiro.version>1.5.0</shiro.version>
22         <aaf-shiro-bundle.version>2.1.13</aaf-shiro-bundle.version>
23         <base.image.name>onap/ccsdk-alpine-image</base.image.name>
24         <base.image.version>1.1-STAGING-latest</base.image.version>
25         <image.name>onap/ccsdk-sliboot-alpine-image</image.name>
26         <ccsdk.project.version>${project.version}</ccsdk.project.version>
27         <ccsdk.build.timestamp>${maven.build.timestamp}</ccsdk.build.timestamp>
28         <maven.build.timestamp.format>yyyyMMdd'T'HHmmss'Z'</maven.build.timestamp.format>
29         <ccsdk.sliboot.jar>${project.artifactId}-${project.version}-exec.jar</ccsdk.sliboot.jar>
30         <docker.push.phase>deploy</docker.push.phase>
31         <docker.verbose>true</docker.verbose>
32     </properties>
33
34     <dependencies>
35         <dependency>
36             <groupId>io.swagger</groupId>
37             <artifactId>swagger-annotations</artifactId>
38         </dependency>
39         <dependency>
40             <groupId>org.apache.shiro</groupId>
41             <artifactId>shiro-spring-boot-web-starter</artifactId>
42             <version>${shiro.version}</version>
43             <exclusions>
44                 <exclusion>
45                     <groupId>org.springframework.boot</groupId>
46                     <artifactId>spring-boot-starter-logging</artifactId>
47                 </exclusion>
48             </exclusions>
49         </dependency>
50         <dependency>
51             <groupId>org.springframework.boot</groupId>
52             <artifactId>spring-boot-starter-log4j2</artifactId>
53         </dependency>
54         <dependency>
55             <groupId>org.springframework.boot</groupId>
56             <artifactId>spring-boot-starter-validation</artifactId>
57         </dependency>
58         <dependency>
59             <groupId>org.onap.aaf.cadi</groupId>
60             <artifactId>aaf-cadi-shiro</artifactId>
61             <version>${aaf-shiro-bundle.version}</version>
62         </dependency>
63
64         <dependency>
65             <groupId>org.springframework.boot</groupId>
66             <artifactId>spring-boot-starter-test</artifactId>
67             <scope>test</scope>
68         </dependency>
69         <dependency>
70             <groupId>org.springframework.boot</groupId>
71             <artifactId>spring-boot-starter-data-jpa</artifactId>
72         </dependency>
73         <dependency>
74             <groupId>io.springfox</groupId>
75             <artifactId>springfox-swagger2</artifactId>
76             <version>2.9.2</version>
77         </dependency>
78         <dependency>
79             <groupId>io.springfox</groupId>
80             <artifactId>springfox-swagger-ui</artifactId>
81             <version>2.9.2</version>
82         </dependency>
83         <dependency>
84             <groupId>${project.groupId}</groupId>
85             <artifactId>services</artifactId>
86             <version>${project.version}</version>
87         </dependency>
88         <dependency>
89             <groupId>org.onap.ccsdk.sli.core</groupId>
90             <artifactId>dblib-provider</artifactId>
91             <version>${ccsdk.sli.core.version}</version>
92         </dependency>
93         <dependency>
94             <groupId>org.onap.ccsdk.sli.core</groupId>
95             <artifactId>sli-common</artifactId>
96             <version>${ccsdk.sli.core.version}</version>
97         </dependency>
98         <dependency>
99             <groupId>org.onap.ccsdk.sli.core</groupId>
100             <artifactId>sli-provider-base</artifactId>
101             <version>${ccsdk.sli.core.version}</version>
102         </dependency>
103         <dependency>
104             <groupId>com.google.code.gson</groupId>
105             <artifactId>gson</artifactId>
106         </dependency>
107         <dependency>
108             <groupId>org.apache.derby</groupId>
109             <artifactId>derby</artifactId>
110             <scope>test</scope>
111         </dependency>
112         <dependency>
113             <groupId>org.mariadb.jdbc</groupId>
114             <artifactId>mariadb-java-client</artifactId>
115         </dependency>
116         <dependency>
117             <groupId>junit</groupId>
118             <artifactId>junit</artifactId>
119             <scope>test</scope>
120         </dependency>
121         <dependency>
122             <groupId>org.onap.logging-analytics</groupId>
123             <artifactId>logging-filter-spring</artifactId>
124             <version>1.6.6</version>
125         </dependency>
126         <dependency>
127             <groupId>javax.ws.rs</groupId>
128             <artifactId>javax.ws.rs-api</artifactId>
129         </dependency>
130         <dependency>
131             <groupId>org.onap.ccsdk.sli.core</groupId>
132             <artifactId>sliPluginUtils-provider</artifactId>
133             <version>${ccsdk.sli.core.version}</version>
134         </dependency>
135         <dependency>
136             <groupId>org.onap.ccsdk.sli.plugins</groupId>
137             <artifactId>restapi-call-node-provider</artifactId>
138             <version>${ccsdk.sli.plugins.version}</version>
139         </dependency>
140         <dependency>
141             <groupId>org.onap.ccsdk.sli.plugins</groupId>
142             <artifactId>properties-node-provider</artifactId>
143             <version>${ccsdk.sli.plugins.version}</version>
144         </dependency>
145         <!-- this jersey jar is needed for rest api call node to function properly -->
146         <dependency>
147             <groupId>org.glassfish.jersey.inject</groupId>
148             <artifactId>jersey-hk2</artifactId>
149         </dependency>
150     </dependencies>
151
152     <build>
153         <plugins>
154             <plugin>
155                 <groupId>org.codehaus.groovy.maven</groupId>
156                 <artifactId>gmaven-plugin</artifactId>
157                 <executions>
158                     <execution>
159                         <phase>validate</phase>
160                         <goals>
161                             <goal>execute</goal>
162                         </goals>
163                         <configuration>
164                             <source>${basedir}/TagVersion.groovy</source>
165                         </configuration>
166                     </execution>
167                 </executions>
168             </plugin>
169
170             <plugin>
171                 <groupId>org.apache.maven.plugins</groupId>
172                 <artifactId>maven-dependency-plugin</artifactId>
173                 <version>2.10</version>
174
175                 <executions>
176                     <execution>
177                         <id>get-sliapi-yaml</id>
178                         <phase>initialize</phase>
179                         <goals>
180                             <goal>copy</goal>
181                         </goals>
182                         <configuration>
183                             <artifactItems>
184                                 <artifactItem>
185                                     <groupId>org.onap.ccsdk.sli.core</groupId>
186                                     <artifactId>sliapi-model-swagger</artifactId>
187                                     <version>${ccsdk.sli.core.version}</version>
188                                     <type>yaml</type>
189                                     <outputDirectory>${project.build.directory}/yaml</outputDirectory>
190                                     <destFileName>sliapi.yaml</destFileName>
191                                 </artifactItem>
192                             </artifactItems>
193                         </configuration>
194                     </execution>
195                 </executions>
196             </plugin>
197             <plugin>
198                 <groupId>io.swagger</groupId>
199                 <artifactId>swagger-codegen-maven-plugin</artifactId>
200                 <version>2.3.1</version>
201                 <executions>
202                     <execution>
203                         <phase>generate-sources</phase>
204                         <goals>
205                             <goal>generate</goal>
206                         </goals>
207                         <configuration>
208                             <output>target/generated-sources</output>
209                             <inputSpec>${project.build.directory}/yaml/sliapi.yaml</inputSpec>
210                             <language>spring</language>
211                             <apiPackage>org.onap.ccsdk.apps.ms.sliboot.swagger</apiPackage>
212                             <modelPackage>org.onap.ccsdk.apps.ms.sliboot.swagger.model</modelPackage>
213                             <invokerPackage>org.onap.ccsdk.apps.ms.sliboot.swagger</invokerPackage>
214                             <generateApis>true</generateApis>
215                             <generateApiTests>true</generateApiTests>
216                             <ignoreFileOverride>${project.basedir}/.swagger-codegen-ignore</ignoreFileOverride>
217                             <withXml>true</withXml>
218                             <templateDirectory>${project.basedir}/src/main/templates</templateDirectory>
219                             <configOptions>
220                                 <java8>true</java8>
221                                 <springBootVersion>2.2.4-RELEASE</springBootVersion>
222                             </configOptions>
223                         </configuration>
224                     </execution>
225                 </executions>
226             </plugin>
227             <plugin>
228                 <groupId>org.springframework.boot</groupId>
229                 <artifactId>spring-boot-maven-plugin</artifactId>
230                 <configuration>
231                     <classifier>exec</classifier>
232                 </configuration>
233                 <executions>
234                     <execution>
235                         <goals>
236                             <goal>repackage</goal>
237                         </goals>
238                     </execution>
239                 </executions>
240             </plugin>
241
242         </plugins>
243     </build>
244
245     <profiles>
246         <profile>
247             <id>docker</id>
248             <build>
249                 <plugins>
250                     <plugin>
251                         <groupId>org.apache.maven.plugins</groupId>
252                         <artifactId>maven-dependency-plugin</artifactId>
253                         <version>2.10</version>
254
255                         <executions>
256                             <execution>
257                                 <id>copy-dependencies</id>
258                                 <goals>
259                                     <goal>copy-dependencies</goal>
260                                 </goals>
261                                 <phase>prepare-package</phase>
262                                 <configuration>
263                                     <excludeTransitive>true</excludeTransitive>
264                                     <outputDirectory>${project.build.directory}/docker-stage/opt/onap/ccsdk/lib</outputDirectory>
265                                     <overWriteReleases>false</overWriteReleases>
266                                     <overWriteSnapshots>true</overWriteSnapshots>
267                                     <overWriteIfNewer>true</overWriteIfNewer>
268                                     <useRepositoryLayout>false</useRepositoryLayout>
269                                     <addParentPoms>false</addParentPoms>
270                                     <copyPom>false</copyPom>
271                                 </configuration>
272                             </execution>
273                             <execution>
274                                 <id>unpack dgs</id>
275                                 <phase>generate-sources</phase>
276                                 <goals>
277                                     <goal>unpack</goal>
278                                 </goals>
279                                 <configuration>
280                                     <outputDirectory>${basedir}/target/docker-stage/opt/onap/ccsdk</outputDirectory>
281                                     <artifactItems>
282                                         <artifactItem>
283                                             <groupId>org.onap.ccsdk.distribution</groupId>
284                                             <artifactId>platform-logic-installer</artifactId>
285                                             <version>${project.version}</version>
286                                             <type>zip</type>
287                                         </artifactItem>
288                                     </artifactItems>
289                                 </configuration>
290                             </execution>
291                         </executions>
292                     </plugin>
293                     <plugin>
294                         <artifactId>maven-resources-plugin</artifactId>
295                         <version>2.6</version>
296                         <executions>
297                             <execution>
298                                 <id>copy-dockerfile</id>
299                                 <goals>
300                                     <goal>copy-resources</goal>
301                                 </goals><!-- here the phase you need -->
302                                 <phase>initialize</phase>
303                                 <configuration>
304                                     <outputDirectory>${basedir}/target/docker-stage</outputDirectory>
305                                     <resources>
306                                         <resource>
307                                             <directory>src/main/docker</directory>
308                                             <includes>
309                                                 <include>Dockerfile</include>
310                                             </includes>
311                                             <filtering>true</filtering>
312                                         </resource>
313                                     </resources>
314                                 </configuration>
315                             </execution>
316                             <execution>
317                                 <id>copy-config</id>
318                                 <goals>
319                                     <goal>copy-resources</goal>
320                                 </goals><!-- here the phase you need -->
321                                 <phase>generate-resources</phase>
322                                 <configuration>
323                                     <outputDirectory>${basedir}/target/docker-stage/opt/onap/ccsdk/config</outputDirectory>
324                                     <resources>
325                                         <resource>
326                                             <directory>src/main/resources</directory>
327                                             <includes>
328                                                 <include>*.properties</include>
329                                                 <include>*.props</include>
330                                                 <include>*.sql</include>
331                                             </includes>
332                                             <filtering>true</filtering>
333                                         </resource>
334                                         <resource>
335                                             <directory>src/main/resources</directory>
336                                             <includes>
337                                                 <include>*.keyfile</include>
338                                                 <include>*.jks</include>
339                                                 <include>*.p12</include>
340                                             </includes>
341                                             <filtering>false</filtering>
342                                         </resource>
343                                     </resources>
344                                 </configuration>
345                             </execution>
346                             <execution>
347                                 <id>copy-script</id>
348                                 <goals>
349                                     <goal>copy-resources</goal>
350                                 </goals><!-- here the phase you need -->
351                                 <phase>generate-resources</phase>
352                                 <configuration>
353                                     <outputDirectory>${basedir}/target/docker-stage/opt/onap/ccsdk/bin</outputDirectory>
354                                     <resources>
355                                         <resource>
356                                             <directory>src/main/resources</directory>
357                                             <includes>
358                                                 <include>*.sh</include>
359                                             </includes>
360                                             <filtering>true</filtering>
361                                         </resource>
362                                     </resources>
363                                 </configuration>
364                             </execution>
365                             <execution>
366                                 <id>copy-jar</id>
367                                 <goals>
368                                     <goal>copy-resources</goal>
369                                 </goals><!-- here the phase you need -->
370                                 <phase>package</phase>
371                                 <configuration>
372                                     <outputDirectory>${basedir}/target/docker-stage/opt/onap/ccsdk/lib</outputDirectory>
373                                     <resources>
374                                         <resource>
375                                             <directory>${basedir}/target</directory>
376                                             <includes>
377                                                 <include>${ccsdk.sliboot.jar}</include>
378                                             </includes>
379                                             <filtering>false</filtering>
380                                         </resource>
381                                     </resources>
382                                 </configuration>
383                             </execution>
384                         </executions>
385                     </plugin>
386                     <plugin>
387                         <groupId>io.fabric8</groupId>
388                         <artifactId>docker-maven-plugin</artifactId>
389                         <version>0.28.0</version>
390                         <inherited>false</inherited>
391                         <configuration>
392                             <images>
393                                 <image>
394                                     <name>${image.name}</name>
395                                     <build>
396                                         <cleanup>try</cleanup>
397                                         <dockerFileDir>${basedir}/target/docker-stage</dockerFileDir>
398                                         <dockerFile>Dockerfile</dockerFile>
399                                         <tags>
400                                             <tag>${project.docker.latestminortag.version}</tag>
401                                             <tag>${project.docker.latestfulltag.version}</tag>
402                                             <tag>${project.docker.latesttagtimestamp.version}</tag>
403                                         </tags>
404                                     </build>
405                                 </image>
406                             </images>
407                         </configuration>
408                         <executions>
409                             <execution>
410                                 <id>generate-images</id>
411                                 <phase>package</phase>
412                                 <goals>
413                                     <goal>build</goal>
414                                 </goals>
415                             </execution>
416
417                             <execution>
418                                 <id>push-images</id>
419                                 <phase>${docker.push.phase}</phase>
420                                 <goals>
421                                     <goal>build</goal>
422                                     <goal>push</goal>
423                                 </goals>
424                             </execution>
425                         </executions>
426                     </plugin>
427                 </plugins>
428             </build>
429         </profile>
430     </profiles>
431 </project>