blob: 52ac88c3d72d63d656f5500469aa20e8bbac5ac8 [file] [log] [blame]
Pamela Dragosh6e7baf62017-08-03 13:00:44 -04001<!--
2 ============LICENSE_START=======================================================
ramverma189a7852018-05-24 14:48:37 +01003 ONAP Policy GUI
Pamela Dragosh6e7baf62017-08-03 13:00:44 -04004 ================================================================================
Pamela Dragosh32356472018-05-01 10:11:07 -04005 Copyright (C) 2017-2018 AT&T Intellectual Property. All rights reserved.
Pamela Dragosh6e7baf62017-08-03 13:00:44 -04006 ================================================================================
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 Dragosha2a37de2017-08-17 10:27:23 -040010
Pamela Dragosh6e7baf62017-08-03 13:00:44 -040011 http://www.apache.org/licenses/LICENSE-2.0
Pamela Dragosha2a37de2017-08-17 10:27:23 -040012
Pamela Dragosh6e7baf62017-08-03 13:00:44 -040013 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 Dragosh78f196d2018-09-25 09:57:11 -040022 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 Dragosh6e7baf62017-08-03 13:00:44 -040024
Pamela Dragosh78f196d2018-09-25 09:57:11 -040025 <parent>
26 <groupId>org.onap.policy.parent</groupId>
27 <artifactId>integration</artifactId>
28 <version>2.0.0-SNAPSHOT</version>
29 <relativePath />
30 </parent>
Pamela Dragosh6e7baf62017-08-03 13:00:44 -040031
Pamela Dragosh78f196d2018-09-25 09:57:11 -040032 <groupId>org.onap.policy.gui</groupId>
33 <artifactId>policy-gui</artifactId>
Pamela Dragosh6e7baf62017-08-03 13:00:44 -040034
Pamela Dragosh78f196d2018-09-25 09:57:11 -040035 <packaging>pom</packaging>
Pamela Dragosh6e7baf62017-08-03 13:00:44 -040036
Pamela Dragosh78f196d2018-09-25 09:57:11 -040037 <name>policy-gui</name>
38 <description>Code that all the Policy GUI's.</description>
Pamela Dragosh6e7baf62017-08-03 13:00:44 -040039
Pamela Dragosh78f196d2018-09-25 09:57:11 -040040 <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 Dragosha2a37de2017-08-17 10:27:23 -040047
Pamela Dragosh78f196d2018-09-25 09:57:11 -040048 <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 Dragosh6e7baf62017-08-03 13:00:44 -0400189</project>