Use lombok for data objects
[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.1.0-SNAPSHOT</version>
27         <relativePath />
28     </parent>
29     <groupId>org.onap.policy.engine</groupId>
30     <artifactId>PolicyEngineSuite</artifactId>
31     <version>1.6.0-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.24.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.8.2</elasticsearch.version>
62         <version.policy.common>1.6.0-SNAPSHOT</version.policy.common>
63         <version.policy.models>2.2.0-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>org.projectlombok</groupId>
104             <artifactId>lombok</artifactId>
105             <scope>provided</scope>
106         </dependency>
107         <dependency>
108             <groupId>javax.servlet</groupId>
109             <artifactId>javax.servlet-api</artifactId>
110         </dependency>
111         <dependency>
112             <!-- org.w3c.dom dependencies -->
113             <groupId>xml-apis</groupId>
114             <artifactId>xml-apis</artifactId>
115             <version>1.3.03</version>
116         </dependency>
117         <!-- https://mvnrepository.com/artifact/com.fasterxml.jackson.core/jackson-databind -->
118         <dependency>
119             <groupId>com.fasterxml.jackson.core</groupId>
120             <artifactId>jackson-databind</artifactId>
121             <version>${jackson.version}</version>
122         </dependency>
123         <dependency>
124             <groupId>junit</groupId>
125             <artifactId>junit</artifactId>
126             <scope>test</scope>
127         </dependency>
128         <dependency>
129             <groupId>org.springframework</groupId>
130             <artifactId>spring-mock</artifactId>
131             <version>2.0.8</version>
132             <scope>test</scope>
133         </dependency>
134         <dependency>
135             <groupId>com.mockrunner</groupId>
136             <artifactId>mockrunner</artifactId>
137             <version>0.3.1</version>
138             <scope>test</scope>
139         </dependency>
140         <!-- https://mvnrepository.com/artifact/org.powermock/powermock-api-mockito -->
141         <dependency>
142             <groupId>org.powermock</groupId>
143             <artifactId>powermock-api-mockito</artifactId>
144             <scope>test</scope>
145         </dependency>
146         <dependency>
147             <groupId>org.powermock</groupId>
148             <artifactId>powermock-module-junit4</artifactId>
149             <scope>test</scope>
150         </dependency>
151         <!-- https://mvnrepository.com/artifact/org.mockito/mockito-all -->
152         <dependency>
153             <groupId>org.mockito</groupId>
154             <artifactId>mockito-all</artifactId>
155             <scope>test</scope>
156         </dependency>
157         <dependency>
158             <groupId>org.easymock</groupId>
159             <artifactId>easymock</artifactId>
160             <version>3.1</version>
161             <scope>test</scope>
162         </dependency>
163     </dependencies>
164     <build>
165         <plugins>
166             <plugin>
167                 <groupId>org.jacoco</groupId>
168                 <artifactId>jacoco-maven-plugin</artifactId>
169                 <executions>
170                     <execution>
171                         <id>pre-unit-test</id>
172                         <goals>
173                             <goal>prepare-agent</goal>
174                         </goals>
175                         <configuration>
176                             <destFile>${sonar.jacoco.reportPath}</destFile>
177                             <append>true</append>
178                         </configuration>
179                     </execution>
180                     <execution>
181                         <id>post-unit-test</id>
182                         <phase>test</phase>
183                         <goals>
184                             <goal>report</goal>
185                         </goals>
186                         <configuration>
187                             <dataFile>${sonar.jacoco.reportPath}</dataFile>
188                         </configuration>
189                     </execution>
190                 </executions>
191             </plugin>
192             <plugin>
193                 <groupId>org.apache.maven.plugins</groupId>
194                 <artifactId>maven-deploy-plugin</artifactId>
195                 <configuration>
196                     <skip />
197                 </configuration>
198             </plugin>
199             <plugin>
200                 <groupId>org.apache.maven.plugins</groupId>
201                 <artifactId>maven-surefire-plugin</artifactId>
202             </plugin>
203             <plugin>
204                 <groupId>org.apache.maven.plugins</groupId>
205                 <artifactId>maven-clean-plugin</artifactId>
206                 <version>2.4.1</version>
207             </plugin>
208             <plugin>
209                 <groupId>org.apache.maven.plugins</groupId>
210                 <artifactId>maven-compiler-plugin</artifactId>
211                 <configuration>
212                     <encoding>${project.encoding}</encoding>
213                     <source>${project.source.version}</source>
214                     <target>${project.target.version}</target>
215                 </configuration>
216             </plugin>
217             <plugin>
218                 <groupId>org.apache.maven.plugins</groupId>
219                 <artifactId>maven-resources-plugin</artifactId>
220                 <configuration>
221                     <encoding>${project.encoding}</encoding>
222                 </configuration>
223             </plugin>
224             <plugin>
225                 <groupId>org.apache.maven.plugins</groupId>
226                 <artifactId>maven-war-plugin</artifactId>
227                 <configuration>
228                     <failOnMissingWebXml>false</failOnMissingWebXml>
229                 </configuration>
230             </plugin>
231             <!-- The Jetty plugin allows us to easily test the development build by
232                 running jetty:run on the command line. -->
233             <plugin>
234                 <groupId>org.eclipse.jetty</groupId>
235                 <artifactId>jetty-maven-plugin</artifactId>
236                 <version>${jetty.plugin.version}</version>
237                 <configuration>
238                     <scanIntervalSeconds>2</scanIntervalSeconds>
239                 </configuration>
240             </plugin>
241             <plugin>
242                 <groupId>com.fortify.ps.maven.plugin</groupId>
243                 <artifactId>sca-maven-plugin</artifactId>
244                 <version>4.20</version>
245             </plugin>
246             <plugin>
247                 <groupId>org.apache.maven.plugins</groupId>
248                 <artifactId>maven-site-plugin</artifactId>
249                 <dependencies>
250                     <dependency>
251                         <groupId>org.apache.maven.wagon</groupId>
252                         <artifactId>wagon-webdav-jackrabbit</artifactId>
253                         <version>2.10</version>
254                     </dependency>
255                 </dependencies>
256             </plugin>
257         </plugins>
258         <pluginManagement>
259             <plugins>
260                 <plugin>
261                     <groupId>org.jacoco</groupId>
262                     <artifactId>jacoco-maven-plugin</artifactId>
263                     <version>${jacoco.version}</version>
264                     <configuration>
265                          <!-- Note: This exclusion list should match <sonar.exclusions> property 
266                              above -->
267                         <excludes>
268                             <exclude>**/gen/**</exclude>
269                             <exclude>**/generated-sources/**</exclude>
270                             <exclude>**/yang-gen/**</exclude>
271                             <exclude>**/pax/**</exclude>
272                         </excludes>
273                     </configuration>
274                     <executions>
275                         <!-- Prepares the property pointing to the JaCoCo runtime agent which 
276                              is passed as VM argument when Maven the Surefire plugin is executed. -->
277                         <execution>
278                             <id>pre-unit-test</id>
279                             <goals>
280                                 <goal>prepare-agent</goal>
281                             </goals>
282                             <configuration>
283                                 <destFile>${sonar.jacoco.reportPath}</destFile>
284                             </configuration>
285                         </execution>
286                         <!-- Ensures that the code coverage report for unit tests is created 
287                             after unit tests have been run. -->
288                         <execution>
289                             <id>post-unit-test</id>
290                             <phase>test</phase>
291                             <goals>
292                                 <goal>report</goal>
293                             </goals>
294                             <configuration>
295                                 <dataFile>${sonar.jacoco.reportPath}</dataFile>
296                             </configuration>
297                         </execution>
298                     </executions>
299                 </plugin>
300                 <plugin>
301                     <groupId>org.eclipse.m2e</groupId>
302                     <artifactId>lifecycle-mapping</artifactId>
303                     <version>1.0.0</version>
304                     <configuration>
305                         <lifecycleMappingMetadata>
306                             <pluginExecutions>
307                                 <pluginExecution>
308                                     <pluginExecutionFilter>
309                                         <groupId>org.apache.maven.plugins</groupId>
310                                         <artifactId>maven-checkstyle-plugin</artifactId>
311                                         <versionRange>2.17,)</versionRange>
312                                         <goals>
313                                             <goal>check</goal>
314                                         </goals>
315                                     </pluginExecutionFilter>
316                                     <action>
317                                         <ignore />
318                                     </action>
319                                 </pluginExecution>
320                             </pluginExecutions>
321                         </lifecycleMappingMetadata>
322                     </configuration>
323                 </plugin>
324             </plugins>
325         </pluginManagement>
326     </build>
327 </project>