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