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"
3 xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
4 <modelVersion>4.0.0</modelVersion>
6 <!-- This project must name Spring as parent; cannot name Portal -->
9 <groupId>org.springframework.boot</groupId>
10 <artifactId>spring-boot-starter-parent</artifactId>
11 <version>2.2.5.RELEASE</version>
12 <relativePath /> <!-- lookup parent from repository -->
15 <groupId>org.onap.portal</groupId>
16 <artifactId>widget-ms</artifactId>
17 <version>3.5.0</version>
18 <packaging>jar</packaging>
19 <name>widget-microservice</name>
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>
26 <hibernate.version>5.4.14.Final</hibernate.version>
27 <skipTests>false</skipTests>
28 <!-- Replicate this from OParent -->
29 <jacocoVersion>0.8.2</jacocoVersion>
33 <!-- This pom pulls in artifacts -->
35 <groupId>org.onap.portal</groupId>
36 <artifactId>common-widgets</artifactId>
37 <version>${project.version}</version>
41 <!-- Setup Spring Data JPA Repository support -->
42 <groupId>org.springframework.boot</groupId>
43 <artifactId>spring-boot-starter-data-jpa</artifactId>
46 <groupId>org.springframework.boot</groupId>
47 <artifactId>spring-boot-starter-security</artifactId>
50 <groupId>org.springframework.security</groupId>
51 <artifactId>spring-security-web</artifactId>
56 <groupId>org.springframework.boot</groupId>
57 <artifactId>spring-boot-starter-thymeleaf</artifactId>
60 <groupId>org.springframework.boot</groupId>
61 <artifactId>spring-boot-devtools</artifactId>
62 <optional>true</optional>
65 <groupId>org.springframework.boot</groupId>
66 <artifactId>spring-boot-configuration-processor</artifactId>
67 <optional>true</optional>
70 <groupId>org.hibernate</groupId>
71 <artifactId>hibernate-core</artifactId>
72 <version>${hibernate.version}</version>
75 <groupId>org.springframework.boot</groupId>
76 <artifactId>spring-boot-starter</artifactId>
79 <groupId>org.springframework.boot</groupId>
80 <artifactId>spring-boot-starter-test</artifactId>
84 <groupId>org.springframework.boot</groupId>
85 <artifactId>spring-boot-starter-web</artifactId>
88 <groupId>commons-codec</groupId>
89 <artifactId>commons-codec</artifactId>
90 <!-- <version>1.10</version> -->
93 <groupId>org.mariadb.jdbc</groupId>
94 <artifactId>mariadb-java-client</artifactId>
95 <version>1.5.8</version>
98 <groupId>com.github.ulisesbocchio</groupId>
99 <artifactId>jasypt-spring-boot-starter</artifactId>
100 <version>2.1.0</version>
103 <groupId>org.jsoup</groupId>
104 <artifactId>jsoup</artifactId>
105 <version>1.12.1</version>
107 <!-- 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. -->
111 <groupId>dom4j</groupId>
112 <artifactId>dom4j</artifactId>
113 <version>1.6.1</version>
116 <groupId>jaxme</groupId>
117 <artifactId>jaxme-api</artifactId>
120 <groupId>jaxen</groupId>
121 <artifactId>jaxen</artifactId>
124 <groupId>msv</groupId>
125 <artifactId>xsdlib</artifactId>
128 <groupId>msv</groupId>
129 <artifactId>relaxngDatatype</artifactId>
132 <groupId>pull-parser</groupId>
133 <artifactId>pull-parser</artifactId>
136 <groupId>xpp3</groupId>
137 <artifactId>xpp3</artifactId>
140 <groupId>stax</groupId>
141 <artifactId>stax-api</artifactId>
145 <!-- Jacoco offline instrumentation agent -->
147 <groupId>org.jacoco</groupId>
148 <artifactId>org.jacoco.agent</artifactId>
149 <version>${jacocoVersion}</version>
150 <classifier>runtime</classifier>
153 <groupId>org.apache.tomcat.embed</groupId>
154 <artifactId>tomcat-embed-core</artifactId>
155 <version>9.0.36</version>
158 <groupId>ch.qos.logback</groupId>
159 <artifactId>logback-core</artifactId>
160 <version>1.2.3</version>
163 <groupId>ch.qos.logback</groupId>
164 <artifactId>logback-classic</artifactId>
165 <version>1.2.3</version>
168 <groupId>com.fasterxml.jackson.core</groupId>
169 <artifactId>jackson-annotations</artifactId>
170 <version>2.11.0</version>
173 <groupId>com.fasterxml.jackson.core</groupId>
174 <artifactId>jackson-core</artifactId>
175 <version>2.11.0</version>
178 <groupId>com.fasterxml.jackson.core</groupId>
179 <artifactId>jackson-databind</artifactId>
180 <version>2.11.0</version>
183 <groupId>org.springframework.security</groupId>
184 <artifactId>spring-security-web</artifactId>
185 <version>5.2.3.RELEASE</version>
188 <groupId>org.projectlombok</groupId>
189 <artifactId>lombok</artifactId>
190 <version>1.18.4</version>
196 <finalName>${project.artifactId}</finalName>
198 <!-- To add resources, must name all including usual src/main/resources -->
201 <directory>src/main/resources</directory>
202 <filtering>true</filtering>
205 <directory>../common-widgets/target</directory>
207 <include>**/*.zip</include>
214 <!-- replicated from OParent -->
216 <groupId>org.apache.maven.plugins</groupId>
217 <artifactId>maven-site-plugin</artifactId>
218 <version>3.6</version>
221 <groupId>org.apache.maven.wagon</groupId>
222 <artifactId>wagon-webdav-jackrabbit</artifactId>
223 <version>2.10</version>
233 <groupId>org.springframework.boot</groupId>
234 <artifactId>spring-boot-maven-plugin</artifactId>
237 <!-- No deployment step for this project -->
239 <groupId>org.apache.maven.plugins</groupId>
240 <artifactId>maven-deploy-plugin</artifactId>
241 <!-- version set by spring <version>2.8</version> -->
247 <groupId>org.jacoco</groupId>
248 <artifactId>jacoco-maven-plugin</artifactId>
249 <version>${jacocoVersion}</version>
251 <!-- disable jacoco executions from oparent -->
253 <id>pre-unit-test</id>
257 <id>post-unit-test</id>
261 <id>pre-integration-test</id>
265 <id>post-integration-test</id>
268 <!-- Order matters -->
270 <id>portal-prepare-agent</id>
272 <goal>prepare-agent</goal>
275 <destFile>${sonar.jacoco.reportPath}</destFile>
278 <!-- offline instrumentation for PowerMock -->
280 <id>portal-offline-instrument</id>
282 <goal>instrument</goal>
286 <id>portal-restore-instrumented-classes</id>
289 <goal>restore-instrumented-classes</goal>
293 <id>portal-post-unit-test</id>
299 <dataFile>${sonar.jacoco.reportPath}</dataFile>
300 <outputDirectory>${project.basedir}/target/site/jacoco</outputDirectory>
307 <groupId>org.apache.maven.plugins</groupId>
308 <artifactId>maven-surefire-plugin</artifactId>
310 <systemPropertyVariables>
311 <jacoco-agent.destfile>${project.build.directory}/code-coverage/jacoco-ut.exec</jacoco-agent.destfile>
312 </systemPropertyVariables>
319 <!-- This POM cannot inherit from OParent -->
320 <distributionManagement>
323 <url>dav:https://nexus.onap.org/content/sites/site/${project.groupId}/${project.artifactId}/${project.version}</url>
325 </distributionManagement>