blob: 9921a38eb618695825a56a26b793ea1170a55285 [file] [log] [blame]
Pamela Dragosha6557b02017-02-14 19:49:32 -05001<!--
2 ============LICENSE_START=======================================================
3 drools-pdp-apps
4 ================================================================================
Pamela Dragosh2da789c2019-05-15 13:57:03 -04005 Copyright (C) 2017-2019 AT&T Intellectual Property. All rights reserved.
Hengye93206cf2019-04-04 03:13:35 +00006 Modifications Copyright (C) 2019 Nordix Foundation.
Pamela Dragosha6557b02017-02-14 19:49:32 -05007 ================================================================================
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
Temoc Rodriguezb234cce2017-08-16 16:10:55 -070011
Pamela Dragosha6557b02017-02-14 19:49:32 -050012 http://www.apache.org/licenses/LICENSE-2.0
Temoc Rodriguezb234cce2017-08-16 16:10:55 -070013
Pamela Dragosha6557b02017-02-14 19:49:32 -050014 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
liamfallonfd6a4f32018-10-31 16:54:18 +000022<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">
Pamela Dragosha6557b02017-02-14 19:49:32 -050023
eikrwaqa0200fa2018-05-01 15:30:21 +010024 <modelVersion>4.0.0</modelVersion>
25 <parent>
Pamela Dragoshacfe0632018-08-28 09:57:31 -040026 <groupId>org.onap.policy.parent</groupId>
27 <artifactId>integration</artifactId>
jhh786a32f2019-09-09 19:31:19 -050028 <version>3.0.1</version>
liamfallonfd6a4f32018-10-31 16:54:18 +000029 <relativePath />
eikrwaqa0200fa2018-05-01 15:30:21 +010030 </parent>
Pamela Dragosha6557b02017-02-14 19:49:32 -050031
eikrwaqa0200fa2018-05-01 15:30:21 +010032 <groupId>org.onap.policy.drools-applications</groupId>
33 <artifactId>drools-applications</artifactId>
Jim Hahn5fb6c0d2019-08-07 15:47:10 -040034 <version>1.5.2-SNAPSHOT</version>
Pamela Dragosha6557b02017-02-14 19:49:32 -050035
eikrwaqa0200fa2018-05-01 15:30:21 +010036 <name>policy-drools-applications</name>
37 <packaging>pom</packaging>
Pamela Dragosha6557b02017-02-14 19:49:32 -050038
eikrwaqa0200fa2018-05-01 15:30:21 +010039 <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>
Pamela Dragosh2d70f7d2018-02-16 10:41:37 -050046
eikrwaqa0200fa2018-05-01 15:30:21 +010047 <!-- 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>
Pamela Dragosh2d70f7d2018-02-16 10:41:37 -050053
eikrwaqa0200fa2018-05-01 15:30:21 +010054 <!-- 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>
Pamela Dragosh2d70f7d2018-02-16 10:41:37 -050060
eikrwaqa0200fa2018-05-01 15:30:21 +010061 <!-- Project common dependency versions -->
jhh786a32f2019-09-09 19:31:19 -050062 <version.policy.common>1.5.2</version.policy.common>
63 <policy.models.version>2.1.3</policy.models.version>
64 <version.policy.drools-pdp>1.5.2</version.policy.drools-pdp>
eikrwaqa0200fa2018-05-01 15:30:21 +010065 </properties>
Pamela Dragosh65509922017-02-16 13:27:42 -050066
eikrwaqa0200fa2018-05-01 15:30:21 +010067 <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>
eikrwaqa0200fa2018-05-01 15:30:21 +010096 <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>
eikrwaqa0200fa2018-05-01 15:30:21 +0100105 <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>
Pamela Dragosh8279af32018-08-29 07:58:53 -0400122 <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 -->
Pamela Dragosha24a9852018-09-21 20:08:11 -0400137 <sourceDirectory>${project.build.sourceDirectory}</sourceDirectory>
Pamela Dragosh8279af32018-08-29 07:58:53 -0400138 <includeResources>true</includeResources>
139 <includeTestSourceDirectory>true</includeTestSourceDirectory>
140 <includeTestResources>true</includeTestResources>
141 <excludes>
142 </excludes>
143 <consoleOutput>true</consoleOutput>
Pamela Dragosha24a9852018-09-21 20:08:11 -0400144 <failsOnViolation>true</failsOnViolation>
Pamela Dragosh8279af32018-08-29 07:58:53 -0400145 <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>
eikrwaqa0200fa2018-05-01 15:30:21 +0100158 </plugins>
Pamela Dragosh18f392b2017-08-14 13:41:44 -0400159 <pluginManagement>
160 <plugins>
eikrwaqa0200fa2018-05-01 15:30:21 +0100161 <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>
Pamela Dragosh18f392b2017-08-14 13:41:44 -0400202 <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>
eikrwaqa0200fa2018-05-01 15:30:21 +0100228 </build>
Pamela Dragosha6557b02017-02-14 19:49:32 -0500229
eikrwaqa0200fa2018-05-01 15:30:21 +0100230 <modules>
231 <module>controlloop</module>
232 <module>testsuites</module>
233 </modules>
Pamela Dragosh65509922017-02-16 13:27:42 -0500234
eikrwaqa0200fa2018-05-01 15:30:21 +0100235 <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>
Jorge Hernandez3b25dd82017-08-30 23:42:35 -0500255
eikrwaqa0200fa2018-05-01 15:30:21 +0100256 <dependencies>
257 <dependency>
258 <groupId>ch.qos.logback</groupId>
259 <artifactId>logback-classic</artifactId>
eikrwaqa0200fa2018-05-01 15:30:21 +0100260 <scope>provided</scope>
261 </dependency>
262 </dependencies>
Jorge Hernandez3b25dd82017-08-30 23:42:35 -0500263
264
Pamela Dragosha6557b02017-02-14 19:49:32 -0500265</project>