Use latest Honolulu parent pom
[ccsdk/apps.git] / ms / vlantag-api / 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     <groupId>org.onap.ccsdk.apps.ms.vlantagapi</groupId>
6     <artifactId>vlantag-api</artifactId>
7     <version>1.1.0-SNAPSHOT</version>
8     <packaging>jar</packaging>
9
10     <name>Vlantag API</name>
11     <description>Vlantag Api Service for Vlantag management of VNFs</description>
12
13     <properties>
14         <swagger.directory>${basedir}/target/main/resources/META-INF/resources/swagger-ui/dist</swagger.directory>
15         <swagger.annotations.version>1.5.8</swagger.annotations.version>
16         <java.version>1.8</java.version>
17         <springboot.version>2.0.4.RELEASE</springboot.version>
18         <mariadb.connector.version>2.1.1</mariadb.connector.version>
19         <docker.registry>TBD:5100</docker.registry>
20         <serviceArtifactName>vlantagapi</serviceArtifactName>
21
22         <ilib.version>2.0.7</ilib.version>
23         <docker.buildArg.https_proxy>${https_proxy}</docker.buildArg.https_proxy>
24         <docker.push.phase>deploy</docker.push.phase>
25         <docker.verbose>true</docker.verbose>
26         <ccsdk.project.version>${project.version}</ccsdk.project.version>
27         <ccsdk.build.timestamp>${maven.build.timestamp}</ccsdk.build.timestamp>
28     </properties>
29
30     <parent>
31         <groupId>org.onap.ccsdk.parent</groupId>
32         <artifactId>spring-boot-starter-parent</artifactId>
33         <version>2.1.1-SNAPSHOT</version>
34         <relativePath/>
35     </parent>
36
37
38     <dependencies>
39         <dependency>
40             <groupId>org.springframework.boot</groupId>
41             <artifactId>spring-boot-starter-jersey</artifactId>
42         </dependency>
43         <dependency>
44             <groupId>org.springframework.boot</groupId>
45             <artifactId>spring-boot-starter-web</artifactId>
46         </dependency>
47         <dependency>
48             <groupId>org.springframework.boot</groupId>
49             <artifactId>spring-boot-starter-test</artifactId>
50             <scope>test</scope>
51         </dependency>
52
53         <dependency>
54             <groupId>org.springframework.boot</groupId>
55             <artifactId>spring-boot-starter-actuator</artifactId>
56         </dependency>
57
58         <dependency>
59             <groupId>org.springframework.boot</groupId>
60             <artifactId>spring-boot-starter-security</artifactId>
61         </dependency>
62
63         <dependency>
64             <groupId>org.onap.ccsdk.sli.core</groupId>
65             <artifactId>sli-common</artifactId>
66             <version>${ccsdk.sli.core.version}</version>
67             <scope>provided</scope>
68         </dependency>
69         <dependency>
70             <groupId>org.onap.ccsdk.sli.adaptors</groupId>
71             <artifactId>resource-assignment-provider</artifactId>
72             <version>${ccsdk.sli.adaptors.version}</version>
73             <exclusions>
74                 <exclusion>
75                     <groupId>org.slf4j</groupId>
76                     <artifactId>slf4j-simple</artifactId>
77                 </exclusion>
78             </exclusions>
79         </dependency>
80
81         <dependency>
82             <groupId>org.mariadb.jdbc</groupId>
83             <artifactId>mariadb-java-client</artifactId>
84         </dependency>
85
86         <dependency>
87             <groupId>io.swagger</groupId>
88             <artifactId>swagger-annotations</artifactId>
89         </dependency>
90     </dependencies>
91
92
93
94     <build>
95         <plugins>
96             <plugin>
97                 <groupId>org.codehaus.groovy.maven</groupId>
98                 <artifactId>gmaven-plugin</artifactId>
99                 <version>1.0</version>
100                 <executions>
101                     <execution>
102                         <phase>validate</phase>
103                         <goals>
104                             <goal>execute</goal>
105                         </goals>
106                         <configuration>
107                             <source>${basedir}/../../TagVersion.groovy</source>
108                         </configuration>
109                     </execution>
110                 </executions>
111             </plugin>
112             <plugin>
113                 <groupId>org.apache.maven.plugins</groupId>
114                 <artifactId>maven-surefire-plugin</artifactId>
115                 <configuration>
116                     <argLine>${surefireArgLine}</argLine>
117                     <skipTests>${skip.unit.tests}</skipTests>
118                     <excludes>
119                         <exclude>**/IT*.java</exclude>
120                     </excludes>
121                 </configuration>
122             </plugin>
123             <plugin>
124                 <groupId>com.github.kongchen</groupId>
125                 <artifactId>swagger-maven-plugin</artifactId>
126                 <version>3.1.7</version>
127                 <configuration>
128                     <apiSources>
129                         <apiSource>
130                             <schemes>
131                                 <scheme>http</scheme>
132                                 <scheme>https</scheme>
133                             </schemes>
134                             <host>localhost:9091</host>
135                             <locations>
136                                 <location>org.onap.ccsdk.apps.ms.vlantagapi.core.service</location>
137                                 <location>org.onap.ccsdk.apps.ms.vlantagapi.core.model</location>
138                             </locations>
139                             <!-- <locations>org.onap.ccsdk.apps.ms.vlantagapi.core.service</locations> -->
140                             <basePath>/vlantagapi</basePath>
141                             <info>
142                                 <title>${project.artifactId} Service</title>
143                                 <version>${project.version}</version>
144                             </info>
145                             <securityDefinitions>
146                                 <securityDefinition>
147                                     <name>basicAuth</name>
148                                     <type>basic</type>
149                                 </securityDefinition>
150                             </securityDefinitions>
151                             <swaggerDirectory>${swagger.directory}</swaggerDirectory>
152                         </apiSource>
153                     </apiSources>
154                 </configuration>
155                 <executions>
156                     <execution>
157                         <!-- <phase>compile</phase> -->
158                         <phase>package</phase>
159                         <goals>
160                             <goal>generate</goal>
161                         </goals>
162                     </execution>
163                 </executions>
164             </plugin>
165             <plugin>
166                 <groupId>com.spotify</groupId>
167                 <artifactId>docker-maven-plugin</artifactId>
168                 <version>0.4.11</version>
169                 <configuration>
170                     <imageName>${docker.registry}/org.onap.ccsdk.apps/${serviceArtifactName}</imageName>
171                     <dockerDirectory>src/main/docker</dockerDirectory>
172                     <serverId>docker-hub</serverId>
173                     <registryUrl>https://${docker.registry}</registryUrl>
174                     <imageTags>
175                         <imageTag>${project.docker.latestminortag.version}</imageTag>
176                         <imageTag>${project.docker.latestfulltag.version}</imageTag>
177                         <imageTag>${project.docker.latesttagtimestamp.version}</imageTag>
178                     </imageTags>
179                     <forceTags>true</forceTags>
180                     <resources>
181                         <resource>
182                             <targetPath>/</targetPath>
183                             <directory>${project.build.directory}</directory>
184                             <include>${project.build.finalName}.jar</include>
185                         </resource>
186                     </resources>
187                 </configuration>
188             </plugin>
189             <plugin>
190                 <groupId>org.springframework.boot</groupId>
191                 <artifactId>spring-boot-maven-plugin</artifactId>
192                 <version>${springboot.version}</version>
193                 <executions>
194                     <execution>
195                         <goals>
196                             <goal>repackage</goal>
197                         </goals>
198                     </execution>
199                 </executions>
200             </plugin>
201         </plugins>
202     </build>
203
204     <profiles>
205         <profile>
206             <id>docker</id>
207             <build>
208                 <plugins>
209                     <plugin>
210                         <groupId>com.spotify</groupId>
211                         <artifactId>docker-maven-plugin</artifactId>
212                         <version>0.4.11</version>
213                         <configuration>
214                             <imageName>${docker.registry}/org.onap.ccsdk.apps/${serviceArtifactName}</imageName>
215                             <dockerDirectory>src/main/docker</dockerDirectory>
216                             <serverId>docker-hub</serverId>
217                             <registryUrl>https://${docker.registry}</registryUrl>
218                             <imageTags>
219                                 <imageTag>${project.version}</imageTag>
220                                 <imageTag>${project.version}-STAGING-${maven.build.timestamp}</imageTag>
221                                 <imageTag>${project.docker.latesttag.version}</imageTag>
222                             </imageTags>
223                             <forceTags>true</forceTags>
224                             <resources>
225                                 <resource>
226                                     <targetPath>/</targetPath>
227                                     <directory>${project.build.directory}</directory>
228                                     <include>${project.build.finalName}.jar</include>
229                                 </resource>
230                             </resources>
231                         </configuration>
232                     </plugin>
233                 </plugins>
234             </build>
235         </profile>
236     </profiles>
237
238
239 </project>