Fix for h2 missing from testing
[policy/engine.git] / pom.xml
1 <!--
2   ============LICENSE_START=======================================================
3   ONAP Policy Engine
4   ================================================================================
5   Copyright (C) 2017-2018 AT&T Intellectual Property. All rights reserved.
6   ================================================================================
7   Licensed under the Apache License, Version 2.0 (the "License");
8   you may not use this file except in compliance with the License.
9   You may obtain a copy of the License at
10   
11        http://www.apache.org/licenses/LICENSE-2.0
12   
13   Unless required by applicable law or agreed to in writing, software
14   distributed under the License is distributed on an "AS IS" BASIS,
15   WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
16   See the License for the specific language governing permissions and
17   limitations under the License.
18   ============LICENSE_END=========================================================
19   -->
20 <project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
21         xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">
22         <modelVersion>4.0.0</modelVersion>
23
24         <parent>
25                 <groupId>org.onap.oparent</groupId>
26                 <artifactId>oparent</artifactId>
27                 <version>0.1.1</version>
28                 <relativePath/>
29         </parent>
30
31         <groupId>org.onap.policy.engine</groupId>
32         <artifactId>PolicyEngineSuite</artifactId>
33         <version>1.2.0-SNAPSHOT</version>
34         <packaging>pom</packaging>
35         <name>policy-engine</name>
36
37         <description>The ONAP Policy Engine main pom</description>
38
39         <properties>
40                 <!-- Project common build settings -->
41                 <project.source.version>1.8</project.source.version>
42                 <project.target.version>1.8</project.target.version>
43                 <project.encoding>UTF-8</project.encoding>
44                 <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
45                 <!-- Project path properties -->
46                 <nexusproxy>https://nexus.onap.org</nexusproxy>
47                 <sitePath>/content/sites/site/${project.groupId}/${project.artifactId}/${project.version}</sitePath>
48                 <releases.path>content/repositories/releases/</releases.path>
49                 <snapshots.path>content/repositories/snapshots/</snapshots.path>
50                 <staging.path>content/repositories/staging/</staging.path>
51
52                 <!-- sonar/jacoco overrides -->
53                 <!-- Overriding oparent default sonar/jacoco settings Combine all our reports 
54                         into one file shared across sub-modules -->
55                 <sonar.jacoco.reportPath>${project.basedir}/../target/code-coverage/jacoco-ut.exec</sonar.jacoco.reportPath>
56                 <sonar.jacoco.itReportPath>${project.basedir}/../target/code-coverage/jacoco-it.exec</sonar.jacoco.itReportPath>
57                 <sonar.dynamicAnalysis>reuseReports</sonar.dynamicAnalysis>
58
59                 <!--
60                 Shared between policy/* project repositories - same version 
61         -->
62                 <h2.version>1.4.186</h2.version>
63
64                 <!--
65                 Shared between policy/* project repositories - different version 
66         -->
67
68                 <!-- Project common dependency versions -->
69                 <jetty.plugin.version>9.2.3.v20140905</jetty.plugin.version>
70                 <dmaap.version>1.0.0</dmaap.version>
71                 <httpclient.version>4.5.5</httpclient.version>
72                 <jackson.version>2.9.4</jackson.version>
73                 <commons.fileupload.version>1.3.3</commons.fileupload.version>
74         </properties>
75
76
77         <modules>
78                 <module>PolicyEngineUtils</module>
79                 <module>ONAP-XACML</module>
80                 <module>ONAP-REST</module>
81                 <module>PolicyEngineAPI</module>
82                 <module>ONAP-PDP</module>
83                 <module>ONAP-PDP-REST</module>
84                 <module>ONAP-PAP-REST</module>
85                 <module>LogParser</module>
86                 <module>PolicyEngineClient</module>
87                 <module>BRMSGateway</module>
88                 <module>POLICY-SDK-APP</module>
89                 <module>ONAP-SDK-APP</module>
90                 <module>packages</module>
91         </modules>
92
93         <distributionManagement>
94                 <repository>
95                         <id>ecomp-releases</id>
96                         <name>ONAP Release Repository</name>
97                         <url>${nexusproxy}/${releases.path}</url>
98                 </repository>
99                 <snapshotRepository>
100                         <id>ecomp-snapshots</id>
101                         <name>ONAP Snapshot Repository</name>
102                         <url>${nexusproxy}/${snapshots.path}</url>
103                 </snapshotRepository>
104                 <site>
105                         <id>ecomp-site</id>
106                         <url>dav:${nexusproxy}${sitePath}</url>
107                 </site>
108         </distributionManagement>
109
110         <repositories>
111                 <!-- LF repositories -->
112                 <repository>
113                         <id>ecomp-releases</id>
114                         <name>Release Repository</name>
115                         <url>${nexusproxy}/content/repositories/releases/</url>
116                 </repository>
117                 <repository>
118                         <id>ecomp-staging</id>
119                         <name>Staging Repository</name>
120                         <url>${nexusproxy}/content/repositories/staging/</url>
121                 </repository>
122                 <repository>
123                         <id>ecomp-snapshots</id>
124                         <name>Snapshots Repository</name>
125                         <url>${nexusproxy}/content/repositories/snapshots/</url>
126                 </repository>
127                 <repository>
128                         <id>ecomp-public</id>
129                         <name>Public Repository</name>
130                         <url>${nexusproxy}/content/repositories/public/</url>
131                 </repository>
132                 <!-- LF repositories END-->
133         </repositories>
134
135         <reporting>
136           <plugins>
137             <plugin>
138               <groupId>org.apache.maven.plugins</groupId>
139               <artifactId>maven-javadoc-plugin</artifactId>
140               <version>2.10.4</version>
141               <configuration>
142                 <failOnError>false</failOnError>
143                 <doclet>org.umlgraph.doclet.UmlGraphDoc</doclet>
144                 <docletArtifact>
145                   <groupId>org.umlgraph</groupId>
146                   <artifactId>umlgraph</artifactId>
147                   <version>5.6</version>
148                 </docletArtifact>
149                 <additionalparam>-views</additionalparam>
150                 <useStandardDocletOptions>true</useStandardDocletOptions>
151               </configuration>
152             </plugin>
153           </plugins>
154         </reporting>
155
156         <dependencyManagement>
157                 <dependencies>
158                         <dependency>
159                                 <groupId>com.h2database</groupId>
160                                 <artifactId>h2</artifactId>
161                                 <version>${h2.version}</version>
162                                 <scope>test</scope>
163                         </dependency>
164                 </dependencies>
165         </dependencyManagement>
166         
167         <dependencies>
168
169                 <dependency>
170                         <groupId>javax.servlet</groupId>
171                         <artifactId>javax.servlet-api</artifactId>
172                         <version>3.1.0</version>
173                 </dependency>
174                 <dependency>
175                         <!-- org.w3c.dom dependencies -->
176                         <groupId>xml-apis</groupId>
177                         <artifactId>xml-apis</artifactId>
178                         <version>1.3.03</version>
179                 </dependency>
180         </dependencies>
181
182         <build>
183                 <plugins>
184                         <plugin>
185                                 <groupId>org.jacoco</groupId>
186                                 <artifactId>jacoco-maven-plugin</artifactId>
187                                 <executions>
188                                         <execution>
189                                                 <id>pre-unit-test</id>
190                                                 <goals>
191                                                         <goal>prepare-agent</goal>
192                                                 </goals>
193                                                 <configuration>
194                                                         <destFile>${sonar.jacoco.reportPath}</destFile>
195                                                         <append>true</append>
196                                                 </configuration>
197                                         </execution>
198                                         <execution>
199                                                 <id>post-unit-test</id>
200                                                 <phase>test</phase>
201                                                 <goals>
202                                                         <goal>report</goal>
203                                                 </goals>
204                                                 <configuration>
205                                                         <dataFile>${sonar.jacoco.reportPath}</dataFile>
206                                                 </configuration>
207                                         </execution>
208                                 </executions>
209                         </plugin>
210                         <plugin>
211                                 <groupId>org.sonatype.plugins</groupId>
212                                 <artifactId>nexus-staging-maven-plugin</artifactId>
213                                 <extensions>true</extensions>
214                                 <configuration>
215                                         <nexusUrl>${nexusproxy}</nexusUrl>
216                                         <stagingProfileId>176c31dfe190a</stagingProfileId>
217                                         <serverId>ecomp-staging</serverId>
218                                 </configuration>
219                         </plugin>
220                         <plugin>
221                                 <groupId>org.apache.maven.plugins</groupId>
222                                 <artifactId>maven-deploy-plugin</artifactId>
223                                 <configuration>
224                                         <skip />
225                                 </configuration>
226                         </plugin>
227                         <plugin>
228                                 <groupId>org.apache.maven.plugins</groupId>
229                                 <artifactId>maven-surefire-plugin</artifactId>
230                         </plugin>
231                         <plugin>
232                                 <groupId>org.apache.maven.plugins</groupId>
233                                 <artifactId>maven-clean-plugin</artifactId>
234                                 <version>2.4.1</version>
235                         </plugin>
236                         <plugin>
237                                 <groupId>org.apache.maven.plugins</groupId>
238                                 <artifactId>maven-compiler-plugin</artifactId>
239                                 <version>3.0</version>
240                                 <configuration>
241                                         <encoding>${project.encoding}</encoding>
242                                         <source>${project.source.version}</source>
243                                         <target>${project.target.version}</target>
244                                 </configuration>
245                         </plugin>
246                         <plugin>
247                                 <groupId>org.apache.maven.plugins</groupId>
248                                 <artifactId>maven-resources-plugin</artifactId>
249                                 <version>2.6</version>
250                                 <configuration>
251                                         <encoding>${project.encoding}</encoding>
252                                 </configuration>
253                         </plugin>
254                         <plugin>
255                                 <groupId>org.apache.maven.plugins</groupId>
256                                 <artifactId>maven-war-plugin</artifactId>
257                                 <version>2.3</version>
258                                 <configuration>
259                                         <failOnMissingWebXml>false</failOnMissingWebXml>
260                                 </configuration>
261                         </plugin>
262                         <!-- The Jetty plugin allows us to easily test the development build by
263                                 running jetty:run on the command line. -->
264
265                         <plugin>
266                                 <groupId>org.eclipse.jetty</groupId>
267                                 <artifactId>jetty-maven-plugin</artifactId>
268                                 <version>${jetty.plugin.version}</version>
269                                 <configuration>
270                                         <scanIntervalSeconds>2</scanIntervalSeconds>
271                                 </configuration>
272                         </plugin>
273                         <plugin>
274                                 <groupId>com.fortify.ps.maven.plugin</groupId>
275                                 <artifactId>sca-maven-plugin</artifactId>
276                                 <version>4.20</version>
277                         </plugin>
278                         <plugin>
279                           <groupId>org.apache.maven.plugins</groupId>
280                           <artifactId>maven-site-plugin</artifactId>
281                           <dependencies>
282                             <dependency>
283                               <groupId>org.apache.maven.wagon</groupId>
284                               <artifactId>wagon-webdav-jackrabbit</artifactId>
285                               <version>2.10</version>
286                             </dependency>
287                           </dependencies>
288                         </plugin>
289                 </plugins>
290         <pluginManagement>
291             <plugins>
292                                 <plugin>
293                                         <groupId>org.jacoco</groupId>
294                                         <artifactId>jacoco-maven-plugin</artifactId>
295                                         <version>${jacoco.version}</version>
296                                         <configuration>
297                                                 <!-- Note: This exclusion list should match <sonar.exclusions> property 
298                                                         above -->
299                                                 <excludes>
300                                                         <exclude>**/gen/**</exclude>
301                                                         <exclude>**/generated-sources/**</exclude>
302                                                         <exclude>**/yang-gen/**</exclude>
303                                                         <exclude>**/pax/**</exclude>
304                                                 </excludes>
305                                         </configuration>
306                                         <executions>
307                                                 <!-- Prepares the property pointing to the JaCoCo runtime agent which 
308                                                         is passed as VM argument when Maven the Surefire plugin is executed. -->
309                                                 <execution>
310                                                         <id>pre-unit-test</id>
311                                                         <goals>
312                                                                 <goal>prepare-agent</goal>
313                                                         </goals>
314                                                         <configuration>
315                                                                 <destFile>${sonar.jacoco.reportPath}</destFile>
316                                                         </configuration>
317                                                 </execution>
318                                                 <!-- Ensures that the code coverage report for unit tests is created 
319                                                         after unit tests have been run. -->
320                                                 <execution>
321                                                         <id>post-unit-test</id>
322                                                         <phase>test</phase>
323                                                         <goals>
324                                                                 <goal>report</goal>
325                                                         </goals>
326                                                         <configuration>
327                                                                 <dataFile>${sonar.jacoco.reportPath}</dataFile>
328                                                         </configuration>
329                                                 </execution>
330                                         </executions>
331                                 </plugin>
332                 <plugin>
333                     <groupId>org.eclipse.m2e</groupId>
334                     <artifactId>lifecycle-mapping</artifactId>
335                     <version>1.0.0</version>
336                     <configuration>
337                         <lifecycleMappingMetadata>
338                             <pluginExecutions>
339                                 <pluginExecution>
340                                     <pluginExecutionFilter>
341                                         <groupId>org.apache.maven.plugins</groupId>
342                                         <artifactId>maven-checkstyle-plugin</artifactId>
343                                         <versionRange>2.17,)</versionRange>
344                                         <goals>
345                                             <goal>check</goal>
346                                         </goals>
347                                     </pluginExecutionFilter>
348                                     <action>
349                                         <ignore />
350                                     </action>
351                                 </pluginExecution>
352                             </pluginExecutions>
353                         </lifecycleMappingMetadata>
354                     </configuration>
355                 </plugin>
356             </plugins>
357         </pluginManagement>
358         </build>
359 </project>