blob: 2cdf13f3cc315bd253e39b4136143e3e9da20779 [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 -->
Christopher Lott (cl778h)978dbcf2017-08-23 18:27:19 -04007 <parent>
8 <groupId>org.springframework.boot</groupId>
9 <artifactId>spring-boot-starter-parent</artifactId>
PATTANAYAK, SAUMYA SWARUP (sp931a)cb4ff592020-04-27 12:40:47 -040010 <version>2.2.5.RELEASE</version>
Kishore Reddy, Gujja (kg811t)a59bc3e2018-09-25 13:59:56 -040011 <relativePath /> <!-- lookup parent from repository -->
Christopher Lott (cl778h)978dbcf2017-08-23 18:27:19 -040012 </parent>
13
Christopher Lott (cl778h)51d83152017-09-28 11:18:14 -040014 <groupId>org.onap.portal</groupId>
15 <artifactId>widget-ms</artifactId>
Muni Mohan Kunchifca38e12020-07-01 09:38:08 -040016 <version>3.4.0</version>
Christopher Lott (cl778h)51d83152017-09-28 11:18:14 -040017 <packaging>jar</packaging>
18 <name>widget-microservice</name>
19
Christopher Lott (cl778h)978dbcf2017-08-23 18:27:19 -040020 <properties>
21 <docker.imagename>widget-ms</docker.imagename>
22 <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
23 <project.reporting.outputEncoding>UTF-8</project.reporting.outputEncoding>
24 <java.version>1.8</java.version>
PATTANAYAK, SAUMYA SWARUP (sp931a)cb4ff592020-04-27 12:40:47 -040025 <hibernate.version>5.4.14.Final</hibernate.version>
sa282waa9b3202018-07-25 13:25:43 -040026 <skipTests>false</skipTests>
Christopher Lott (cl778h)b6079b32017-10-04 14:14:36 -040027 <!-- Replicate this from OParent -->
PATTANAYAK, SAUMYA SWARUP (sp931a)cb4ff592020-04-27 12:40:47 -040028 <jacocoVersion>0.8.2</jacocoVersion>
Christopher Lott (cl778h)978dbcf2017-08-23 18:27:19 -040029 </properties>
30
31 <dependencies>
Christopher Lott (cl778h)52ef9472017-08-30 16:09:59 -040032 <!-- This pom pulls in artifacts -->
33 <dependency>
Christopher Lott (cl778h)51d83152017-09-28 11:18:14 -040034 <groupId>org.onap.portal</groupId>
Christopher Lott (cl778h)52ef9472017-08-30 16:09:59 -040035 <artifactId>common-widgets</artifactId>
36 <version>${project.version}</version>
37 <type>pom</type>
38 </dependency>
Christopher Lott (cl778h)978dbcf2017-08-23 18:27:19 -040039 <dependency>
40 <!-- Setup Spring Data JPA Repository support -->
41 <groupId>org.springframework.boot</groupId>
42 <artifactId>spring-boot-starter-data-jpa</artifactId>
43 </dependency>
44 <dependency>
45 <groupId>org.springframework.boot</groupId>
46 <artifactId>spring-boot-starter-security</artifactId>
sa282w78224cb2018-03-30 14:09:40 -040047 <exclusions>
48 <exclusion>
49 <groupId>org.springframework.security</groupId>
50 <artifactId>spring-security-web</artifactId>
51 </exclusion>
52 </exclusions>
Christopher Lott (cl778h)978dbcf2017-08-23 18:27:19 -040053 </dependency>
54 <dependency>
55 <groupId>org.springframework.boot</groupId>
56 <artifactId>spring-boot-starter-thymeleaf</artifactId>
57 </dependency>
hb123fa70761c2019-03-20 12:20:44 -040058 <!-- <dependency>
Christopher Lott (cl778h)978dbcf2017-08-23 18:27:19 -040059 <groupId>org.springframework.boot</groupId>
60 <artifactId>spring-boot-devtools</artifactId>
61 <optional>true</optional>
hb123fa70761c2019-03-20 12:20:44 -040062 </dependency> -->
Christopher Lott (cl778h)978dbcf2017-08-23 18:27:19 -040063 <dependency>
64 <groupId>org.springframework.boot</groupId>
65 <artifactId>spring-boot-configuration-processor</artifactId>
66 <optional>true</optional>
67 </dependency>
68 <dependency>
69 <groupId>org.hibernate</groupId>
70 <artifactId>hibernate-core</artifactId>
PATTANAYAK, SAUMYA SWARUP (sp931a)cb4ff592020-04-27 12:40:47 -040071 <version>${hibernate.version}</version>
Christopher Lott (cl778h)978dbcf2017-08-23 18:27:19 -040072 </dependency>
73 <dependency>
74 <groupId>org.springframework.boot</groupId>
75 <artifactId>spring-boot-starter</artifactId>
76 </dependency>
77 <dependency>
78 <groupId>org.springframework.boot</groupId>
79 <artifactId>spring-boot-starter-test</artifactId>
80 <scope>test</scope>
81 </dependency>
82 <dependency>
83 <groupId>org.springframework.boot</groupId>
84 <artifactId>spring-boot-starter-web</artifactId>
85 </dependency>
86 <dependency>
87 <groupId>commons-codec</groupId>
88 <artifactId>commons-codec</artifactId>
89 <!-- <version>1.10</version> -->
90 </dependency>
91 <dependency>
92 <groupId>org.mariadb.jdbc</groupId>
93 <artifactId>mariadb-java-client</artifactId>
jz385p78c73d12020-07-30 22:16:02 +053094 <version>1.5.8</version>
Christopher Lott (cl778h)978dbcf2017-08-23 18:27:19 -040095 </dependency>
96 <dependency>
97 <groupId>com.github.ulisesbocchio</groupId>
98 <artifactId>jasypt-spring-boot-starter</artifactId>
PATTANAYAK, SAUMYA SWARUP (sp931a)cb4ff592020-04-27 12:40:47 -040099 <version>2.1.0</version>
Christopher Lott (cl778h)978dbcf2017-08-23 18:27:19 -0400100 </dependency>
stattaa3a04c52019-08-23 16:49:45 -0400101 <dependency>
102 <groupId>org.jsoup</groupId>
103 <artifactId>jsoup</artifactId>
104 <version>1.12.1</version>
105 </dependency>
Christopher Lott (cl778h)978dbcf2017-08-23 18:27:19 -0400106 <!-- hibernate-core depends on dom4j, which has optional dependencies.
107 On jenkins, contrary to doc, mvn 3.0.5 packages the optional dependencies
108 in the war. Workaround: exclude them explicitly. -->
109 <dependency>
110 <groupId>dom4j</groupId>
111 <artifactId>dom4j</artifactId>
PATTANAYAK, SAUMYA SWARUP (sp931a)cb4ff592020-04-27 12:40:47 -0400112 <version>1.6.1</version>
Christopher Lott (cl778h)978dbcf2017-08-23 18:27:19 -0400113 <exclusions>
114 <exclusion>
115 <groupId>jaxme</groupId>
116 <artifactId>jaxme-api</artifactId>
117 </exclusion>
118 <exclusion>
119 <groupId>jaxen</groupId>
120 <artifactId>jaxen</artifactId>
121 </exclusion>
122 <exclusion>
123 <groupId>msv</groupId>
124 <artifactId>xsdlib</artifactId>
125 </exclusion>
126 <exclusion>
127 <groupId>msv</groupId>
128 <artifactId>relaxngDatatype</artifactId>
129 </exclusion>
130 <exclusion>
131 <groupId>pull-parser</groupId>
132 <artifactId>pull-parser</artifactId>
133 </exclusion>
134 <exclusion>
135 <groupId>xpp3</groupId>
136 <artifactId>xpp3</artifactId>
137 </exclusion>
138 <exclusion>
139 <groupId>stax</groupId>
140 <artifactId>stax-api</artifactId>
141 </exclusion>
142 </exclusions>
143 </dependency>
Christopher Lott (cl778h)b6079b32017-10-04 14:14:36 -0400144 <!-- Jacoco offline instrumentation agent -->
145 <dependency>
146 <groupId>org.jacoco</groupId>
147 <artifactId>org.jacoco.agent</artifactId>
148 <version>${jacocoVersion}</version>
149 <classifier>runtime</classifier>
150 </dependency>
Gujjafadf84a2018-03-01 15:57:55 -0500151 <dependency>
152 <groupId>org.apache.tomcat.embed</groupId>
153 <artifactId>tomcat-embed-core</artifactId>
PATTANAYAK, SAUMYA SWARUP (sp931a)cb4ff592020-04-27 12:40:47 -0400154 <version>9.0.33</version>
Gujjafadf84a2018-03-01 15:57:55 -0500155 </dependency>
Kishore Reddy, Gujja (kg811t)4ee89672018-03-20 17:15:25 -0400156 <dependency>
157 <groupId>ch.qos.logback</groupId>
158 <artifactId>logback-core</artifactId>
159 <version>1.2.3</version>
160 </dependency>
161 <dependency>
162 <groupId>ch.qos.logback</groupId>
163 <artifactId>logback-classic</artifactId>
164 <version>1.2.3</version>
165 </dependency>
Kishore Reddy, Gujja (kg811t)8886b472018-03-23 18:16:50 -0400166 <dependency>
167 <groupId>com.fasterxml.jackson.core</groupId>
168 <artifactId>jackson-annotations</artifactId>
Sudarshan Kumar8e83c252020-02-18 16:16:26 +0530169 <version>2.9.8</version>
Kishore Reddy, Gujja (kg811t)8886b472018-03-23 18:16:50 -0400170 </dependency>
171 <dependency>
172 <groupId>com.fasterxml.jackson.core</groupId>
173 <artifactId>jackson-core</artifactId>
Sudarshan Kumar8e83c252020-02-18 16:16:26 +0530174 <version>2.9.8</version>
Kishore Reddy, Gujja (kg811t)8886b472018-03-23 18:16:50 -0400175 </dependency>
176 <dependency>
177 <groupId>com.fasterxml.jackson.core</groupId>
178 <artifactId>jackson-databind</artifactId>
Sudarshan Kumar8e83c252020-02-18 16:16:26 +0530179 <version>2.9.8</version>
Kishore Reddy, Gujja (kg811t)8886b472018-03-23 18:16:50 -0400180 </dependency>
sa282w78224cb2018-03-30 14:09:40 -0400181 <dependency>
182 <groupId>org.springframework.security</groupId>
183 <artifactId>spring-security-web</artifactId>
PATTANAYAK, SAUMYA SWARUP (sp931a)cb4ff592020-04-27 12:40:47 -0400184 <version>5.2.3.RELEASE</version>
sa282w78224cb2018-03-30 14:09:40 -0400185 </dependency>
Dominik Mizyn4750a192019-06-13 17:03:08 +0200186 <dependency>
187 <groupId>org.projectlombok</groupId>
188 <artifactId>lombok</artifactId>
189 <version>1.18.4</version>
190 </dependency>
Christopher Lott (cl778h)978dbcf2017-08-23 18:27:19 -0400191 </dependencies>
192
193 <build>
194
195 <finalName>${project.artifactId}</finalName>
196
197 <!-- To add resources, must name all including usual src/main/resources -->
Christopher Lott (cl778h)88c674e2017-10-04 08:32:30 -0400198 <resources>
Christopher Lott (cl778h)978dbcf2017-08-23 18:27:19 -0400199 <resource>
200 <directory>src/main/resources</directory>
201 <filtering>true</filtering>
202 </resource>
Christopher Lott (cl778h)88c674e2017-10-04 08:32:30 -0400203 <resource>
204 <directory>../common-widgets/target</directory>
205 <includes>
206 <include>**/*.zip</include>
207 </includes>
208 </resource>
209 </resources>
210
211 <pluginManagement>
212 <plugins>
Christopher Lott (cl778h)b6079b32017-10-04 14:14:36 -0400213 <!-- replicated from OParent -->
Christopher Lott (cl778h)88c674e2017-10-04 08:32:30 -0400214 <plugin>
215 <groupId>org.apache.maven.plugins</groupId>
216 <artifactId>maven-site-plugin</artifactId>
217 <version>3.6</version>
218 <dependencies>
219 <dependency>
220 <groupId>org.apache.maven.wagon</groupId>
221 <artifactId>wagon-webdav-jackrabbit</artifactId>
222 <version>2.10</version>
223 </dependency>
224 </dependencies>
225 </plugin>
226 </plugins>
227 </pluginManagement>
Christopher Lott (cl778h)978dbcf2017-08-23 18:27:19 -0400228
229 <plugins>
230
231 <plugin>
232 <groupId>org.springframework.boot</groupId>
233 <artifactId>spring-boot-maven-plugin</artifactId>
234 </plugin>
235
Christopher Lott (cl778h)19f3f4a2017-08-26 06:45:20 -0400236 <!-- No deployment step for this project -->
Christopher Lott (cl778h)978dbcf2017-08-23 18:27:19 -0400237 <plugin>
Christopher Lott (cl778h)19f3f4a2017-08-26 06:45:20 -0400238 <groupId>org.apache.maven.plugins</groupId>
239 <artifactId>maven-deploy-plugin</artifactId>
Christopher Lott (cl778h)88c674e2017-10-04 08:32:30 -0400240 <!-- version set by spring <version>2.8</version> -->
Christopher Lott (cl778h)978dbcf2017-08-23 18:27:19 -0400241 <configuration>
Christopher Lott (cl778h)19f3f4a2017-08-26 06:45:20 -0400242 <skip>true</skip>
Christopher Lott (cl778h)978dbcf2017-08-23 18:27:19 -0400243 </configuration>
244 </plugin>
Christopher Lott (cl778h)88c674e2017-10-04 08:32:30 -0400245 <plugin>
246 <groupId>org.jacoco</groupId>
247 <artifactId>jacoco-maven-plugin</artifactId>
Christopher Lott (cl778h)b6079b32017-10-04 14:14:36 -0400248 <version>${jacocoVersion}</version>
Christopher Lott (cl778h)88c674e2017-10-04 08:32:30 -0400249 <executions>
Christopher Lott (cl778h)b6079b32017-10-04 14:14:36 -0400250 <!-- disable jacoco executions from oparent -->
Christopher Lott (cl778h)88c674e2017-10-04 08:32:30 -0400251 <execution>
Christopher Lott (cl778h)b6079b32017-10-04 14:14:36 -0400252 <id>pre-unit-test</id>
253 <phase>none</phase>
254 </execution>
255 <execution>
256 <id>post-unit-test</id>
257 <phase>none</phase>
258 </execution>
259 <execution>
260 <id>pre-integration-test</id>
261 <phase>none</phase>
262 </execution>
263 <execution>
264 <id>post-integration-test</id>
265 <phase>none</phase>
266 </execution>
267 <!-- Order matters -->
268 <execution>
269 <id>portal-prepare-agent</id>
Christopher Lott (cl778h)88c674e2017-10-04 08:32:30 -0400270 <goals>
271 <goal>prepare-agent</goal>
272 </goals>
273 <configuration>
274 <destFile>${sonar.jacoco.reportPath}</destFile>
275 </configuration>
276 </execution>
Christopher Lott (cl778h)b6079b32017-10-04 14:14:36 -0400277 <!-- offline instrumentation for PowerMock -->
Christopher Lott (cl778h)88c674e2017-10-04 08:32:30 -0400278 <execution>
Christopher Lott (cl778h)b6079b32017-10-04 14:14:36 -0400279 <id>portal-offline-instrument</id>
Christopher Lott (cl778h)88c674e2017-10-04 08:32:30 -0400280 <goals>
281 <goal>instrument</goal>
282 </goals>
283 </execution>
284 <execution>
Christopher Lott (cl778h)b6079b32017-10-04 14:14:36 -0400285 <id>portal-restore-instrumented-classes</id>
Christopher Lott (cl778h)88c674e2017-10-04 08:32:30 -0400286 <phase>test</phase>
287 <goals>
288 <goal>restore-instrumented-classes</goal>
289 </goals>
290 </execution>
291 <execution>
Christopher Lott (cl778h)b6079b32017-10-04 14:14:36 -0400292 <id>portal-post-unit-test</id>
Christopher Lott (cl778h)88c674e2017-10-04 08:32:30 -0400293 <phase>test</phase>
294 <goals>
295 <goal>report</goal>
296 </goals>
297 <configuration>
298 <dataFile>${sonar.jacoco.reportPath}</dataFile>
299 <outputDirectory>${project.basedir}/target/site/jacoco</outputDirectory>
300 </configuration>
301 </execution>
Christopher Lott (cl778h)88c674e2017-10-04 08:32:30 -0400302 </executions>
303 </plugin>
Christopher Lott (cl778h)b6079b32017-10-04 14:14:36 -0400304
305 <plugin>
306 <groupId>org.apache.maven.plugins</groupId>
307 <artifactId>maven-surefire-plugin</artifactId>
308 <configuration>
309 <systemPropertyVariables>
310 <jacoco-agent.destfile>${project.build.directory}/code-coverage/jacoco-ut.exec</jacoco-agent.destfile>
311 </systemPropertyVariables>
312 </configuration>
313 </plugin>
Christopher Lott (cl778h)978dbcf2017-08-23 18:27:19 -0400314 </plugins>
315
316 </build>
317
Christopher Lott (cl778h)88c674e2017-10-04 08:32:30 -0400318 <!-- This POM cannot inherit from OParent -->
319 <distributionManagement>
320 <site>
321 <id>ecomp-site</id>
322 <url>dav:https://nexus.onap.org/content/sites/site/${project.groupId}/${project.artifactId}/${project.version}</url>
323 </site>
324 </distributionManagement>
325
Christopher Lott (cl778h)978dbcf2017-08-23 18:27:19 -0400326</project>