blob: 0181dca2f9e47fe413cd5b6f80568a78d98d930e [file] [log] [blame]
Pamela Dragosha6557b02017-02-14 19:49:32 -05001<!--
2 ============LICENSE_START=======================================================
3 drools-pdp-apps
4 ================================================================================
Hockla, Ali (ah999m)a6f7bac2020-01-10 15:52:56 -06005 Copyright (C) 2017-2020 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>
Hockla, Ali (ah999m)25d3e432020-01-15 15:04:09 -060028 <version>3.1.1-SNAPSHOT</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 Hahn3e5c2442019-09-10 12:04:00 -040034 <version>1.6.0-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>
eikrwaqa0200fa2018-05-01 15:30:21 +010040 <!-- Project path properties -->
41 <nexusproxy>https://nexus.onap.org</nexusproxy>
42 <sitePath>/content/sites/site/${project.groupId}/${project.artifactId}/${project.version}</sitePath>
43 <releases.path>content/repositories/releases/</releases.path>
44 <snapshots.path>content/repositories/snapshots/</snapshots.path>
45 <staging.path>content/repositories/staging/</staging.path>
Pamela Dragosh2d70f7d2018-02-16 10:41:37 -050046
eikrwaqa0200fa2018-05-01 15:30:21 +010047 <!-- sonar/jacoco overrides -->
48 <!-- Overriding oparent default sonar/jacoco settings Combine all
49 our reports into one file shared across sub-modules -->
50 <sonar.jacoco.reportPath>${project.basedir}/../target/code-coverage/jacoco-ut.exec</sonar.jacoco.reportPath>
51 <sonar.jacoco.itReportPath>${project.basedir}/../target/code-coverage/jacoco-it.exec</sonar.jacoco.itReportPath>
52 <sonar.dynamicAnalysis>reuseReports</sonar.dynamicAnalysis>
Pamela Dragosh2d70f7d2018-02-16 10:41:37 -050053
eikrwaqa0200fa2018-05-01 15:30:21 +010054 <!-- Project common dependency versions -->
Hockla, Ali (ah999m)25d3e432020-01-15 15:04:09 -060055 <version.policy.common>1.6.2-SNAPSHOT</version.policy.common>
56 <policy.models.version>2.2.1-SNAPSHOT</policy.models.version>
Jim Hahn9ff23bb2019-09-19 15:21:21 -040057 <version.policy.drools-pdp>1.6.0-SNAPSHOT</version.policy.drools-pdp>
eikrwaqa0200fa2018-05-01 15:30:21 +010058 </properties>
Pamela Dragosh65509922017-02-16 13:27:42 -050059
eikrwaqa0200fa2018-05-01 15:30:21 +010060 <build>
61 <plugins>
62 <plugin>
63 <groupId>org.jacoco</groupId>
64 <artifactId>jacoco-maven-plugin</artifactId>
65 <executions>
66 <execution>
67 <id>pre-unit-test</id>
68 <goals>
69 <goal>prepare-agent</goal>
70 </goals>
71 <configuration>
72 <destFile>${sonar.jacoco.reportPath}</destFile>
73 <append>true</append>
74 </configuration>
75 </execution>
76 <execution>
77 <id>post-unit-test</id>
78 <phase>test</phase>
79 <goals>
80 <goal>report</goal>
81 </goals>
82 <configuration>
83 <dataFile>${sonar.jacoco.reportPath}</dataFile>
84 </configuration>
85 </execution>
86 </executions>
87 </plugin>
88 <plugin>
eikrwaqa0200fa2018-05-01 15:30:21 +010089 <groupId>org.apache.maven.plugins</groupId>
90 <artifactId>maven-deploy-plugin</artifactId>
91 <configuration>
92 <skip />
93 </configuration>
94 </plugin>
95 <plugin>
96 <groupId>org.apache.maven.plugins</groupId>
97 <artifactId>maven-compiler-plugin</artifactId>
eikrwaqa0200fa2018-05-01 15:30:21 +010098 <configuration>
99 <encoding>${project.encoding}</encoding>
Hockla, Ali (ah999m)25d3e432020-01-15 15:04:09 -0600100 <release>${java.version}</release>
eikrwaqa0200fa2018-05-01 15:30:21 +0100101 </configuration>
102 </plugin>
103 <plugin>
104 <groupId>org.apache.maven.plugins</groupId>
105 <artifactId>maven-site-plugin</artifactId>
106 <dependencies>
107 <dependency>
108 <groupId>org.apache.maven.wagon</groupId>
109 <artifactId>wagon-webdav-jackrabbit</artifactId>
110 <version>2.10</version>
111 </dependency>
112 </dependencies>
113 </plugin>
Pamela Dragosh8279af32018-08-29 07:58:53 -0400114 <plugin>
115 <artifactId>maven-checkstyle-plugin</artifactId>
116 <executions>
117 <execution>
118 <id>onap-java-style</id>
119 <goals>
120 <goal>check</goal>
121 </goals>
122 <phase>process-sources</phase>
123 <configuration>
124 <!-- Use Google Java Style Guide:
125 https://github.com/checkstyle/checkstyle/blob/master/src/main/resources/google_checks.xml
126 with minor changes -->
127 <configLocation>onap-checkstyle/onap-java-style.xml</configLocation>
128 <!-- <sourceDirectory> is needed so that checkstyle ignores the generated sources directory -->
Hockla, Ali (ah999m)25d3e432020-01-15 15:04:09 -0600129 <sourceDirectories>${project.build.sourceDirectory}</sourceDirectories>
Pamela Dragosh8279af32018-08-29 07:58:53 -0400130 <includeResources>true</includeResources>
131 <includeTestSourceDirectory>true</includeTestSourceDirectory>
132 <includeTestResources>true</includeTestResources>
133 <excludes>
134 </excludes>
Hockla, Ali (ah999m)25d3e432020-01-15 15:04:09 -0600135 <suppressionsLocation>/checkstyle-suppressions.xml</suppressionsLocation>
Pamela Dragosh8279af32018-08-29 07:58:53 -0400136 <consoleOutput>true</consoleOutput>
Pamela Dragosha24a9852018-09-21 20:08:11 -0400137 <failsOnViolation>true</failsOnViolation>
Pamela Dragosh8279af32018-08-29 07:58:53 -0400138 <violationSeverity>warning</violationSeverity>
139 </configuration>
140 </execution>
141 </executions>
142 <dependencies>
143 <dependency>
144 <groupId>org.onap.oparent</groupId>
145 <artifactId>checkstyle</artifactId>
146 <version>${oparent.version}</version>
147 <scope>compile</scope>
148 </dependency>
149 </dependencies>
150 </plugin>
eikrwaqa0200fa2018-05-01 15:30:21 +0100151 </plugins>
Pamela Dragosh18f392b2017-08-14 13:41:44 -0400152 <pluginManagement>
153 <plugins>
eikrwaqa0200fa2018-05-01 15:30:21 +0100154 <plugin>
155 <groupId>org.jacoco</groupId>
156 <artifactId>jacoco-maven-plugin</artifactId>
157 <version>${jacoco.version}</version>
158 <configuration>
159 <!-- Note: This exclusion list should match <sonar.exclusions>
160 property above -->
161 <excludes>
162 <exclude>**/gen/**</exclude>
163 <exclude>**/generated-sources/**</exclude>
164 <exclude>**/yang-gen/**</exclude>
165 <exclude>**/pax/**</exclude>
166 </excludes>
167 </configuration>
168 <executions>
169 <!-- Prepares the property pointing to the JaCoCo
170 runtime agent which is passed as VM argument when Maven the Surefire plugin
171 is executed. -->
172 <execution>
173 <id>pre-unit-test</id>
174 <goals>
175 <goal>prepare-agent</goal>
176 </goals>
177 <configuration>
178 <destFile>${sonar.jacoco.reportPath}</destFile>
179 </configuration>
180 </execution>
181 <!-- Ensures that the code coverage report for unit
182 tests is created after unit tests have been run. -->
183 <execution>
184 <id>post-unit-test</id>
185 <phase>test</phase>
186 <goals>
187 <goal>report</goal>
188 </goals>
189 <configuration>
190 <dataFile>${sonar.jacoco.reportPath}</dataFile>
191 </configuration>
192 </execution>
193 </executions>
194 </plugin>
Pamela Dragosh18f392b2017-08-14 13:41:44 -0400195 <plugin>
196 <groupId>org.eclipse.m2e</groupId>
197 <artifactId>lifecycle-mapping</artifactId>
198 <version>1.0.0</version>
199 <configuration>
200 <lifecycleMappingMetadata>
201 <pluginExecutions>
202 <pluginExecution>
203 <pluginExecutionFilter>
204 <groupId>org.apache.maven.plugins</groupId>
205 <artifactId>maven-checkstyle-plugin</artifactId>
206 <versionRange>2.17,)</versionRange>
207 <goals>
208 <goal>check</goal>
209 </goals>
210 </pluginExecutionFilter>
211 <action>
212 <ignore />
213 </action>
214 </pluginExecution>
215 </pluginExecutions>
216 </lifecycleMappingMetadata>
217 </configuration>
218 </plugin>
219 </plugins>
220 </pluginManagement>
eikrwaqa0200fa2018-05-01 15:30:21 +0100221 </build>
Pamela Dragosha6557b02017-02-14 19:49:32 -0500222
eikrwaqa0200fa2018-05-01 15:30:21 +0100223 <modules>
224 <module>controlloop</module>
225 <module>testsuites</module>
226 </modules>
Pamela Dragosh65509922017-02-16 13:27:42 -0500227
eikrwaqa0200fa2018-05-01 15:30:21 +0100228 <reporting>
229 <plugins>
230 <plugin>
231 <groupId>org.apache.maven.plugins</groupId>
232 <artifactId>maven-javadoc-plugin</artifactId>
233 <version>2.10.4</version>
234 <configuration>
235 <failOnError>false</failOnError>
236 <doclet>org.umlgraph.doclet.UmlGraphDoc</doclet>
237 <docletArtifact>
238 <groupId>org.umlgraph</groupId>
239 <artifactId>umlgraph</artifactId>
240 <version>5.6</version>
241 </docletArtifact>
242 <additionalparam>-views</additionalparam>
243 <useStandardDocletOptions>true</useStandardDocletOptions>
244 </configuration>
245 </plugin>
246 </plugins>
247 </reporting>
Jorge Hernandez3b25dd82017-08-30 23:42:35 -0500248
eikrwaqa0200fa2018-05-01 15:30:21 +0100249 <dependencies>
250 <dependency>
251 <groupId>ch.qos.logback</groupId>
252 <artifactId>logback-classic</artifactId>
eikrwaqa0200fa2018-05-01 15:30:21 +0100253 <scope>provided</scope>
254 </dependency>
255 </dependencies>
Jorge Hernandez3b25dd82017-08-30 23:42:35 -0500256
Pamela Dragosha6557b02017-02-14 19:49:32 -0500257</project>