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