Upgrade to release policy/models
[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</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</policy.common.version>
49         <policy.models.version>2.0.0</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.projectlombok</groupId>
104             <artifactId>lombok</artifactId>
105         </dependency>
106         <dependency>
107             <groupId>org.json</groupId>
108             <artifactId>json</artifactId>
109             <version>20180813</version>
110         </dependency>
111         <dependency>
112             <groupId>org.onap.policy.models</groupId>
113             <artifactId>policy-models-decisions</artifactId>
114             <version>${policy.models.version}</version>
115         </dependency>
116         <dependency>
117             <groupId>org.onap.policy.models</groupId>
118             <artifactId>policy-models-tosca</artifactId>
119             <version>${policy.models.version}</version>
120         </dependency>
121     </dependencies>
122     
123     <distributionManagement>
124         <site>
125             <id>ecomp-site</id>
126             <url>dav:${nexusproxy}${sitePath}</url>
127         </site>
128     </distributionManagement>
129
130     <build>
131         <plugins>
132             <plugin>
133                 <groupId>org.jacoco</groupId>
134                 <artifactId>jacoco-maven-plugin</artifactId>
135                 <executions>
136                     <execution>
137                         <id>pre-unit-test</id>
138                         <goals>
139                             <goal>prepare-agent</goal>
140                         </goals>
141                         <configuration>
142                             <destFile>${sonar.jacoco.reportPath}</destFile>
143                             <append>true</append>
144                         </configuration>
145                     </execution>
146                     <execution>
147                         <id>post-unit-test</id>
148                         <phase>test</phase>
149                         <goals>
150                             <goal>report</goal>
151                         </goals>
152                         <configuration>
153                             <dataFile>${sonar.jacoco.reportPath}</dataFile>
154                         </configuration>
155                     </execution>
156                 </executions>
157             </plugin>
158             <plugin>
159                 <artifactId>maven-checkstyle-plugin</artifactId>
160                 <executions>
161                     <execution>
162                         <id>onap-java-style</id>
163                         <goals>
164                             <goal>check</goal>
165                         </goals>
166                         <phase>process-sources</phase>
167                         <configuration>
168                             <!-- Use Google Java Style Guide: https://github.com/checkstyle/checkstyle/blob/master/src/main/resources/google_checks.xml 
169                                 with minor changes -->
170                             <configLocation>onap-checkstyle/onap-java-style.xml</configLocation>
171                             <!-- <sourceDirectory> is needed so that checkstyle ignores the generated sources directory -->
172                             <sourceDirectory>${project.build.sourceDirectory}</sourceDirectory>
173                             <includeResources>true</includeResources>
174                             <includeTestSourceDirectory>true</includeTestSourceDirectory>
175                             <includeTestResources>true</includeTestResources>
176                             <excludes>
177                             </excludes>
178                             <consoleOutput>true</consoleOutput>
179                             <failOnViolation>true</failOnViolation>
180                             <violationSeverity>warning</violationSeverity>
181                         </configuration>
182                     </execution>
183                 </executions>
184                 <dependencies>
185                     <dependency>
186                         <groupId>org.onap.oparent</groupId>
187                         <artifactId>checkstyle</artifactId>
188                         <version>${oparent.version}</version>
189                         <scope>compile</scope>
190                     </dependency>
191                 </dependencies>
192             </plugin>
193         </plugins>
194         <pluginManagement>
195             <plugins>
196                 <plugin>
197                     <groupId>org.jacoco</groupId>
198                     <artifactId>jacoco-maven-plugin</artifactId>
199                     <version>${jacoco.version}</version>
200                     <configuration>
201                         <!-- Note: This exclusion list should match <sonar.exclusions> property above -->
202                         <excludes>
203                             <exclude>**/gen/**</exclude>
204                             <exclude>**/generated-sources/**</exclude>
205                             <exclude>**/yang-gen/**</exclude>
206                             <exclude>**/pax/**</exclude>
207                         </excludes>
208                     </configuration>
209                     <executions>
210                         <!-- Prepares the property pointing to the JaCoCo runtime agent which is passed as VM argument when 
211                             Maven the Surefire plugin is executed. -->
212                         <execution>
213                             <id>pre-unit-test</id>
214                             <goals>
215                                 <goal>prepare-agent</goal>
216                             </goals>
217                             <configuration>
218                                 <destFile>${sonar.jacoco.reportPath}</destFile>
219                             </configuration>
220                         </execution>
221                         <!-- Ensures that the code coverage report for unit tests is created after unit tests have been run. -->
222                         <execution>
223                             <id>post-unit-test</id>
224                             <phase>test</phase>
225                             <goals>
226                                 <goal>report</goal>
227                             </goals>
228                             <configuration>
229                                 <dataFile>${sonar.jacoco.reportPath}</dataFile>
230                             </configuration>
231                         </execution>
232                     </executions>
233                 </plugin>
234                 <plugin>
235                     <groupId>org.eclipse.m2e</groupId>
236                     <artifactId>lifecycle-mapping</artifactId>
237                     <version>1.0.0</version>
238                     <configuration>
239                         <lifecycleMappingMetadata>
240                             <pluginExecutions>
241                                 <pluginExecution>
242                                     <pluginExecutionFilter>
243                                         <groupId>org.apache.maven.plugins</groupId>
244                                         <artifactId>maven-checkstyle-plugin</artifactId>
245                                         <versionRange>2.17,)</versionRange>
246                                         <goals>
247                                             <goal>check</goal>
248                                         </goals>
249                                     </pluginExecutionFilter>
250                                     <action>
251                                         <ignore />
252                                     </action>
253                                 </pluginExecution>
254                             </pluginExecutions>
255                         </lifecycleMappingMetadata>
256                     </configuration>
257                 </plugin>
258             </plugins>
259         </pluginManagement>
260     </build>
261 </project>