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.6.0-SNAPSHOT</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>false</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.security</groupId>
50 <artifactId>spring-security-web</artifactId>
55 <groupId>org.springframework.boot</groupId>
56 <artifactId>spring-boot-starter-thymeleaf</artifactId>
59 <groupId>org.springframework.boot</groupId>
60 <artifactId>spring-boot-devtools</artifactId>
61 <optional>true</optional>
64 <groupId>org.springframework.boot</groupId>
65 <artifactId>spring-boot-configuration-processor</artifactId>
66 <optional>true</optional>
69 <groupId>org.hibernate</groupId>
70 <artifactId>hibernate-core</artifactId>
71 <!-- <version>${hibernate.version}</version> -->
74 <groupId>org.springframework.boot</groupId>
75 <artifactId>spring-boot-starter</artifactId>
78 <groupId>org.springframework.boot</groupId>
79 <artifactId>spring-boot-starter-test</artifactId>
83 <groupId>org.springframework.boot</groupId>
84 <artifactId>spring-boot-starter-web</artifactId>
87 <groupId>commons-codec</groupId>
88 <artifactId>commons-codec</artifactId>
89 <!-- <version>1.10</version> -->
92 <groupId>org.mariadb.jdbc</groupId>
93 <artifactId>mariadb-java-client</artifactId>
94 <!-- <version>1.5.8</version> -->
97 <groupId>com.github.ulisesbocchio</groupId>
98 <artifactId>jasypt-spring-boot-starter</artifactId>
99 <version>1.9</version>
101 <!-- hibernate-core depends on dom4j, which has optional dependencies.
102 On jenkins, contrary to doc, mvn 3.0.5 packages the optional dependencies
103 in the war. Workaround: exclude them explicitly. -->
105 <groupId>dom4j</groupId>
106 <artifactId>dom4j</artifactId>
107 <!-- <version>1.6.1</version> -->
110 <groupId>jaxme</groupId>
111 <artifactId>jaxme-api</artifactId>
114 <groupId>jaxen</groupId>
115 <artifactId>jaxen</artifactId>
118 <groupId>msv</groupId>
119 <artifactId>xsdlib</artifactId>
122 <groupId>msv</groupId>
123 <artifactId>relaxngDatatype</artifactId>
126 <groupId>pull-parser</groupId>
127 <artifactId>pull-parser</artifactId>
130 <groupId>xpp3</groupId>
131 <artifactId>xpp3</artifactId>
134 <groupId>stax</groupId>
135 <artifactId>stax-api</artifactId>
139 <!-- Jacoco offline instrumentation agent -->
141 <groupId>org.jacoco</groupId>
142 <artifactId>org.jacoco.agent</artifactId>
143 <version>${jacocoVersion}</version>
144 <classifier>runtime</classifier>
147 <groupId>org.apache.tomcat.embed</groupId>
148 <artifactId>tomcat-embed-core</artifactId>
149 <version>8.5.28</version>
152 <groupId>ch.qos.logback</groupId>
153 <artifactId>logback-core</artifactId>
154 <version>1.2.3</version>
157 <groupId>ch.qos.logback</groupId>
158 <artifactId>logback-classic</artifactId>
159 <version>1.2.3</version>
162 <groupId>com.fasterxml.jackson.core</groupId>
163 <artifactId>jackson-annotations</artifactId>
164 <version>2.8.10</version>
167 <groupId>com.fasterxml.jackson.core</groupId>
168 <artifactId>jackson-core</artifactId>
169 <version>2.8.10</version>
172 <groupId>com.fasterxml.jackson.core</groupId>
173 <artifactId>jackson-databind</artifactId>
174 <version>2.8.10</version>
177 <groupId>org.springframework.security</groupId>
178 <artifactId>spring-security-web</artifactId>
179 <version>4.1.4.RELEASE</version>
182 <groupId>org.projectlombok</groupId>
183 <artifactId>lombok</artifactId>
184 <version>1.18.4</version>
190 <finalName>${project.artifactId}</finalName>
192 <!-- To add resources, must name all including usual src/main/resources -->
195 <directory>src/main/resources</directory>
196 <filtering>true</filtering>
199 <directory>../common-widgets/target</directory>
201 <include>**/*.zip</include>
208 <!-- replicated from OParent -->
210 <groupId>org.apache.maven.plugins</groupId>
211 <artifactId>maven-site-plugin</artifactId>
212 <version>3.6</version>
215 <groupId>org.apache.maven.wagon</groupId>
216 <artifactId>wagon-webdav-jackrabbit</artifactId>
217 <version>2.10</version>
227 <groupId>org.springframework.boot</groupId>
228 <artifactId>spring-boot-maven-plugin</artifactId>
231 <!-- No deployment step for this project -->
233 <groupId>org.apache.maven.plugins</groupId>
234 <artifactId>maven-deploy-plugin</artifactId>
235 <!-- version set by spring <version>2.8</version> -->
241 <groupId>org.jacoco</groupId>
242 <artifactId>jacoco-maven-plugin</artifactId>
243 <version>${jacocoVersion}</version>
245 <!-- disable jacoco executions from oparent -->
247 <id>pre-unit-test</id>
251 <id>post-unit-test</id>
255 <id>pre-integration-test</id>
259 <id>post-integration-test</id>
262 <!-- Order matters -->
264 <id>portal-prepare-agent</id>
266 <goal>prepare-agent</goal>
269 <destFile>${sonar.jacoco.reportPath}</destFile>
272 <!-- offline instrumentation for PowerMock -->
274 <id>portal-offline-instrument</id>
276 <goal>instrument</goal>
280 <id>portal-restore-instrumented-classes</id>
283 <goal>restore-instrumented-classes</goal>
287 <id>portal-post-unit-test</id>
293 <dataFile>${sonar.jacoco.reportPath}</dataFile>
294 <outputDirectory>${project.basedir}/target/site/jacoco</outputDirectory>
301 <groupId>org.apache.maven.plugins</groupId>
302 <artifactId>maven-surefire-plugin</artifactId>
304 <systemPropertyVariables>
305 <jacoco-agent.destfile>${project.build.directory}/code-coverage/jacoco-ut.exec</jacoco-agent.destfile>
306 </systemPropertyVariables>
313 <!-- This POM cannot inherit from OParent -->
314 <distributionManagement>
317 <url>dav:https://nexus.onap.org/content/sites/site/${project.groupId}/${project.artifactId}/${project.version}</url>
319 </distributionManagement>