Fix refering to snapshot in policy/engine
[policy/engine.git] / pom.xml
1 <!--
2   ============LICENSE_START=======================================================
3   ONAP Policy Engine
4   ================================================================================
5   Copyright (C) 2017-2018 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 <project xmlns="http://maven.apache.org/POM/4.0.0"
21     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     <parent>
25         <groupId>org.onap.policy.parent</groupId>
26         <artifactId>integration</artifactId>
27         <version>2.0.0</version>
28         <relativePath />
29     </parent>
30     <groupId>org.onap.policy.engine</groupId>
31     <artifactId>PolicyEngineSuite</artifactId>
32     <version>1.3.1-SNAPSHOT</version>
33     <packaging>pom</packaging>
34     <name>policy-engine</name>
35     <description>The ONAP Policy Engine main pom</description>
36     <properties>
37         <!-- Project common build settings -->
38         <project.source.version>1.8</project.source.version>
39         <project.target.version>1.8</project.target.version>
40         <project.encoding>UTF-8</project.encoding>
41         <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
42         <!-- Project path properties -->
43         <nexusproxy>https://nexus.onap.org</nexusproxy>
44         <sitePath>/content/sites/site/${project.groupId}/${project.artifactId}/${project.version}</sitePath>
45         <releases.path>content/repositories/releases/</releases.path>
46         <snapshots.path>content/repositories/snapshots/</snapshots.path>
47         <staging.path>content/repositories/staging/</staging.path>
48
49         <!-- sonar/jacoco overrides -->
50         <!-- Overriding oparent default sonar/jacoco settings Combine all our reports 
51             into one file shared across sub-modules -->
52         <sonar.jacoco.reportPath>${project.basedir}/../target/code-coverage/jacoco-ut.exec</sonar.jacoco.reportPath>
53         <sonar.jacoco.itReportPath>${project.basedir}/../target/code-coverage/jacoco-it.exec</sonar.jacoco.itReportPath>
54         <sonar.dynamicAnalysis>reuseReports</sonar.dynamicAnalysis>
55
56         <!-- Shared between policy/* project repositories - same version -->
57         <h2.version>1.4.186</h2.version>
58
59         <!-- Shared between policy/* project repositories - different version -->
60
61         <!-- Project common dependency versions -->
62         <springframework.version>4.3.18.RELEASE</springframework.version>
63         <jetty.plugin.version>9.2.3.v20140905</jetty.plugin.version>
64         <httpclient.version>4.5.5</httpclient.version>
65         <jackson.version>2.9.4</jackson.version>
66         <commons.fileupload.version>1.3.3</commons.fileupload.version>
67         <commons.compress.version>1.18</commons.compress.version>
68         <elasticsearch.version>6.3.0</elasticsearch.version>
69         <version.policy.common>1.3.1</version.policy.common>
70         <version.policy.drools-application>1.3.1</version.policy.drools-application>
71     </properties>
72     <modules>
73         <module>PolicyEngineUtils</module>
74         <module>ONAP-XACML</module>
75         <module>ONAP-REST</module>
76         <module>PolicyEngineAPI</module>
77         <module>ONAP-PDP</module>
78         <module>ONAP-PDP-REST</module>
79         <module>ONAP-PAP-REST</module>
80         <module>LogParser</module>
81         <module>PolicyEngineClient</module>
82         <module>BRMSGateway</module>
83         <module>POLICY-SDK-APP</module>
84         <module>ONAP-SDK-APP</module>
85         <module>packages</module>
86         <module>TestSuite</module>
87     </modules>
88     <distributionManagement>
89         <repository>
90             <id>ecomp-releases</id>
91             <name>ONAP Release Repository</name>
92             <url>${nexusproxy}/${releases.path}</url>
93         </repository>
94         <snapshotRepository>
95             <id>ecomp-snapshots</id>
96             <name>ONAP Snapshot Repository</name>
97             <url>${nexusproxy}/${snapshots.path}</url>
98         </snapshotRepository>
99         <site>
100             <id>ecomp-site</id>
101             <url>dav:${nexusproxy}${sitePath}</url>
102         </site>
103     </distributionManagement>
104     <reporting>
105         <plugins>
106             <plugin>
107                 <groupId>org.apache.maven.plugins</groupId>
108                 <artifactId>maven-javadoc-plugin</artifactId>
109                 <version>2.10.4</version>
110                 <configuration>
111                     <failOnError>false</failOnError>
112                     <doclet>org.umlgraph.doclet.UmlGraphDoc</doclet>
113                     <docletArtifact>
114                         <groupId>org.umlgraph</groupId>
115                         <artifactId>umlgraph</artifactId>
116                         <version>5.6</version>
117                     </docletArtifact>
118                     <additionalparam>-views</additionalparam>
119                     <useStandardDocletOptions>true</useStandardDocletOptions>
120                 </configuration>
121             </plugin>
122         </plugins>
123     </reporting>
124     <dependencyManagement>
125         <dependencies>
126             <dependency>
127                 <groupId>com.h2database</groupId>
128                 <artifactId>h2</artifactId>
129                 <version>${h2.version}</version>
130                 <scope>test</scope>
131             </dependency>
132         </dependencies>
133     </dependencyManagement>
134     <dependencies>
135         <dependency>
136             <groupId>javax.servlet</groupId>
137             <artifactId>javax.servlet-api</artifactId>
138         </dependency>
139         <dependency>
140             <!-- org.w3c.dom dependencies -->
141             <groupId>xml-apis</groupId>
142             <artifactId>xml-apis</artifactId>
143             <version>1.3.03</version>
144         </dependency>
145         <!-- https://mvnrepository.com/artifact/com.fasterxml.jackson.core/jackson-databind -->
146         <dependency>
147             <groupId>com.fasterxml.jackson.core</groupId>
148             <artifactId>jackson-databind</artifactId>
149             <version>${jackson.version}</version>
150         </dependency>
151         <dependency>
152             <groupId>junit</groupId>
153             <artifactId>junit</artifactId>
154             <scope>test</scope>
155         </dependency>
156         <dependency>
157             <groupId>org.springframework</groupId>
158             <artifactId>spring-mock</artifactId>
159             <version>2.0.8</version>
160             <scope>test</scope>
161         </dependency>
162         <dependency>
163             <groupId>com.mockrunner</groupId>
164             <artifactId>mockrunner</artifactId>
165             <version>0.3.1</version>
166             <scope>test</scope>
167         </dependency>
168         <!-- https://mvnrepository.com/artifact/org.powermock/powermock-api-mockito -->
169         <dependency>
170             <groupId>org.powermock</groupId>
171             <artifactId>powermock-api-mockito</artifactId>
172             <version>1.7.3</version>
173             <scope>test</scope>
174         </dependency>
175         <dependency>
176             <groupId>org.powermock</groupId>
177             <artifactId>powermock-module-junit4</artifactId>
178             <version>1.7.3</version>
179             <scope>test</scope>
180         </dependency>
181         <!-- https://mvnrepository.com/artifact/org.mockito/mockito-all -->
182         <dependency>
183             <groupId>org.mockito</groupId>
184             <artifactId>mockito-all</artifactId>
185             <scope>test</scope>
186         </dependency>
187         <dependency>
188             <groupId>org.easymock</groupId>
189             <artifactId>easymock</artifactId>
190             <version>3.1</version>
191             <scope>test</scope>
192         </dependency>
193     </dependencies>
194     <build>
195         <plugins>
196             <plugin>
197                 <groupId>org.jacoco</groupId>
198                 <artifactId>jacoco-maven-plugin</artifactId>
199                 <executions>
200                     <execution>
201                         <id>pre-unit-test</id>
202                         <goals>
203                             <goal>prepare-agent</goal>
204                         </goals>
205                         <configuration>
206                             <destFile>${sonar.jacoco.reportPath}</destFile>
207                             <append>true</append>
208                         </configuration>
209                     </execution>
210                     <execution>
211                         <id>post-unit-test</id>
212                         <phase>test</phase>
213                         <goals>
214                             <goal>report</goal>
215                         </goals>
216                         <configuration>
217                             <dataFile>${sonar.jacoco.reportPath}</dataFile>
218                         </configuration>
219                     </execution>
220                 </executions>
221             </plugin>
222             <plugin>
223                 <groupId>org.sonatype.plugins</groupId>
224                 <artifactId>nexus-staging-maven-plugin</artifactId>
225                 <extensions>true</extensions>
226                 <configuration>
227                     <nexusUrl>${nexusproxy}</nexusUrl>
228                     <stagingProfileId>176c31dfe190a</stagingProfileId>
229                     <serverId>ecomp-staging</serverId>
230                 </configuration>
231             </plugin>
232             <plugin>
233                 <groupId>org.apache.maven.plugins</groupId>
234                 <artifactId>maven-deploy-plugin</artifactId>
235                 <configuration>
236                     <skip />
237                 </configuration>
238             </plugin>
239             <plugin>
240                 <groupId>org.apache.maven.plugins</groupId>
241                 <artifactId>maven-surefire-plugin</artifactId>
242             </plugin>
243             <plugin>
244                 <groupId>org.apache.maven.plugins</groupId>
245                 <artifactId>maven-clean-plugin</artifactId>
246                 <version>2.4.1</version>
247             </plugin>
248             <plugin>
249                 <groupId>org.apache.maven.plugins</groupId>
250                 <artifactId>maven-compiler-plugin</artifactId>
251                 <configuration>
252                     <encoding>${project.encoding}</encoding>
253                     <source>${project.source.version}</source>
254                     <target>${project.target.version}</target>
255                 </configuration>
256             </plugin>
257             <plugin>
258                 <groupId>org.apache.maven.plugins</groupId>
259                 <artifactId>maven-resources-plugin</artifactId>
260                 <configuration>
261                     <encoding>${project.encoding}</encoding>
262                 </configuration>
263             </plugin>
264             <plugin>
265                 <groupId>org.apache.maven.plugins</groupId>
266                 <artifactId>maven-war-plugin</artifactId>
267                 <configuration>
268                     <failOnMissingWebXml>false</failOnMissingWebXml>
269                 </configuration>
270             </plugin>
271             <!-- The Jetty plugin allows us to easily test the development build by
272                 running jetty:run on the command line. -->
273             <plugin>
274                 <groupId>org.eclipse.jetty</groupId>
275                 <artifactId>jetty-maven-plugin</artifactId>
276                 <version>${jetty.plugin.version}</version>
277                 <configuration>
278                     <scanIntervalSeconds>2</scanIntervalSeconds>
279                 </configuration>
280             </plugin>
281             <plugin>
282                 <groupId>com.fortify.ps.maven.plugin</groupId>
283                 <artifactId>sca-maven-plugin</artifactId>
284                 <version>4.20</version>
285             </plugin>
286             <plugin>
287                 <groupId>org.apache.maven.plugins</groupId>
288                 <artifactId>maven-site-plugin</artifactId>
289                 <dependencies>
290                     <dependency>
291                         <groupId>org.apache.maven.wagon</groupId>
292                         <artifactId>wagon-webdav-jackrabbit</artifactId>
293                         <version>2.10</version>
294                     </dependency>
295                 </dependencies>
296             </plugin>
297         </plugins>
298         <pluginManagement>
299             <plugins>
300                 <plugin>
301                     <groupId>org.jacoco</groupId>
302                     <artifactId>jacoco-maven-plugin</artifactId>
303                     <version>${jacoco.version}</version>
304                     <configuration>
305                          <!-- Note: This exclusion list should match <sonar.exclusions> property 
306                              above -->
307                         <excludes>
308                             <exclude>**/gen/**</exclude>
309                             <exclude>**/generated-sources/**</exclude>
310                             <exclude>**/yang-gen/**</exclude>
311                             <exclude>**/pax/**</exclude>
312                         </excludes>
313                     </configuration>
314                     <executions>
315                         <!-- Prepares the property pointing to the JaCoCo runtime agent which 
316                              is passed as VM argument when Maven the Surefire plugin is executed. -->
317                         <execution>
318                             <id>pre-unit-test</id>
319                             <goals>
320                                 <goal>prepare-agent</goal>
321                             </goals>
322                             <configuration>
323                                 <destFile>${sonar.jacoco.reportPath}</destFile>
324                             </configuration>
325                         </execution>
326                         <!-- Ensures that the code coverage report for unit tests is created 
327                             after unit tests have been run. -->
328                         <execution>
329                             <id>post-unit-test</id>
330                             <phase>test</phase>
331                             <goals>
332                                 <goal>report</goal>
333                             </goals>
334                             <configuration>
335                                 <dataFile>${sonar.jacoco.reportPath}</dataFile>
336                             </configuration>
337                         </execution>
338                     </executions>
339                 </plugin>
340                 <plugin>
341                     <groupId>org.eclipse.m2e</groupId>
342                     <artifactId>lifecycle-mapping</artifactId>
343                     <version>1.0.0</version>
344                     <configuration>
345                         <lifecycleMappingMetadata>
346                             <pluginExecutions>
347                                 <pluginExecution>
348                                     <pluginExecutionFilter>
349                                         <groupId>org.apache.maven.plugins</groupId>
350                                         <artifactId>maven-checkstyle-plugin</artifactId>
351                                         <versionRange>2.17,)</versionRange>
352                                         <goals>
353                                             <goal>check</goal>
354                                         </goals>
355                                     </pluginExecutionFilter>
356                                     <action>
357                                         <ignore />
358                                     </action>
359                                 </pluginExecution>
360                             </pluginExecutions>
361                         </lifecycleMappingMetadata>
362                     </configuration>
363                 </plugin>
364             </plugins>
365         </pluginManagement>
366     </build>
367 </project>