blob: a1d33786ffda96cd4455d19880ceb68386277b54 [file] [log] [blame]
Pamela Dragosh1f049412017-08-03 13:22:41 -04001<!--
2 ============LICENSE_START=======================================================
ramverma0f7ddb12018-05-24 14:23:19 +01003 ONAP Policy PAP
Pamela Dragosh1f049412017-08-03 13:22:41 -04004 ================================================================================
Pamela Dragosh09945472018-05-01 10:15:39 -04005 Copyright (C) 2017-2018 AT&T Intellectual Property. All rights reserved.
ramverma07b7ba02019-01-31 13:09:00 +00006 Copyright (C) 2019 Nordix Foundation.
Pamela Dragosh1f049412017-08-03 13:22:41 -04007 ================================================================================
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
ramverma07b7ba02019-01-31 13:09:00 +000011
Pamela Dragosh1f049412017-08-03 13:22:41 -040012 http://www.apache.org/licenses/LICENSE-2.0
ramverma07b7ba02019-01-31 13:09:00 +000013
Pamela Dragosh1f049412017-08-03 13:22:41 -040014 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
22<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
Pamela Dragosh85047eb2018-09-25 09:47:24 -040023 xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">
24 <modelVersion>4.0.0</modelVersion>
Pamela Dragosh1f049412017-08-03 13:22:41 -040025
Pamela Dragosh85047eb2018-09-25 09:47:24 -040026 <parent>
27 <groupId>org.onap.policy.parent</groupId>
28 <artifactId>integration</artifactId>
Pamela Dragoshb4b7d792018-10-25 10:56:23 -040029 <version>2.0.0</version>
Pamela Dragosh85047eb2018-09-25 09:47:24 -040030 <relativePath />
31 </parent>
Pamela Dragosh1f049412017-08-03 13:22:41 -040032
Pamela Dragosh85047eb2018-09-25 09:47:24 -040033 <groupId>org.onap.policy.pap</groupId>
34 <artifactId>policy-pap</artifactId>
Pamela Dragoshb4b7d792018-10-25 10:56:23 -040035 <version>2.0.0-SNAPSHOT</version>
Pamela Dragosh1f049412017-08-03 13:22:41 -040036
Pamela Dragosh85047eb2018-09-25 09:47:24 -040037 <packaging>pom</packaging>
Pamela Dragosh1f049412017-08-03 13:22:41 -040038
Pamela Dragosh85047eb2018-09-25 09:47:24 -040039 <name>policy-pap</name>
40 <description>Code that implements the Policy Administration Backend.</description>
Pamela Dragosh1f049412017-08-03 13:22:41 -040041
Pamela Dragosh85047eb2018-09-25 09:47:24 -040042 <properties>
43 <!-- sonar/jacoco overrides -->
44 <!-- Overriding oparent default sonar/jacoco settings Combine all our reports into one file shared across sub-modules -->
45 <sonar.jacoco.reportPath>${project.basedir}/../target/code-coverage/jacoco-ut.exec</sonar.jacoco.reportPath>
46 <sonar.jacoco.itReportPath>${project.basedir}/../target/code-coverage/jacoco-it.exec</sonar.jacoco.itReportPath>
47 <sonar.dynamicAnalysis>reuseReports</sonar.dynamicAnalysis>
ramverma07b7ba02019-01-31 13:09:00 +000048
ramverma74ead722019-02-07 21:52:23 +000049 <policy.common.version>1.4.0-SNAPSHOT</policy.common.version>
Pamela Dragosh85047eb2018-09-25 09:47:24 -040050 </properties>
Pamela Dragosh788fe2c2017-08-17 10:29:36 -040051
Pamela Dragosh85047eb2018-09-25 09:47:24 -040052 <modules>
ramverma07b7ba02019-01-31 13:09:00 +000053 <module>main</module>
ramvermad1a702c2019-02-11 15:20:09 +000054 <module>packages</module>
Bilal Aea53f042019-02-21 11:31:02 -050055 <module>testsuites</module>
Pamela Dragosh85047eb2018-09-25 09:47:24 -040056 </modules>
57
ramverma07b7ba02019-01-31 13:09:00 +000058 <dependencies>
59 <dependency>
60 <groupId>junit</groupId>
61 <artifactId>junit</artifactId>
62 <scope>test</scope>
63 </dependency>
ramverma07b7ba02019-01-31 13:09:00 +000064 </dependencies>
65
Pamela Dragosh85047eb2018-09-25 09:47:24 -040066 <distributionManagement>
67 <site>
68 <id>ecomp-site</id>
69 <url>dav:${nexusproxy}${sitePath}</url>
70 </site>
71 </distributionManagement>
72
73 <build>
74 <plugins>
75 <plugin>
76 <groupId>org.jacoco</groupId>
77 <artifactId>jacoco-maven-plugin</artifactId>
78 <executions>
79 <execution>
80 <id>pre-unit-test</id>
81 <goals>
82 <goal>prepare-agent</goal>
83 </goals>
84 <configuration>
85 <destFile>${sonar.jacoco.reportPath}</destFile>
86 <append>true</append>
87 </configuration>
88 </execution>
89 <execution>
90 <id>post-unit-test</id>
91 <phase>test</phase>
92 <goals>
93 <goal>report</goal>
94 </goals>
95 <configuration>
96 <dataFile>${sonar.jacoco.reportPath}</dataFile>
97 </configuration>
98 </execution>
99 </executions>
100 </plugin>
101 <plugin>
102 <artifactId>maven-checkstyle-plugin</artifactId>
103 <executions>
104 <execution>
105 <id>onap-java-style</id>
106 <goals>
107 <goal>check</goal>
108 </goals>
109 <phase>process-sources</phase>
110 <configuration>
111 <!-- Use Google Java Style Guide: https://github.com/checkstyle/checkstyle/blob/master/src/main/resources/google_checks.xml
112 with minor changes -->
113 <configLocation>onap-checkstyle/onap-java-style.xml</configLocation>
114 <!-- <sourceDirectory> is needed so that checkstyle ignores the generated sources directory -->
115 <sourceDirectory>${project.build.sourceDirectory}</sourceDirectory>
116 <includeResources>true</includeResources>
117 <includeTestSourceDirectory>true</includeTestSourceDirectory>
118 <includeTestResources>true</includeTestResources>
119 <excludes>
120 </excludes>
121 <consoleOutput>true</consoleOutput>
122 <failOnViolation>true</failOnViolation>
123 <violationSeverity>warning</violationSeverity>
124 </configuration>
125 </execution>
126 </executions>
127 <dependencies>
128 <dependency>
129 <groupId>org.onap.oparent</groupId>
130 <artifactId>checkstyle</artifactId>
131 <version>${oparent.version}</version>
132 <scope>compile</scope>
133 </dependency>
134 </dependencies>
135 </plugin>
136 </plugins>
137 <pluginManagement>
138 <plugins>
139 <plugin>
140 <groupId>org.jacoco</groupId>
141 <artifactId>jacoco-maven-plugin</artifactId>
142 <version>${jacoco.version}</version>
143 <configuration>
144 <!-- Note: This exclusion list should match <sonar.exclusions> property above -->
145 <excludes>
146 <exclude>**/gen/**</exclude>
147 <exclude>**/generated-sources/**</exclude>
148 <exclude>**/yang-gen/**</exclude>
149 <exclude>**/pax/**</exclude>
150 </excludes>
151 </configuration>
152 <executions>
153 <!-- Prepares the property pointing to the JaCoCo runtime agent which is passed as VM argument when
154 Maven the Surefire plugin is executed. -->
155 <execution>
156 <id>pre-unit-test</id>
157 <goals>
158 <goal>prepare-agent</goal>
159 </goals>
160 <configuration>
161 <destFile>${sonar.jacoco.reportPath}</destFile>
162 </configuration>
163 </execution>
164 <!-- Ensures that the code coverage report for unit tests is created after unit tests have been run. -->
165 <execution>
166 <id>post-unit-test</id>
167 <phase>test</phase>
168 <goals>
169 <goal>report</goal>
170 </goals>
171 <configuration>
172 <dataFile>${sonar.jacoco.reportPath}</dataFile>
173 </configuration>
174 </execution>
175 </executions>
176 </plugin>
177 <plugin>
178 <groupId>org.eclipse.m2e</groupId>
179 <artifactId>lifecycle-mapping</artifactId>
180 <version>1.0.0</version>
181 <configuration>
182 <lifecycleMappingMetadata>
183 <pluginExecutions>
184 <pluginExecution>
185 <pluginExecutionFilter>
186 <groupId>org.apache.maven.plugins</groupId>
187 <artifactId>maven-checkstyle-plugin</artifactId>
188 <versionRange>2.17,)</versionRange>
189 <goals>
190 <goal>check</goal>
191 </goals>
192 </pluginExecutionFilter>
193 <action>
194 <ignore />
195 </action>
196 </pluginExecution>
197 </pluginExecutions>
198 </lifecycleMappingMetadata>
199 </configuration>
200 </plugin>
201 </plugins>
202 </pluginManagement>
203 </build>
Pamela Dragosh1f049412017-08-03 13:22:41 -0400204</project>