switch tca to docker-maven-plugin
[dcaegen2/analytics/tca-gen2.git] / dcae-analytics / dcae-analytics-tca-web / pom.xml
1 <?xml version="1.0" encoding="UTF-8"?>
2 <!--
3   ~ ================================================================================
4   ~ Copyright (c) 2018 AT&T Intellectual Property. All rights reserved.
5   ~ ================================================================================
6   ~ Licensed under the Apache License, Version 2.0 (the "License");
7   ~ you may not use this file except in compliance with the License.
8   ~ You may obtain a copy of the License at
9   ~
10   ~      http://www.apache.org/licenses/LICENSE-2.0
11   ~
12   ~ Unless required by applicable law or agreed to in writing, software
13   ~ distributed under the License is distributed on an "AS IS" BASIS,
14   ~ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
15   ~ See the License for the specific language governing permissions and
16   ~ limitations under the License.
17   ~ ============LICENSE_END=========================================================
18   ~
19   -->
20
21 <project xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
22          xmlns="http://maven.apache.org/POM/4.0.0"
23          xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
24
25     <modelVersion>4.0.0</modelVersion>
26
27     <parent>
28         <groupId>org.onap.dcaegen2.analytics.tca-gen2</groupId>
29         <artifactId>dcae-analytics</artifactId>
30         <version>3.0.0-SNAPSHOT</version>
31     </parent>
32
33     <artifactId>dcae-analytics-tca-web</artifactId>
34     <packaging>jar</packaging>
35
36     <!-- THE MODULE CONTAINS WEB RELATED CODE FOR TCA -->
37     <name>DCAE Analytics TCA Web</name>
38     <description>Contains Web related code for TCA</description>
39
40     <properties>
41         <main.basedir>${project.parent.basedir}</main.basedir>
42     </properties>
43
44     <dependencies>
45
46         <!-- PROJECT DEPENDENCIES -->
47         <dependency>
48             <groupId>${project.groupId}</groupId>
49             <artifactId>dcae-analytics-web</artifactId>
50         </dependency>
51         <dependency>
52             <groupId>${project.groupId}</groupId>
53             <artifactId>dcae-analytics-tca-core</artifactId>
54         </dependency>
55
56
57         <!-- SPRING DEPENDENCIES -->
58         <dependency>
59             <groupId>org.springframework.boot</groupId>
60             <artifactId>spring-boot-starter-actuator</artifactId>
61         </dependency>
62         <dependency>
63             <groupId>io.micrometer</groupId>
64             <artifactId>micrometer-registry-prometheus</artifactId>
65         </dependency>
66
67
68         <!-- SPRING CONFIGURATION META DATA ANNOTATION PROCESSOR -->
69         <dependency>
70             <groupId>org.springframework.boot</groupId>
71             <artifactId>spring-boot-configuration-processor</artifactId>
72             <optional>true</optional>
73         </dependency>
74
75         <!-- CODE GENERATION -->
76         <dependency>
77             <groupId>org.projectlombok</groupId>
78             <artifactId>lombok</artifactId>
79             <scope>provided</scope>
80         </dependency>
81
82         <!-- FIND BUGS -->
83         <dependency>
84             <groupId>com.google.code.findbugs</groupId>
85             <artifactId>jsr305</artifactId>
86         </dependency>
87         <dependency>
88             <groupId>com.google.code.findbugs</groupId>
89             <artifactId>annotations</artifactId>
90         </dependency>
91
92         <!-- REST API SWAGGER -->
93         <dependency>
94             <groupId>io.springfox</groupId>
95             <artifactId>springfox-swagger2</artifactId>
96         </dependency>
97         <dependency>
98             <groupId>io.springfox</groupId>
99             <artifactId>springfox-swagger-ui</artifactId>
100         </dependency>
101
102         <!-- TEST DEPENDENCIES -->
103         <dependency>
104             <groupId>${project.groupId}</groupId>
105             <artifactId>dcae-analytics-test</artifactId>
106         </dependency>
107
108     </dependencies>
109
110
111     <build>
112         <resources>
113             <resource>
114                 <directory>${project.basedir}/src/main/resources</directory>
115             </resource>
116             <resource>
117                 <directory>${project.build.directory}/git</directory>
118             </resource>
119             <resource>
120                 <directory>docker</directory>
121                 <includes>
122                     <include>Dockerfile</include>
123                 </includes>
124                 <targetPath>${project.basedir}</targetPath>
125                 <filtering>true</filtering>
126             </resource>
127         </resources>
128
129         <plugins>
130             <plugin>
131                 <groupId>pl.project13.maven</groupId>
132                 <artifactId>git-commit-id-plugin</artifactId>
133             </plugin>
134             <plugin>
135                 <groupId>org.springframework.boot</groupId>
136                 <artifactId>spring-boot-maven-plugin</artifactId>
137             </plugin>
138             <!-- DOCKER PLUGIN -->
139             <plugin>
140                 <groupId>com.spotify</groupId>
141                 <artifactId>docker-maven-plugin</artifactId>
142                 <configuration>
143                         <skipDocker>false</skipDocker>
144                         <repository>${docker.repository}/onap/${project.groupId}.${project.artifactId}</repository>
145                         <tag>${project.version}</tag>
146                 </configuration>
147 <!--                <artifactId>dockerfile-maven-plugin</artifactId>
148                    <executions>
149                     <execution>
150                         <id>build-image</id>
151                         <phase>package</phase>
152                         <goals>
153                             <goal>build</goal>
154                         </goals>
155                     </execution>
156                     <execution>
157                         <id>docker-push</id>
158                         <phase>deploy</phase>
159                         <goals>
160                             <goal>push</goal>
161                         </goals>
162                     </execution>
163                 </executions>
164 -->
165             </plugin>
166         </plugins>
167     </build>
168 </project>