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 -->
8 <groupId>org.springframework.boot</groupId>
9 <artifactId>spring-boot-starter-parent</artifactId>
10 <version>1.4.2.RELEASE</version>
11 <relativePath /> <!-- lookup parent from repository -->
14 <groupId>org.onap.portal</groupId>
15 <artifactId>widget-ms</artifactId>
16 <version>2.2.0</version>
17 <packaging>jar</packaging>
18 <name>widget-microservice</name>
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>
25 <hibernate.version>4.3.11.Final</hibernate.version>
26 <skipTests>true</skipTests>
27 <!-- Replicate this from OParent -->
28 <jacocoVersion>0.7.6.201602180812</jacocoVersion>
32 <!-- This pom pulls in artifacts -->
34 <groupId>org.onap.portal</groupId>
35 <artifactId>common-widgets</artifactId>
36 <version>${project.version}</version>
40 <!-- Setup Spring Data JPA Repository support -->
41 <groupId>org.springframework.boot</groupId>
42 <artifactId>spring-boot-starter-data-jpa</artifactId>
45 <groupId>org.springframework.boot</groupId>
46 <artifactId>spring-boot-starter-security</artifactId>
49 <groupId>org.springframework.boot</groupId>
50 <artifactId>spring-boot-starter-thymeleaf</artifactId>
53 <groupId>org.springframework.boot</groupId>
54 <artifactId>spring-boot-devtools</artifactId>
55 <optional>true</optional>
58 <groupId>org.springframework.boot</groupId>
59 <artifactId>spring-boot-configuration-processor</artifactId>
60 <optional>true</optional>
63 <groupId>org.hibernate</groupId>
64 <artifactId>hibernate-core</artifactId>
65 <!-- <version>${hibernate.version}</version> -->
68 <groupId>org.springframework.boot</groupId>
69 <artifactId>spring-boot-starter</artifactId>
72 <groupId>org.springframework.boot</groupId>
73 <artifactId>spring-boot-starter-test</artifactId>
77 <groupId>org.springframework.boot</groupId>
78 <artifactId>spring-boot-starter-web</artifactId>
81 <groupId>commons-codec</groupId>
82 <artifactId>commons-codec</artifactId>
83 <!-- <version>1.10</version> -->
86 <groupId>org.mariadb.jdbc</groupId>
87 <artifactId>mariadb-java-client</artifactId>
88 <!-- <version>1.5.8</version> -->
91 <groupId>com.github.ulisesbocchio</groupId>
92 <artifactId>jasypt-spring-boot-starter</artifactId>
93 <version>1.9</version>
95 <!-- hibernate-core depends on dom4j, which has optional dependencies.
96 On jenkins, contrary to doc, mvn 3.0.5 packages the optional dependencies
97 in the war. Workaround: exclude them explicitly. -->
99 <groupId>dom4j</groupId>
100 <artifactId>dom4j</artifactId>
101 <!-- <version>1.6.1</version> -->
104 <groupId>jaxme</groupId>
105 <artifactId>jaxme-api</artifactId>
108 <groupId>jaxen</groupId>
109 <artifactId>jaxen</artifactId>
112 <groupId>msv</groupId>
113 <artifactId>xsdlib</artifactId>
116 <groupId>msv</groupId>
117 <artifactId>relaxngDatatype</artifactId>
120 <groupId>pull-parser</groupId>
121 <artifactId>pull-parser</artifactId>
124 <groupId>xpp3</groupId>
125 <artifactId>xpp3</artifactId>
128 <groupId>stax</groupId>
129 <artifactId>stax-api</artifactId>
133 <!-- Jacoco offline instrumentation agent -->
135 <groupId>org.jacoco</groupId>
136 <artifactId>org.jacoco.agent</artifactId>
137 <version>${jacocoVersion}</version>
138 <classifier>runtime</classifier>
141 <groupId>org.apache.tomcat.embed</groupId>
142 <artifactId>tomcat-embed-core</artifactId>
143 <version>8.5.13</version>
146 <groupId>ch.qos.logback</groupId>
147 <artifactId>logback-core</artifactId>
148 <version>1.2.3</version>
151 <groupId>ch.qos.logback</groupId>
152 <artifactId>logback-classic</artifactId>
153 <version>1.2.3</version>
159 <finalName>${project.artifactId}</finalName>
161 <!-- To add resources, must name all including usual src/main/resources -->
164 <directory>src/main/resources</directory>
165 <filtering>true</filtering>
168 <directory>../common-widgets/target</directory>
170 <include>**/*.zip</include>
177 <!-- replicated from OParent -->
179 <groupId>org.apache.maven.plugins</groupId>
180 <artifactId>maven-site-plugin</artifactId>
181 <version>3.6</version>
184 <groupId>org.apache.maven.wagon</groupId>
185 <artifactId>wagon-webdav-jackrabbit</artifactId>
186 <version>2.10</version>
196 <groupId>org.springframework.boot</groupId>
197 <artifactId>spring-boot-maven-plugin</artifactId>
200 <!-- No deployment step for this project -->
202 <groupId>org.apache.maven.plugins</groupId>
203 <artifactId>maven-deploy-plugin</artifactId>
204 <!-- version set by spring <version>2.8</version> -->
210 <groupId>org.jacoco</groupId>
211 <artifactId>jacoco-maven-plugin</artifactId>
212 <version>${jacocoVersion}</version>
214 <!-- disable jacoco executions from oparent -->
216 <id>pre-unit-test</id>
220 <id>post-unit-test</id>
224 <id>pre-integration-test</id>
228 <id>post-integration-test</id>
231 <!-- Order matters -->
233 <id>portal-prepare-agent</id>
235 <goal>prepare-agent</goal>
238 <destFile>${sonar.jacoco.reportPath}</destFile>
241 <!-- offline instrumentation for PowerMock -->
243 <id>portal-offline-instrument</id>
245 <goal>instrument</goal>
249 <id>portal-restore-instrumented-classes</id>
252 <goal>restore-instrumented-classes</goal>
256 <id>portal-post-unit-test</id>
262 <dataFile>${sonar.jacoco.reportPath}</dataFile>
263 <outputDirectory>${project.basedir}/target/site/jacoco</outputDirectory>
270 <groupId>org.apache.maven.plugins</groupId>
271 <artifactId>maven-surefire-plugin</artifactId>
273 <systemPropertyVariables>
274 <jacoco-agent.destfile>${project.build.directory}/code-coverage/jacoco-ut.exec</jacoco-agent.destfile>
275 </systemPropertyVariables>
282 <!-- This POM cannot inherit from OParent -->
283 <distributionManagement>
286 <url>dav:https://nexus.onap.org/content/sites/site/${project.groupId}/${project.artifactId}/${project.version}</url>
288 </distributionManagement>