Exclude jackson-annotations
[policy/xacml-pdp.git] / pom.xml
1 <!--
2   ============LICENSE_START=======================================================
3   ONAP Policy Engine - XACML PDP
4   ================================================================================
5   Copyright (C) 2018-2019 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
21 <project xmlns="http://maven.apache.org/POM/4.0.0" 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
25     <parent>
26         <groupId>org.onap.policy.parent</groupId>
27         <artifactId>integration</artifactId>
28         <version>2.1.0-SNAPSHOT</version>
29         <relativePath />
30     </parent>
31
32     <groupId>org.onap.policy.xacml-pdp</groupId>
33     <artifactId>policy-xacml-pdp</artifactId>
34     <version>2.0.0-SNAPSHOT</version>
35
36     <packaging>pom</packaging>
37
38     <name>policy-xacml-pdp</name>
39     <description>This code implements the XACML PDP engine</description>
40
41     <properties>
42         <!-- sonar/jacoco overrides -->
43         <!-- Overriding oparent default sonar/jacoco settings Combine all our reports into one file shared across sub-modules -->
44         <sonar.jacoco.reportPath>${project.basedir}/../target/code-coverage/jacoco-ut.exec</sonar.jacoco.reportPath>
45         <sonar.jacoco.itReportPath>${project.basedir}/../target/code-coverage/jacoco-it.exec</sonar.jacoco.itReportPath>
46         <sonar.dynamicAnalysis>reuseReports</sonar.dynamicAnalysis>
47         
48         <policy.common.version>1.4.0-SNAPSHOT</policy.common.version>
49         <policy.models.version>2.0.0-SNAPSHOT</policy.models.version>
50     </properties>
51
52     <modules>
53         <module>main</module>
54         <module>applications</module>
55         <module>packages</module>
56         <module>testsuites</module>
57     </modules>
58     
59     <dependencies>
60         <dependency>
61             <groupId>junit</groupId>
62             <artifactId>junit</artifactId>
63             <scope>test</scope>
64         </dependency>
65         <dependency>
66             <groupId>io.cucumber</groupId>
67             <artifactId>cucumber-java</artifactId>
68             <scope>test</scope>
69         </dependency>
70         <dependency>
71             <groupId>io.cucumber</groupId>
72             <artifactId>cucumber-junit</artifactId>
73             <scope>test</scope>
74         </dependency>
75         <dependency>
76             <groupId>org.assertj</groupId>
77             <artifactId>assertj-core</artifactId>
78             <scope>test</scope>
79         </dependency>
80         <dependency>
81             <groupId>org.slf4j</groupId>
82             <artifactId>slf4j-ext</artifactId>
83             <version>1.8.0-beta2</version>
84         </dependency>
85         <dependency>
86             <groupId>org.slf4j</groupId>
87             <artifactId>slf4j-api</artifactId>
88         </dependency>
89         <dependency>
90             <groupId>ch.qos.logback</groupId>
91             <artifactId>logback-core</artifactId>
92         </dependency>
93         <dependency>
94             <groupId>ch.qos.logback</groupId>
95             <artifactId>logback-classic</artifactId>
96         </dependency>
97         <dependency>
98             <groupId>org.yaml</groupId>
99             <artifactId>snakeyaml</artifactId>
100             <version>1.24</version>
101         </dependency>
102         <dependency>
103             <groupId>org.json</groupId>
104             <artifactId>json</artifactId>
105             <version>20180813</version>
106         </dependency>
107         <dependency>
108             <groupId>com.att.research.xacml</groupId>
109             <artifactId>xacml-pdp</artifactId>
110             <version>2.0.0</version>
111             <exclusions>
112                 <exclusion>
113                     <groupId>com.fasterxml.jackson.core</groupId>
114                     <artifactId>jackson-annotations</artifactId>
115                 </exclusion>
116             </exclusions>
117         </dependency>
118         <dependency>
119             <groupId>org.onap.policy.models</groupId>
120             <artifactId>models-decisions</artifactId>
121             <version>${policy.models.version}</version>
122         </dependency>        
123         <dependency>
124             <groupId>org.onap.policy.models</groupId>
125             <artifactId>policy-models-tosca</artifactId>
126             <version>${policy.models.version}</version>
127         </dependency>        
128     </dependencies>
129     
130     <distributionManagement>
131         <site>
132             <id>ecomp-site</id>
133             <url>dav:${nexusproxy}${sitePath}</url>
134         </site>
135     </distributionManagement>
136
137     <build>
138         <plugins>
139             <plugin>
140                 <groupId>org.jacoco</groupId>
141                 <artifactId>jacoco-maven-plugin</artifactId>
142                 <executions>
143                     <execution>
144                         <id>pre-unit-test</id>
145                         <goals>
146                             <goal>prepare-agent</goal>
147                         </goals>
148                         <configuration>
149                             <destFile>${sonar.jacoco.reportPath}</destFile>
150                             <append>true</append>
151                         </configuration>
152                     </execution>
153                     <execution>
154                         <id>post-unit-test</id>
155                         <phase>test</phase>
156                         <goals>
157                             <goal>report</goal>
158                         </goals>
159                         <configuration>
160                             <dataFile>${sonar.jacoco.reportPath}</dataFile>
161                         </configuration>
162                     </execution>
163                 </executions>
164             </plugin>
165             <plugin>
166                 <artifactId>maven-checkstyle-plugin</artifactId>
167                 <executions>
168                     <execution>
169                         <id>onap-java-style</id>
170                         <goals>
171                             <goal>check</goal>
172                         </goals>
173                         <phase>process-sources</phase>
174                         <configuration>
175                             <!-- Use Google Java Style Guide: https://github.com/checkstyle/checkstyle/blob/master/src/main/resources/google_checks.xml 
176                                 with minor changes -->
177                             <configLocation>onap-checkstyle/onap-java-style.xml</configLocation>
178                             <!-- <sourceDirectory> is needed so that checkstyle ignores the generated sources directory -->
179                             <sourceDirectory>${project.build.sourceDirectory}</sourceDirectory>
180                             <includeResources>true</includeResources>
181                             <includeTestSourceDirectory>true</includeTestSourceDirectory>
182                             <includeTestResources>true</includeTestResources>
183                             <excludes>
184                             </excludes>
185                             <consoleOutput>true</consoleOutput>
186                             <failOnViolation>true</failOnViolation>
187                             <violationSeverity>warning</violationSeverity>
188                         </configuration>
189                     </execution>
190                 </executions>
191                 <dependencies>
192                     <dependency>
193                         <groupId>org.onap.oparent</groupId>
194                         <artifactId>checkstyle</artifactId>
195                         <version>${oparent.version}</version>
196                         <scope>compile</scope>
197                     </dependency>
198                 </dependencies>
199             </plugin>
200         </plugins>
201         <pluginManagement>
202             <plugins>
203                 <plugin>
204                     <groupId>org.jacoco</groupId>
205                     <artifactId>jacoco-maven-plugin</artifactId>
206                     <version>${jacoco.version}</version>
207                     <configuration>
208                         <!-- Note: This exclusion list should match <sonar.exclusions> property above -->
209                         <excludes>
210                             <exclude>**/gen/**</exclude>
211                             <exclude>**/generated-sources/**</exclude>
212                             <exclude>**/yang-gen/**</exclude>
213                             <exclude>**/pax/**</exclude>
214                         </excludes>
215                     </configuration>
216                     <executions>
217                         <!-- Prepares the property pointing to the JaCoCo runtime agent which is passed as VM argument when 
218                             Maven the Surefire plugin is executed. -->
219                         <execution>
220                             <id>pre-unit-test</id>
221                             <goals>
222                                 <goal>prepare-agent</goal>
223                             </goals>
224                             <configuration>
225                                 <destFile>${sonar.jacoco.reportPath}</destFile>
226                             </configuration>
227                         </execution>
228                         <!-- Ensures that the code coverage report for unit tests is created after unit tests have been run. -->
229                         <execution>
230                             <id>post-unit-test</id>
231                             <phase>test</phase>
232                             <goals>
233                                 <goal>report</goal>
234                             </goals>
235                             <configuration>
236                                 <dataFile>${sonar.jacoco.reportPath}</dataFile>
237                             </configuration>
238                         </execution>
239                     </executions>
240                 </plugin>
241                 <plugin>
242                     <groupId>org.eclipse.m2e</groupId>
243                     <artifactId>lifecycle-mapping</artifactId>
244                     <version>1.0.0</version>
245                     <configuration>
246                         <lifecycleMappingMetadata>
247                             <pluginExecutions>
248                                 <pluginExecution>
249                                     <pluginExecutionFilter>
250                                         <groupId>org.apache.maven.plugins</groupId>
251                                         <artifactId>maven-checkstyle-plugin</artifactId>
252                                         <versionRange>2.17,)</versionRange>
253                                         <goals>
254                                             <goal>check</goal>
255                                         </goals>
256                                     </pluginExecutionFilter>
257                                     <action>
258                                         <ignore />
259                                     </action>
260                                 </pluginExecution>
261                             </pluginExecutions>
262                         </lifecycleMappingMetadata>
263                     </configuration>
264                 </plugin>
265             </plugins>
266         </pluginManagement>
267     </build>
268 </project>