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