dec4433d3d69394f8a05aaa022bea5f6f3162f9a
[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"
21     xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
22     xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">
23     <modelVersion>4.0.0</modelVersion>
24     <parent>
25         <groupId>org.onap.policy.parent</groupId>
26         <artifactId>integration</artifactId>
27         <version>2.0.0</version>
28         <relativePath />
29     </parent>
30     <groupId>org.onap.policy.engine</groupId>
31     <artifactId>PolicyEngineSuite</artifactId>
32     <version>1.3.1-SNAPSHOT</version>
33     <packaging>pom</packaging>
34     <name>policy-engine</name>
35     <description>The ONAP Policy Engine main pom</description>
36     <properties>
37         <!-- Project common build settings -->
38         <project.source.version>1.8</project.source.version>
39         <project.target.version>1.8</project.target.version>
40         <project.encoding>UTF-8</project.encoding>
41         <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
42         <!-- Project path properties -->
43         <nexusproxy>https://nexus.onap.org</nexusproxy>
44         <sitePath>/content/sites/site/${project.groupId}/${project.artifactId}/${project.version}</sitePath>
45         <releases.path>content/repositories/releases/</releases.path>
46         <snapshots.path>content/repositories/snapshots/</snapshots.path>
47         <staging.path>content/repositories/staging/</staging.path>
48
49         <!-- sonar/jacoco overrides -->
50         <!-- Overriding oparent default sonar/jacoco settings Combine all our reports 
51             into one file shared across sub-modules -->
52         <sonar.jacoco.reportPath>${project.basedir}/../target/code-coverage/jacoco-ut.exec</sonar.jacoco.reportPath>
53         <sonar.jacoco.itReportPath>${project.basedir}/../target/code-coverage/jacoco-it.exec</sonar.jacoco.itReportPath>
54         <sonar.dynamicAnalysis>reuseReports</sonar.dynamicAnalysis>
55
56         <!-- Shared between policy/* project repositories - same version -->
57         <h2.version>1.4.186</h2.version>
58
59         <!-- Shared between policy/* project repositories - different version -->
60
61         <!-- Project common dependency versions -->
62         <springframework.version>4.3.18.RELEASE</springframework.version>
63         <jetty.plugin.version>9.2.3.v20140905</jetty.plugin.version>
64         <httpclient.version>4.5.5</httpclient.version>
65         <jackson.version>2.9.4</jackson.version>
66         <commons.fileupload.version>1.3.3</commons.fileupload.version>
67         <commons.compress.version>1.18</commons.compress.version>
68         <elasticsearch.version>6.3.0</elasticsearch.version>
69         <version.policy.common>1.3.1</version.policy.common>
70         <version.policy.drools-application>1.3.1</version.policy.drools-application>
71     </properties>
72     <modules>
73         <module>PolicyEngineUtils</module>
74         <module>ONAP-XACML</module>
75         <module>ONAP-REST</module>
76         <module>PolicyEngineAPI</module>
77         <module>ONAP-PDP</module>
78         <module>ONAP-PDP-REST</module>
79         <module>ONAP-PAP-REST</module>
80         <module>LogParser</module>
81         <module>PolicyEngineClient</module>
82         <module>BRMSGateway</module>
83         <module>POLICY-SDK-APP</module>
84         <module>ONAP-SDK-APP</module>
85         <module>packages</module>
86         <module>TestSuite</module>
87     </modules>
88     <reporting>
89         <plugins>
90             <plugin>
91                 <groupId>org.apache.maven.plugins</groupId>
92                 <artifactId>maven-javadoc-plugin</artifactId>
93                 <version>2.10.4</version>
94                 <configuration>
95                     <failOnError>false</failOnError>
96                     <doclet>org.umlgraph.doclet.UmlGraphDoc</doclet>
97                     <docletArtifact>
98                         <groupId>org.umlgraph</groupId>
99                         <artifactId>umlgraph</artifactId>
100                         <version>5.6</version>
101                     </docletArtifact>
102                     <additionalparam>-views</additionalparam>
103                     <useStandardDocletOptions>true</useStandardDocletOptions>
104                 </configuration>
105             </plugin>
106         </plugins>
107     </reporting>
108     <dependencyManagement>
109         <dependencies>
110             <dependency>
111                 <groupId>com.h2database</groupId>
112                 <artifactId>h2</artifactId>
113                 <version>${h2.version}</version>
114                 <scope>test</scope>
115             </dependency>
116         </dependencies>
117     </dependencyManagement>
118     <dependencies>
119         <dependency>
120             <groupId>javax.servlet</groupId>
121             <artifactId>javax.servlet-api</artifactId>
122         </dependency>
123         <dependency>
124             <!-- org.w3c.dom dependencies -->
125             <groupId>xml-apis</groupId>
126             <artifactId>xml-apis</artifactId>
127             <version>1.3.03</version>
128         </dependency>
129         <!-- https://mvnrepository.com/artifact/com.fasterxml.jackson.core/jackson-databind -->
130         <dependency>
131             <groupId>com.fasterxml.jackson.core</groupId>
132             <artifactId>jackson-databind</artifactId>
133             <version>${jackson.version}</version>
134         </dependency>
135         <dependency>
136             <groupId>junit</groupId>
137             <artifactId>junit</artifactId>
138             <scope>test</scope>
139         </dependency>
140         <dependency>
141             <groupId>org.springframework</groupId>
142             <artifactId>spring-mock</artifactId>
143             <version>2.0.8</version>
144             <scope>test</scope>
145         </dependency>
146         <dependency>
147             <groupId>com.mockrunner</groupId>
148             <artifactId>mockrunner</artifactId>
149             <version>0.3.1</version>
150             <scope>test</scope>
151         </dependency>
152         <!-- https://mvnrepository.com/artifact/org.powermock/powermock-api-mockito -->
153         <dependency>
154             <groupId>org.powermock</groupId>
155             <artifactId>powermock-api-mockito</artifactId>
156             <version>1.7.3</version>
157             <scope>test</scope>
158         </dependency>
159         <dependency>
160             <groupId>org.powermock</groupId>
161             <artifactId>powermock-module-junit4</artifactId>
162             <version>1.7.3</version>
163             <scope>test</scope>
164         </dependency>
165         <!-- https://mvnrepository.com/artifact/org.mockito/mockito-all -->
166         <dependency>
167             <groupId>org.mockito</groupId>
168             <artifactId>mockito-all</artifactId>
169             <scope>test</scope>
170         </dependency>
171         <dependency>
172             <groupId>org.easymock</groupId>
173             <artifactId>easymock</artifactId>
174             <version>3.1</version>
175             <scope>test</scope>
176         </dependency>
177     </dependencies>
178     <build>
179         <plugins>
180             <plugin>
181                 <groupId>org.jacoco</groupId>
182                 <artifactId>jacoco-maven-plugin</artifactId>
183                 <executions>
184                     <execution>
185                         <id>pre-unit-test</id>
186                         <goals>
187                             <goal>prepare-agent</goal>
188                         </goals>
189                         <configuration>
190                             <destFile>${sonar.jacoco.reportPath}</destFile>
191                             <append>true</append>
192                         </configuration>
193                     </execution>
194                     <execution>
195                         <id>post-unit-test</id>
196                         <phase>test</phase>
197                         <goals>
198                             <goal>report</goal>
199                         </goals>
200                         <configuration>
201                             <dataFile>${sonar.jacoco.reportPath}</dataFile>
202                         </configuration>
203                     </execution>
204                 </executions>
205             </plugin>
206             <plugin>
207                 <groupId>org.sonatype.plugins</groupId>
208                 <artifactId>nexus-staging-maven-plugin</artifactId>
209                 <extensions>true</extensions>
210                 <configuration>
211                     <nexusUrl>${nexusproxy}</nexusUrl>
212                     <stagingProfileId>176c31dfe190a</stagingProfileId>
213                     <serverId>ecomp-staging</serverId>
214                 </configuration>
215             </plugin>
216             <plugin>
217                 <groupId>org.apache.maven.plugins</groupId>
218                 <artifactId>maven-deploy-plugin</artifactId>
219                 <configuration>
220                     <skip />
221                 </configuration>
222             </plugin>
223             <plugin>
224                 <groupId>org.apache.maven.plugins</groupId>
225                 <artifactId>maven-surefire-plugin</artifactId>
226             </plugin>
227             <plugin>
228                 <groupId>org.apache.maven.plugins</groupId>
229                 <artifactId>maven-clean-plugin</artifactId>
230                 <version>2.4.1</version>
231             </plugin>
232             <plugin>
233                 <groupId>org.apache.maven.plugins</groupId>
234                 <artifactId>maven-compiler-plugin</artifactId>
235                 <configuration>
236                     <encoding>${project.encoding}</encoding>
237                     <source>${project.source.version}</source>
238                     <target>${project.target.version}</target>
239                 </configuration>
240             </plugin>
241             <plugin>
242                 <groupId>org.apache.maven.plugins</groupId>
243                 <artifactId>maven-resources-plugin</artifactId>
244                 <configuration>
245                     <encoding>${project.encoding}</encoding>
246                 </configuration>
247             </plugin>
248             <plugin>
249                 <groupId>org.apache.maven.plugins</groupId>
250                 <artifactId>maven-war-plugin</artifactId>
251                 <configuration>
252                     <failOnMissingWebXml>false</failOnMissingWebXml>
253                 </configuration>
254             </plugin>
255             <!-- The Jetty plugin allows us to easily test the development build by
256                 running jetty:run on the command line. -->
257             <plugin>
258                 <groupId>org.eclipse.jetty</groupId>
259                 <artifactId>jetty-maven-plugin</artifactId>
260                 <version>${jetty.plugin.version}</version>
261                 <configuration>
262                     <scanIntervalSeconds>2</scanIntervalSeconds>
263                 </configuration>
264             </plugin>
265             <plugin>
266                 <groupId>com.fortify.ps.maven.plugin</groupId>
267                 <artifactId>sca-maven-plugin</artifactId>
268                 <version>4.20</version>
269             </plugin>
270             <plugin>
271                 <groupId>org.apache.maven.plugins</groupId>
272                 <artifactId>maven-site-plugin</artifactId>
273                 <dependencies>
274                     <dependency>
275                         <groupId>org.apache.maven.wagon</groupId>
276                         <artifactId>wagon-webdav-jackrabbit</artifactId>
277                         <version>2.10</version>
278                     </dependency>
279                 </dependencies>
280             </plugin>
281         </plugins>
282         <pluginManagement>
283             <plugins>
284                 <plugin>
285                     <groupId>org.jacoco</groupId>
286                     <artifactId>jacoco-maven-plugin</artifactId>
287                     <version>${jacoco.version}</version>
288                     <configuration>
289                          <!-- Note: This exclusion list should match <sonar.exclusions> property 
290                              above -->
291                         <excludes>
292                             <exclude>**/gen/**</exclude>
293                             <exclude>**/generated-sources/**</exclude>
294                             <exclude>**/yang-gen/**</exclude>
295                             <exclude>**/pax/**</exclude>
296                         </excludes>
297                     </configuration>
298                     <executions>
299                         <!-- Prepares the property pointing to the JaCoCo runtime agent which 
300                              is passed as VM argument when Maven the Surefire plugin is executed. -->
301                         <execution>
302                             <id>pre-unit-test</id>
303                             <goals>
304                                 <goal>prepare-agent</goal>
305                             </goals>
306                             <configuration>
307                                 <destFile>${sonar.jacoco.reportPath}</destFile>
308                             </configuration>
309                         </execution>
310                         <!-- Ensures that the code coverage report for unit tests is created 
311                             after unit tests have been run. -->
312                         <execution>
313                             <id>post-unit-test</id>
314                             <phase>test</phase>
315                             <goals>
316                                 <goal>report</goal>
317                             </goals>
318                             <configuration>
319                                 <dataFile>${sonar.jacoco.reportPath}</dataFile>
320                             </configuration>
321                         </execution>
322                     </executions>
323                 </plugin>
324                 <plugin>
325                     <groupId>org.eclipse.m2e</groupId>
326                     <artifactId>lifecycle-mapping</artifactId>
327                     <version>1.0.0</version>
328                     <configuration>
329                         <lifecycleMappingMetadata>
330                             <pluginExecutions>
331                                 <pluginExecution>
332                                     <pluginExecutionFilter>
333                                         <groupId>org.apache.maven.plugins</groupId>
334                                         <artifactId>maven-checkstyle-plugin</artifactId>
335                                         <versionRange>2.17,)</versionRange>
336                                         <goals>
337                                             <goal>check</goal>
338                                         </goals>
339                                     </pluginExecutionFilter>
340                                     <action>
341                                         <ignore />
342                                     </action>
343                                 </pluginExecution>
344                             </pluginExecutions>
345                         </lifecycleMappingMetadata>
346                     </configuration>
347                 </plugin>
348             </plugins>
349         </pluginManagement>
350     </build>
351 </project>