bump poms to 1.5.5-SNAPSHOT
[policy/drools-applications.git] / pom.xml
1 <!--
2   ============LICENSE_START=======================================================
3   drools-pdp-apps
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
22 <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/xsd/maven-4.0.0.xsd">
23
24     <modelVersion>4.0.0</modelVersion>
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.drools-applications</groupId>
33     <artifactId>drools-applications</artifactId>
34     <version>1.5.5-SNAPSHOT</version>
35
36     <name>policy-drools-applications</name>
37     <packaging>pom</packaging>
38
39     <properties>
40         <!-- Project common build settings -->
41         <maven.compiler.source>1.8</maven.compiler.source>
42         <maven.compiler.target>1.8</maven.compiler.target>
43         <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
44         <project.source.version>1.8</project.source.version>
45         <project.target.version>1.8</project.target.version>
46
47         <!-- Project path properties -->
48         <nexusproxy>https://nexus.onap.org</nexusproxy>
49         <sitePath>/content/sites/site/${project.groupId}/${project.artifactId}/${project.version}</sitePath>
50         <releases.path>content/repositories/releases/</releases.path>
51         <snapshots.path>content/repositories/snapshots/</snapshots.path>
52         <staging.path>content/repositories/staging/</staging.path>
53
54         <!-- sonar/jacoco overrides -->
55         <!-- Overriding oparent default sonar/jacoco settings Combine all 
56             our reports into one file shared across sub-modules -->
57         <sonar.jacoco.reportPath>${project.basedir}/../target/code-coverage/jacoco-ut.exec</sonar.jacoco.reportPath>
58         <sonar.jacoco.itReportPath>${project.basedir}/../target/code-coverage/jacoco-it.exec</sonar.jacoco.itReportPath>
59         <sonar.dynamicAnalysis>reuseReports</sonar.dynamicAnalysis>
60
61         <!-- Project common dependency versions -->
62         <version.policy.common>1.5.2</version.policy.common>
63         <policy.models.version>2.1.4</policy.models.version>
64         <version.policy.drools-pdp>1.5.3</version.policy.drools-pdp>
65     </properties>
66
67     <build>
68         <plugins>
69             <plugin>
70                 <groupId>org.jacoco</groupId>
71                 <artifactId>jacoco-maven-plugin</artifactId>
72                 <executions>
73                     <execution>
74                         <id>pre-unit-test</id>
75                         <goals>
76                             <goal>prepare-agent</goal>
77                         </goals>
78                         <configuration>
79                             <destFile>${sonar.jacoco.reportPath}</destFile>
80                             <append>true</append>
81                         </configuration>
82                     </execution>
83                     <execution>
84                         <id>post-unit-test</id>
85                         <phase>test</phase>
86                         <goals>
87                             <goal>report</goal>
88                         </goals>
89                         <configuration>
90                             <dataFile>${sonar.jacoco.reportPath}</dataFile>
91                         </configuration>
92                     </execution>
93                 </executions>
94             </plugin>
95             <plugin>
96                 <groupId>org.apache.maven.plugins</groupId>
97                 <artifactId>maven-deploy-plugin</artifactId>
98                 <configuration>
99                     <skip />
100                 </configuration>
101             </plugin>
102             <plugin>
103                 <groupId>org.apache.maven.plugins</groupId>
104                 <artifactId>maven-compiler-plugin</artifactId>
105                 <configuration>
106                     <encoding>${project.encoding}</encoding>
107                     <source>${project.source.version}</source>
108                     <target>${project.target.version}</target>
109                 </configuration>
110             </plugin>
111             <plugin>
112                 <groupId>org.apache.maven.plugins</groupId>
113                 <artifactId>maven-site-plugin</artifactId>
114                 <dependencies>
115                     <dependency>
116                         <groupId>org.apache.maven.wagon</groupId>
117                         <artifactId>wagon-webdav-jackrabbit</artifactId>
118                         <version>2.10</version>
119                     </dependency>
120                 </dependencies>
121             </plugin>
122             <plugin>
123                 <artifactId>maven-checkstyle-plugin</artifactId>
124                 <executions>
125                     <execution>
126                         <id>onap-java-style</id>
127                         <goals>
128                             <goal>check</goal>
129                         </goals>
130                         <phase>process-sources</phase>
131                         <configuration>
132                             <!-- Use Google Java Style Guide:
133                             https://github.com/checkstyle/checkstyle/blob/master/src/main/resources/google_checks.xml
134                             with minor changes -->
135                             <configLocation>onap-checkstyle/onap-java-style.xml</configLocation>
136                             <!-- <sourceDirectory> is needed so that checkstyle ignores the generated sources directory -->
137                             <sourceDirectory>${project.build.sourceDirectory}</sourceDirectory>
138                             <includeResources>true</includeResources>
139                             <includeTestSourceDirectory>true</includeTestSourceDirectory>
140                             <includeTestResources>true</includeTestResources>
141                             <excludes>
142                             </excludes>
143                             <consoleOutput>true</consoleOutput>
144                             <failsOnViolation>true</failsOnViolation>
145                             <violationSeverity>warning</violationSeverity>
146                         </configuration>
147                     </execution>
148                 </executions>
149                 <dependencies>
150                     <dependency>
151                         <groupId>org.onap.oparent</groupId>
152                         <artifactId>checkstyle</artifactId>
153                         <version>${oparent.version}</version>
154                         <scope>compile</scope>
155                     </dependency>
156                 </dependencies>
157             </plugin>
158         </plugins>
159         <pluginManagement>
160             <plugins>
161                 <plugin>
162                     <groupId>org.jacoco</groupId>
163                     <artifactId>jacoco-maven-plugin</artifactId>
164                     <version>${jacoco.version}</version>
165                     <configuration>
166                         <!-- Note: This exclusion list should match <sonar.exclusions> 
167                             property above -->
168                         <excludes>
169                             <exclude>**/gen/**</exclude>
170                             <exclude>**/generated-sources/**</exclude>
171                             <exclude>**/yang-gen/**</exclude>
172                             <exclude>**/pax/**</exclude>
173                         </excludes>
174                     </configuration>
175                     <executions>
176                         <!-- Prepares the property pointing to the JaCoCo 
177                             runtime agent which is passed as VM argument when Maven the Surefire plugin 
178                             is executed. -->
179                         <execution>
180                             <id>pre-unit-test</id>
181                             <goals>
182                                 <goal>prepare-agent</goal>
183                             </goals>
184                             <configuration>
185                                 <destFile>${sonar.jacoco.reportPath}</destFile>
186                             </configuration>
187                         </execution>
188                         <!-- Ensures that the code coverage report for unit 
189                             tests is created after unit tests have been run. -->
190                         <execution>
191                             <id>post-unit-test</id>
192                             <phase>test</phase>
193                             <goals>
194                                 <goal>report</goal>
195                             </goals>
196                             <configuration>
197                                 <dataFile>${sonar.jacoco.reportPath}</dataFile>
198                             </configuration>
199                         </execution>
200                     </executions>
201                 </plugin>
202                 <plugin>
203                     <groupId>org.eclipse.m2e</groupId>
204                     <artifactId>lifecycle-mapping</artifactId>
205                     <version>1.0.0</version>
206                     <configuration>
207                         <lifecycleMappingMetadata>
208                             <pluginExecutions>
209                                 <pluginExecution>
210                                     <pluginExecutionFilter>
211                                         <groupId>org.apache.maven.plugins</groupId>
212                                         <artifactId>maven-checkstyle-plugin</artifactId>
213                                         <versionRange>2.17,)</versionRange>
214                                         <goals>
215                                             <goal>check</goal>
216                                         </goals>
217                                     </pluginExecutionFilter>
218                                     <action>
219                                         <ignore />
220                                     </action>
221                                 </pluginExecution>
222                             </pluginExecutions>
223                         </lifecycleMappingMetadata>
224                     </configuration>
225                 </plugin>
226             </plugins>
227         </pluginManagement>
228     </build>
229
230     <modules>
231         <module>controlloop</module>
232         <module>testsuites</module>
233     </modules>
234
235     <reporting>
236         <plugins>
237             <plugin>
238                 <groupId>org.apache.maven.plugins</groupId>
239                 <artifactId>maven-javadoc-plugin</artifactId>
240                 <version>2.10.4</version>
241                 <configuration>
242                     <failOnError>false</failOnError>
243                     <doclet>org.umlgraph.doclet.UmlGraphDoc</doclet>
244                     <docletArtifact>
245                         <groupId>org.umlgraph</groupId>
246                         <artifactId>umlgraph</artifactId>
247                         <version>5.6</version>
248                     </docletArtifact>
249                     <additionalparam>-views</additionalparam>
250                     <useStandardDocletOptions>true</useStandardDocletOptions>
251                 </configuration>
252             </plugin>
253         </plugins>
254     </reporting>
255
256     <dependencies>
257         <dependency>
258             <groupId>ch.qos.logback</groupId>
259             <artifactId>logback-classic</artifactId>
260             <scope>provided</scope>
261         </dependency>
262     </dependencies>
263
264
265 </project>