Pamela Dragosh | 6e7baf6 | 2017-08-03 13:00:44 -0400 | [diff] [blame] | 1 | <!-- |
| 2 | ============LICENSE_START======================================================= |
ramverma | 189a785 | 2018-05-24 14:48:37 +0100 | [diff] [blame] | 3 | ONAP Policy GUI |
Pamela Dragosh | 6e7baf6 | 2017-08-03 13:00:44 -0400 | [diff] [blame] | 4 | ================================================================================ |
Pamela Dragosh | 3235647 | 2018-05-01 10:11:07 -0400 | [diff] [blame] | 5 | Copyright (C) 2017-2018 AT&T Intellectual Property. All rights reserved. |
Pamela Dragosh | 6e7baf6 | 2017-08-03 13:00:44 -0400 | [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 |
Pamela Dragosh | a2a37de | 2017-08-17 10:27:23 -0400 | [diff] [blame] | 10 | |
Pamela Dragosh | 6e7baf6 | 2017-08-03 13:00:44 -0400 | [diff] [blame] | 11 | http://www.apache.org/licenses/LICENSE-2.0 |
Pamela Dragosh | a2a37de | 2017-08-17 10:27:23 -0400 | [diff] [blame] | 12 | |
Pamela Dragosh | 6e7baf6 | 2017-08-03 13:00:44 -0400 | [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 | |
| 21 | <project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" |
Pamela Dragosh | 78f196d | 2018-09-25 09:57:11 -0400 | [diff] [blame^] | 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> |
Pamela Dragosh | 6e7baf6 | 2017-08-03 13:00:44 -0400 | [diff] [blame] | 24 | |
Pamela Dragosh | 78f196d | 2018-09-25 09:57:11 -0400 | [diff] [blame^] | 25 | <parent> |
| 26 | <groupId>org.onap.policy.parent</groupId> |
| 27 | <artifactId>integration</artifactId> |
| 28 | <version>2.0.0-SNAPSHOT</version> |
| 29 | <relativePath /> |
| 30 | </parent> |
Pamela Dragosh | 6e7baf6 | 2017-08-03 13:00:44 -0400 | [diff] [blame] | 31 | |
Pamela Dragosh | 78f196d | 2018-09-25 09:57:11 -0400 | [diff] [blame^] | 32 | <groupId>org.onap.policy.gui</groupId> |
| 33 | <artifactId>policy-gui</artifactId> |
Pamela Dragosh | 6e7baf6 | 2017-08-03 13:00:44 -0400 | [diff] [blame] | 34 | |
Pamela Dragosh | 78f196d | 2018-09-25 09:57:11 -0400 | [diff] [blame^] | 35 | <packaging>pom</packaging> |
Pamela Dragosh | 6e7baf6 | 2017-08-03 13:00:44 -0400 | [diff] [blame] | 36 | |
Pamela Dragosh | 78f196d | 2018-09-25 09:57:11 -0400 | [diff] [blame^] | 37 | <name>policy-gui</name> |
| 38 | <description>Code that all the Policy GUI's.</description> |
Pamela Dragosh | 6e7baf6 | 2017-08-03 13:00:44 -0400 | [diff] [blame] | 39 | |
Pamela Dragosh | 78f196d | 2018-09-25 09:57:11 -0400 | [diff] [blame^] | 40 | <properties> |
| 41 | <!-- sonar/jacoco overrides --> |
| 42 | <!-- Overriding oparent default sonar/jacoco settings Combine all our reports into one file shared across sub-modules --> |
| 43 | <sonar.jacoco.reportPath>${project.basedir}/../target/code-coverage/jacoco-ut.exec</sonar.jacoco.reportPath> |
| 44 | <sonar.jacoco.itReportPath>${project.basedir}/../target/code-coverage/jacoco-it.exec</sonar.jacoco.itReportPath> |
| 45 | <sonar.dynamicAnalysis>reuseReports</sonar.dynamicAnalysis> |
| 46 | </properties> |
Pamela Dragosh | a2a37de | 2017-08-17 10:27:23 -0400 | [diff] [blame] | 47 | |
Pamela Dragosh | 78f196d | 2018-09-25 09:57:11 -0400 | [diff] [blame^] | 48 | <modules> |
| 49 | </modules> |
| 50 | |
| 51 | <distributionManagement> |
| 52 | <site> |
| 53 | <id>ecomp-site</id> |
| 54 | <url>dav:${nexusproxy}${sitePath}</url> |
| 55 | </site> |
| 56 | </distributionManagement> |
| 57 | |
| 58 | <build> |
| 59 | <plugins> |
| 60 | <plugin> |
| 61 | <groupId>org.jacoco</groupId> |
| 62 | <artifactId>jacoco-maven-plugin</artifactId> |
| 63 | <executions> |
| 64 | <execution> |
| 65 | <id>pre-unit-test</id> |
| 66 | <goals> |
| 67 | <goal>prepare-agent</goal> |
| 68 | </goals> |
| 69 | <configuration> |
| 70 | <destFile>${sonar.jacoco.reportPath}</destFile> |
| 71 | <append>true</append> |
| 72 | </configuration> |
| 73 | </execution> |
| 74 | <execution> |
| 75 | <id>post-unit-test</id> |
| 76 | <phase>test</phase> |
| 77 | <goals> |
| 78 | <goal>report</goal> |
| 79 | </goals> |
| 80 | <configuration> |
| 81 | <dataFile>${sonar.jacoco.reportPath}</dataFile> |
| 82 | </configuration> |
| 83 | </execution> |
| 84 | </executions> |
| 85 | </plugin> |
| 86 | <plugin> |
| 87 | <artifactId>maven-checkstyle-plugin</artifactId> |
| 88 | <executions> |
| 89 | <execution> |
| 90 | <id>onap-java-style</id> |
| 91 | <goals> |
| 92 | <goal>check</goal> |
| 93 | </goals> |
| 94 | <phase>process-sources</phase> |
| 95 | <configuration> |
| 96 | <!-- Use Google Java Style Guide: https://github.com/checkstyle/checkstyle/blob/master/src/main/resources/google_checks.xml |
| 97 | with minor changes --> |
| 98 | <configLocation>onap-checkstyle/onap-java-style.xml</configLocation> |
| 99 | <!-- <sourceDirectory> is needed so that checkstyle ignores the generated sources directory --> |
| 100 | <sourceDirectory>${project.build.sourceDirectory}</sourceDirectory> |
| 101 | <includeResources>true</includeResources> |
| 102 | <includeTestSourceDirectory>true</includeTestSourceDirectory> |
| 103 | <includeTestResources>true</includeTestResources> |
| 104 | <excludes> |
| 105 | </excludes> |
| 106 | <consoleOutput>true</consoleOutput> |
| 107 | <failOnViolation>true</failOnViolation> |
| 108 | <violationSeverity>warning</violationSeverity> |
| 109 | </configuration> |
| 110 | </execution> |
| 111 | </executions> |
| 112 | <dependencies> |
| 113 | <dependency> |
| 114 | <groupId>org.onap.oparent</groupId> |
| 115 | <artifactId>checkstyle</artifactId> |
| 116 | <version>${oparent.version}</version> |
| 117 | <scope>compile</scope> |
| 118 | </dependency> |
| 119 | </dependencies> |
| 120 | </plugin> |
| 121 | </plugins> |
| 122 | <pluginManagement> |
| 123 | <plugins> |
| 124 | <plugin> |
| 125 | <groupId>org.jacoco</groupId> |
| 126 | <artifactId>jacoco-maven-plugin</artifactId> |
| 127 | <version>${jacoco.version}</version> |
| 128 | <configuration> |
| 129 | <!-- Note: This exclusion list should match <sonar.exclusions> property above --> |
| 130 | <excludes> |
| 131 | <exclude>**/gen/**</exclude> |
| 132 | <exclude>**/generated-sources/**</exclude> |
| 133 | <exclude>**/yang-gen/**</exclude> |
| 134 | <exclude>**/pax/**</exclude> |
| 135 | </excludes> |
| 136 | </configuration> |
| 137 | <executions> |
| 138 | <!-- Prepares the property pointing to the JaCoCo runtime agent which is passed as VM argument when |
| 139 | Maven the Surefire plugin is executed. --> |
| 140 | <execution> |
| 141 | <id>pre-unit-test</id> |
| 142 | <goals> |
| 143 | <goal>prepare-agent</goal> |
| 144 | </goals> |
| 145 | <configuration> |
| 146 | <destFile>${sonar.jacoco.reportPath}</destFile> |
| 147 | </configuration> |
| 148 | </execution> |
| 149 | <!-- Ensures that the code coverage report for unit tests is created after unit tests have been run. --> |
| 150 | <execution> |
| 151 | <id>post-unit-test</id> |
| 152 | <phase>test</phase> |
| 153 | <goals> |
| 154 | <goal>report</goal> |
| 155 | </goals> |
| 156 | <configuration> |
| 157 | <dataFile>${sonar.jacoco.reportPath}</dataFile> |
| 158 | </configuration> |
| 159 | </execution> |
| 160 | </executions> |
| 161 | </plugin> |
| 162 | <plugin> |
| 163 | <groupId>org.eclipse.m2e</groupId> |
| 164 | <artifactId>lifecycle-mapping</artifactId> |
| 165 | <version>1.0.0</version> |
| 166 | <configuration> |
| 167 | <lifecycleMappingMetadata> |
| 168 | <pluginExecutions> |
| 169 | <pluginExecution> |
| 170 | <pluginExecutionFilter> |
| 171 | <groupId>org.apache.maven.plugins</groupId> |
| 172 | <artifactId>maven-checkstyle-plugin</artifactId> |
| 173 | <versionRange>2.17,)</versionRange> |
| 174 | <goals> |
| 175 | <goal>check</goal> |
| 176 | </goals> |
| 177 | </pluginExecutionFilter> |
| 178 | <action> |
| 179 | <ignore /> |
| 180 | </action> |
| 181 | </pluginExecution> |
| 182 | </pluginExecutions> |
| 183 | </lifecycleMappingMetadata> |
| 184 | </configuration> |
| 185 | </plugin> |
| 186 | </plugins> |
| 187 | </pluginManagement> |
| 188 | </build> |
Pamela Dragosh | 6e7baf6 | 2017-08-03 13:00:44 -0400 | [diff] [blame] | 189 | </project> |