blob: a601dbef4d271ccf5a84045b3390a56d30cc70aa [file] [log] [blame]
Christopher Lott (cl778h)978dbcf2017-08-23 18:27:19 -04001<?xml version="1.0" encoding="UTF-8"?>
Kishore Reddy, Gujja (kg811t)a59bc3e2018-09-25 13:59:56 -04002<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
3 xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
st782s21a87612018-01-30 17:29:36 -05004 <modelVersion>4.0.0</modelVersion>
Christopher Lott (cl778h)978dbcf2017-08-23 18:27:19 -04005
Christopher Lott (cl778h)88c674e2017-10-04 08:32:30 -04006 <!-- This project must name Spring as parent; cannot name Portal -->
Sri Balaji Marripud42ad14c2020-09-07 17:33:30 -04007
Christopher Lott (cl778h)978dbcf2017-08-23 18:27:19 -04008 <parent>
9 <groupId>org.springframework.boot</groupId>
10 <artifactId>spring-boot-starter-parent</artifactId>
PATTANAYAK, SAUMYA SWARUP (sp931a)cb4ff592020-04-27 12:40:47 -040011 <version>2.2.5.RELEASE</version>
Kishore Reddy, Gujja (kg811t)a59bc3e2018-09-25 13:59:56 -040012 <relativePath /> <!-- lookup parent from repository -->
Christopher Lott (cl778h)978dbcf2017-08-23 18:27:19 -040013 </parent>
14
Christopher Lott (cl778h)51d83152017-09-28 11:18:14 -040015 <groupId>org.onap.portal</groupId>
16 <artifactId>widget-ms</artifactId>
Muni Mohan Kunchifca38e12020-07-01 09:38:08 -040017 <version>3.4.0</version>
Christopher Lott (cl778h)51d83152017-09-28 11:18:14 -040018 <packaging>jar</packaging>
19 <name>widget-microservice</name>
20
Christopher Lott (cl778h)978dbcf2017-08-23 18:27:19 -040021 <properties>
22 <docker.imagename>widget-ms</docker.imagename>
23 <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
24 <project.reporting.outputEncoding>UTF-8</project.reporting.outputEncoding>
25 <java.version>1.8</java.version>
PATTANAYAK, SAUMYA SWARUP (sp931a)cb4ff592020-04-27 12:40:47 -040026 <hibernate.version>5.4.14.Final</hibernate.version>
sa282waa9b3202018-07-25 13:25:43 -040027 <skipTests>false</skipTests>
Christopher Lott (cl778h)b6079b32017-10-04 14:14:36 -040028 <!-- Replicate this from OParent -->
PATTANAYAK, SAUMYA SWARUP (sp931a)cb4ff592020-04-27 12:40:47 -040029 <jacocoVersion>0.8.2</jacocoVersion>
Christopher Lott (cl778h)978dbcf2017-08-23 18:27:19 -040030 </properties>
31
32 <dependencies>
Christopher Lott (cl778h)52ef9472017-08-30 16:09:59 -040033 <!-- This pom pulls in artifacts -->
34 <dependency>
Christopher Lott (cl778h)51d83152017-09-28 11:18:14 -040035 <groupId>org.onap.portal</groupId>
Christopher Lott (cl778h)52ef9472017-08-30 16:09:59 -040036 <artifactId>common-widgets</artifactId>
37 <version>${project.version}</version>
38 <type>pom</type>
39 </dependency>
Christopher Lott (cl778h)978dbcf2017-08-23 18:27:19 -040040 <dependency>
41 <!-- Setup Spring Data JPA Repository support -->
42 <groupId>org.springframework.boot</groupId>
43 <artifactId>spring-boot-starter-data-jpa</artifactId>
44 </dependency>
45 <dependency>
46 <groupId>org.springframework.boot</groupId>
47 <artifactId>spring-boot-starter-security</artifactId>
sa282w78224cb2018-03-30 14:09:40 -040048 <exclusions>
49 <exclusion>
50 <groupId>org.springframework.security</groupId>
51 <artifactId>spring-security-web</artifactId>
52 </exclusion>
53 </exclusions>
Christopher Lott (cl778h)978dbcf2017-08-23 18:27:19 -040054 </dependency>
55 <dependency>
56 <groupId>org.springframework.boot</groupId>
57 <artifactId>spring-boot-starter-thymeleaf</artifactId>
58 </dependency>
hb123fa70761c2019-03-20 12:20:44 -040059 <!-- <dependency>
Christopher Lott (cl778h)978dbcf2017-08-23 18:27:19 -040060 <groupId>org.springframework.boot</groupId>
61 <artifactId>spring-boot-devtools</artifactId>
62 <optional>true</optional>
hb123fa70761c2019-03-20 12:20:44 -040063 </dependency> -->
Christopher Lott (cl778h)978dbcf2017-08-23 18:27:19 -040064 <dependency>
65 <groupId>org.springframework.boot</groupId>
66 <artifactId>spring-boot-configuration-processor</artifactId>
67 <optional>true</optional>
68 </dependency>
69 <dependency>
70 <groupId>org.hibernate</groupId>
71 <artifactId>hibernate-core</artifactId>
PATTANAYAK, SAUMYA SWARUP (sp931a)cb4ff592020-04-27 12:40:47 -040072 <version>${hibernate.version}</version>
Christopher Lott (cl778h)978dbcf2017-08-23 18:27:19 -040073 </dependency>
74 <dependency>
75 <groupId>org.springframework.boot</groupId>
76 <artifactId>spring-boot-starter</artifactId>
77 </dependency>
78 <dependency>
79 <groupId>org.springframework.boot</groupId>
80 <artifactId>spring-boot-starter-test</artifactId>
81 <scope>test</scope>
82 </dependency>
83 <dependency>
84 <groupId>org.springframework.boot</groupId>
85 <artifactId>spring-boot-starter-web</artifactId>
86 </dependency>
87 <dependency>
88 <groupId>commons-codec</groupId>
89 <artifactId>commons-codec</artifactId>
90 <!-- <version>1.10</version> -->
91 </dependency>
92 <dependency>
93 <groupId>org.mariadb.jdbc</groupId>
94 <artifactId>mariadb-java-client</artifactId>
jz385p78c73d12020-07-30 22:16:02 +053095 <version>1.5.8</version>
Christopher Lott (cl778h)978dbcf2017-08-23 18:27:19 -040096 </dependency>
97 <dependency>
98 <groupId>com.github.ulisesbocchio</groupId>
99 <artifactId>jasypt-spring-boot-starter</artifactId>
PATTANAYAK, SAUMYA SWARUP (sp931a)cb4ff592020-04-27 12:40:47 -0400100 <version>2.1.0</version>
Christopher Lott (cl778h)978dbcf2017-08-23 18:27:19 -0400101 </dependency>
stattaa3a04c52019-08-23 16:49:45 -0400102 <dependency>
103 <groupId>org.jsoup</groupId>
104 <artifactId>jsoup</artifactId>
105 <version>1.12.1</version>
106 </dependency>
Christopher Lott (cl778h)978dbcf2017-08-23 18:27:19 -0400107 <!-- hibernate-core depends on dom4j, which has optional dependencies.
108 On jenkins, contrary to doc, mvn 3.0.5 packages the optional dependencies
109 in the war. Workaround: exclude them explicitly. -->
110 <dependency>
111 <groupId>dom4j</groupId>
112 <artifactId>dom4j</artifactId>
PATTANAYAK, SAUMYA SWARUP (sp931a)cb4ff592020-04-27 12:40:47 -0400113 <version>1.6.1</version>
Christopher Lott (cl778h)978dbcf2017-08-23 18:27:19 -0400114 <exclusions>
115 <exclusion>
116 <groupId>jaxme</groupId>
117 <artifactId>jaxme-api</artifactId>
118 </exclusion>
119 <exclusion>
120 <groupId>jaxen</groupId>
121 <artifactId>jaxen</artifactId>
122 </exclusion>
123 <exclusion>
124 <groupId>msv</groupId>
125 <artifactId>xsdlib</artifactId>
126 </exclusion>
127 <exclusion>
128 <groupId>msv</groupId>
129 <artifactId>relaxngDatatype</artifactId>
130 </exclusion>
131 <exclusion>
132 <groupId>pull-parser</groupId>
133 <artifactId>pull-parser</artifactId>
134 </exclusion>
135 <exclusion>
136 <groupId>xpp3</groupId>
137 <artifactId>xpp3</artifactId>
138 </exclusion>
139 <exclusion>
140 <groupId>stax</groupId>
141 <artifactId>stax-api</artifactId>
142 </exclusion>
143 </exclusions>
144 </dependency>
Christopher Lott (cl778h)b6079b32017-10-04 14:14:36 -0400145 <!-- Jacoco offline instrumentation agent -->
146 <dependency>
147 <groupId>org.jacoco</groupId>
148 <artifactId>org.jacoco.agent</artifactId>
149 <version>${jacocoVersion}</version>
150 <classifier>runtime</classifier>
151 </dependency>
Gujjafadf84a2018-03-01 15:57:55 -0500152 <dependency>
153 <groupId>org.apache.tomcat.embed</groupId>
154 <artifactId>tomcat-embed-core</artifactId>
Sri Balaji Marripud42ad14c2020-09-07 17:33:30 -0400155 <version>9.0.36</version>
Gujjafadf84a2018-03-01 15:57:55 -0500156 </dependency>
Kishore Reddy, Gujja (kg811t)4ee89672018-03-20 17:15:25 -0400157 <dependency>
158 <groupId>ch.qos.logback</groupId>
159 <artifactId>logback-core</artifactId>
160 <version>1.2.3</version>
161 </dependency>
162 <dependency>
163 <groupId>ch.qos.logback</groupId>
164 <artifactId>logback-classic</artifactId>
165 <version>1.2.3</version>
166 </dependency>
Kishore Reddy, Gujja (kg811t)8886b472018-03-23 18:16:50 -0400167 <dependency>
168 <groupId>com.fasterxml.jackson.core</groupId>
169 <artifactId>jackson-annotations</artifactId>
Sri Balaji Marripud42ad14c2020-09-07 17:33:30 -0400170 <version>2.11.0</version>
Kishore Reddy, Gujja (kg811t)8886b472018-03-23 18:16:50 -0400171 </dependency>
172 <dependency>
173 <groupId>com.fasterxml.jackson.core</groupId>
174 <artifactId>jackson-core</artifactId>
Sri Balaji Marripud42ad14c2020-09-07 17:33:30 -0400175 <version>2.11.0</version>
Kishore Reddy, Gujja (kg811t)8886b472018-03-23 18:16:50 -0400176 </dependency>
177 <dependency>
178 <groupId>com.fasterxml.jackson.core</groupId>
179 <artifactId>jackson-databind</artifactId>
Sri Balaji Marripud42ad14c2020-09-07 17:33:30 -0400180 <version>2.11.0</version>
Kishore Reddy, Gujja (kg811t)8886b472018-03-23 18:16:50 -0400181 </dependency>
sa282w78224cb2018-03-30 14:09:40 -0400182 <dependency>
183 <groupId>org.springframework.security</groupId>
184 <artifactId>spring-security-web</artifactId>
PATTANAYAK, SAUMYA SWARUP (sp931a)cb4ff592020-04-27 12:40:47 -0400185 <version>5.2.3.RELEASE</version>
sa282w78224cb2018-03-30 14:09:40 -0400186 </dependency>
Dominik Mizyn4750a192019-06-13 17:03:08 +0200187 <dependency>
188 <groupId>org.projectlombok</groupId>
189 <artifactId>lombok</artifactId>
190 <version>1.18.4</version>
191 </dependency>
Christopher Lott (cl778h)978dbcf2017-08-23 18:27:19 -0400192 </dependencies>
193
194 <build>
195
196 <finalName>${project.artifactId}</finalName>
197
198 <!-- To add resources, must name all including usual src/main/resources -->
Christopher Lott (cl778h)88c674e2017-10-04 08:32:30 -0400199 <resources>
Christopher Lott (cl778h)978dbcf2017-08-23 18:27:19 -0400200 <resource>
201 <directory>src/main/resources</directory>
202 <filtering>true</filtering>
203 </resource>
Christopher Lott (cl778h)88c674e2017-10-04 08:32:30 -0400204 <resource>
205 <directory>../common-widgets/target</directory>
206 <includes>
207 <include>**/*.zip</include>
208 </includes>
209 </resource>
210 </resources>
211
212 <pluginManagement>
213 <plugins>
Christopher Lott (cl778h)b6079b32017-10-04 14:14:36 -0400214 <!-- replicated from OParent -->
Christopher Lott (cl778h)88c674e2017-10-04 08:32:30 -0400215 <plugin>
216 <groupId>org.apache.maven.plugins</groupId>
217 <artifactId>maven-site-plugin</artifactId>
218 <version>3.6</version>
219 <dependencies>
220 <dependency>
221 <groupId>org.apache.maven.wagon</groupId>
222 <artifactId>wagon-webdav-jackrabbit</artifactId>
223 <version>2.10</version>
224 </dependency>
225 </dependencies>
226 </plugin>
227 </plugins>
228 </pluginManagement>
Christopher Lott (cl778h)978dbcf2017-08-23 18:27:19 -0400229
230 <plugins>
231
232 <plugin>
233 <groupId>org.springframework.boot</groupId>
234 <artifactId>spring-boot-maven-plugin</artifactId>
235 </plugin>
236
Christopher Lott (cl778h)19f3f4a2017-08-26 06:45:20 -0400237 <!-- No deployment step for this project -->
Christopher Lott (cl778h)978dbcf2017-08-23 18:27:19 -0400238 <plugin>
Christopher Lott (cl778h)19f3f4a2017-08-26 06:45:20 -0400239 <groupId>org.apache.maven.plugins</groupId>
240 <artifactId>maven-deploy-plugin</artifactId>
Christopher Lott (cl778h)88c674e2017-10-04 08:32:30 -0400241 <!-- version set by spring <version>2.8</version> -->
Christopher Lott (cl778h)978dbcf2017-08-23 18:27:19 -0400242 <configuration>
Christopher Lott (cl778h)19f3f4a2017-08-26 06:45:20 -0400243 <skip>true</skip>
Christopher Lott (cl778h)978dbcf2017-08-23 18:27:19 -0400244 </configuration>
245 </plugin>
Christopher Lott (cl778h)88c674e2017-10-04 08:32:30 -0400246 <plugin>
247 <groupId>org.jacoco</groupId>
248 <artifactId>jacoco-maven-plugin</artifactId>
Christopher Lott (cl778h)b6079b32017-10-04 14:14:36 -0400249 <version>${jacocoVersion}</version>
Christopher Lott (cl778h)88c674e2017-10-04 08:32:30 -0400250 <executions>
Christopher Lott (cl778h)b6079b32017-10-04 14:14:36 -0400251 <!-- disable jacoco executions from oparent -->
Christopher Lott (cl778h)88c674e2017-10-04 08:32:30 -0400252 <execution>
Christopher Lott (cl778h)b6079b32017-10-04 14:14:36 -0400253 <id>pre-unit-test</id>
254 <phase>none</phase>
255 </execution>
256 <execution>
257 <id>post-unit-test</id>
258 <phase>none</phase>
259 </execution>
260 <execution>
261 <id>pre-integration-test</id>
262 <phase>none</phase>
263 </execution>
264 <execution>
265 <id>post-integration-test</id>
266 <phase>none</phase>
267 </execution>
268 <!-- Order matters -->
269 <execution>
270 <id>portal-prepare-agent</id>
Christopher Lott (cl778h)88c674e2017-10-04 08:32:30 -0400271 <goals>
272 <goal>prepare-agent</goal>
273 </goals>
274 <configuration>
275 <destFile>${sonar.jacoco.reportPath}</destFile>
276 </configuration>
277 </execution>
Christopher Lott (cl778h)b6079b32017-10-04 14:14:36 -0400278 <!-- offline instrumentation for PowerMock -->
Christopher Lott (cl778h)88c674e2017-10-04 08:32:30 -0400279 <execution>
Christopher Lott (cl778h)b6079b32017-10-04 14:14:36 -0400280 <id>portal-offline-instrument</id>
Christopher Lott (cl778h)88c674e2017-10-04 08:32:30 -0400281 <goals>
282 <goal>instrument</goal>
283 </goals>
284 </execution>
285 <execution>
Christopher Lott (cl778h)b6079b32017-10-04 14:14:36 -0400286 <id>portal-restore-instrumented-classes</id>
Christopher Lott (cl778h)88c674e2017-10-04 08:32:30 -0400287 <phase>test</phase>
288 <goals>
289 <goal>restore-instrumented-classes</goal>
290 </goals>
291 </execution>
292 <execution>
Christopher Lott (cl778h)b6079b32017-10-04 14:14:36 -0400293 <id>portal-post-unit-test</id>
Christopher Lott (cl778h)88c674e2017-10-04 08:32:30 -0400294 <phase>test</phase>
295 <goals>
296 <goal>report</goal>
297 </goals>
298 <configuration>
299 <dataFile>${sonar.jacoco.reportPath}</dataFile>
300 <outputDirectory>${project.basedir}/target/site/jacoco</outputDirectory>
301 </configuration>
302 </execution>
Christopher Lott (cl778h)88c674e2017-10-04 08:32:30 -0400303 </executions>
304 </plugin>
Christopher Lott (cl778h)b6079b32017-10-04 14:14:36 -0400305
306 <plugin>
307 <groupId>org.apache.maven.plugins</groupId>
308 <artifactId>maven-surefire-plugin</artifactId>
309 <configuration>
310 <systemPropertyVariables>
311 <jacoco-agent.destfile>${project.build.directory}/code-coverage/jacoco-ut.exec</jacoco-agent.destfile>
312 </systemPropertyVariables>
313 </configuration>
314 </plugin>
Christopher Lott (cl778h)978dbcf2017-08-23 18:27:19 -0400315 </plugins>
316
317 </build>
318
Christopher Lott (cl778h)88c674e2017-10-04 08:32:30 -0400319 <!-- This POM cannot inherit from OParent -->
320 <distributionManagement>
321 <site>
322 <id>ecomp-site</id>
323 <url>dav:https://nexus.onap.org/content/sites/site/${project.groupId}/${project.artifactId}/${project.version}</url>
324 </site>
325 </distributionManagement>
326
Christopher Lott (cl778h)978dbcf2017-08-23 18:27:19 -0400327</project>