blob: bb299c46d6637e1b33d5f58fa374c2d2aa42d4c3 [file] [log] [blame]
eikrwaq67037d02018-05-23 17:17:58 +01001<!--
2 ============LICENSE_START=======================================================
3 Copyright (C) 2018 Ericsson. All rights reserved.
liamfallonaa317c72019-02-05 13:41:59 +00004 Copyright (C) 2019 Nordix Foundation.
Chenfei Gao237dd482019-02-22 20:10:11 -05005 Copyright (C) 2019 AT&T Intellectual Property. All rights reserved.
eikrwaq67037d02018-05-23 17:17:58 +01006 ================================================================================
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
10
11 http://www.apache.org/licenses/LICENSE-2.0
12
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
19 SPDX-License-Identifier: Apache-2.0
20 ============LICENSE_END=========================================================
21-->
22
23<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
24 xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
25 <modelVersion>4.0.0</modelVersion>
26 <parent>
27 <groupId>org.onap.policy.parent</groupId>
28 <artifactId>integration</artifactId>
liamfallonaa317c72019-02-05 13:41:59 +000029 <version>2.1.0-SNAPSHOT</version>
Chenfei Gao9ddbc872019-02-26 15:59:56 -050030 <relativePath />
eikrwaq67037d02018-05-23 17:17:58 +010031 </parent>
32
33 <groupId>org.onap.policy.models</groupId>
34 <artifactId>policy-models</artifactId>
Chenfei Gao9ddbc872019-02-26 15:59:56 -050035 <version>2.0.0-SNAPSHOT</version>
Pamela Dragoshf973f582018-09-25 10:06:07 -040036
eikrwaq67037d02018-05-23 17:17:58 +010037 <packaging>pom</packaging>
Chenfei Gao9ddbc872019-02-26 15:59:56 -050038
Pamela Dragoshd01b3fa2018-05-25 08:17:28 -040039 <name>policy-models</name>
liamfallonaa317c72019-02-05 13:41:59 +000040 <description>This repo holds model code agnostic to PDP engines</description>
eikrwaq67037d02018-05-23 17:17:58 +010041
Pamela Dragoshf973f582018-09-25 10:06:07 -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>
Chenfei Gao237dd482019-02-22 20:10:11 -050048
49 <policy.common.version>1.4.0-SNAPSHOT</policy.common.version>
Pamela Dragoshf973f582018-09-25 10:06:07 -040050 </properties>
51
52 <modules>
Chenfei Gao237dd482019-02-22 20:10:11 -050053 <module>platform</module>
Pamela Dragoshf973f582018-09-25 10:06:07 -040054 </modules>
55
Chenfei Gao237dd482019-02-22 20:10:11 -050056 <dependencies>
57 <dependency>
58 <groupId>junit</groupId>
59 <artifactId>junit</artifactId>
60 <scope>test</scope>
61 </dependency>
62 </dependencies>
63
eikrwaq67037d02018-05-23 17:17:58 +010064 <distributionManagement>
65 <site>
66 <id>ecomp-site</id>
Pamela Dragoshf973f582018-09-25 10:06:07 -040067 <url>dav:${nexusproxy}${sitePath}</url>
eikrwaq67037d02018-05-23 17:17:58 +010068 </site>
69 </distributionManagement>
Pamela Dragoshf973f582018-09-25 10:06:07 -040070
71 <build>
72 <plugins>
73 <plugin>
74 <groupId>org.jacoco</groupId>
75 <artifactId>jacoco-maven-plugin</artifactId>
76 <executions>
77 <execution>
78 <id>pre-unit-test</id>
79 <goals>
80 <goal>prepare-agent</goal>
81 </goals>
82 <configuration>
83 <destFile>${sonar.jacoco.reportPath}</destFile>
84 <append>true</append>
85 </configuration>
86 </execution>
87 <execution>
88 <id>post-unit-test</id>
89 <phase>test</phase>
90 <goals>
91 <goal>report</goal>
92 </goals>
93 <configuration>
94 <dataFile>${sonar.jacoco.reportPath}</dataFile>
95 </configuration>
96 </execution>
97 </executions>
98 </plugin>
99 <plugin>
100 <artifactId>maven-checkstyle-plugin</artifactId>
101 <executions>
102 <execution>
103 <id>onap-java-style</id>
104 <goals>
105 <goal>check</goal>
106 </goals>
107 <phase>process-sources</phase>
108 <configuration>
109 <!-- Use Google Java Style Guide: https://github.com/checkstyle/checkstyle/blob/master/src/main/resources/google_checks.xml
110 with minor changes -->
111 <configLocation>onap-checkstyle/onap-java-style.xml</configLocation>
112 <!-- <sourceDirectory> is needed so that checkstyle ignores the generated sources directory -->
113 <sourceDirectory>${project.build.sourceDirectory}</sourceDirectory>
114 <includeResources>true</includeResources>
115 <includeTestSourceDirectory>true</includeTestSourceDirectory>
116 <includeTestResources>true</includeTestResources>
117 <excludes>
118 </excludes>
119 <consoleOutput>true</consoleOutput>
120 <failOnViolation>true</failOnViolation>
121 <violationSeverity>warning</violationSeverity>
122 </configuration>
123 </execution>
124 </executions>
125 <dependencies>
126 <dependency>
127 <groupId>org.onap.oparent</groupId>
128 <artifactId>checkstyle</artifactId>
129 <version>${oparent.version}</version>
130 <scope>compile</scope>
131 </dependency>
132 </dependencies>
133 </plugin>
134 </plugins>
135 <pluginManagement>
136 <plugins>
137 <plugin>
138 <groupId>org.jacoco</groupId>
139 <artifactId>jacoco-maven-plugin</artifactId>
140 <version>${jacoco.version}</version>
141 <configuration>
142 <!-- Note: This exclusion list should match <sonar.exclusions> property above -->
143 <excludes>
144 <exclude>**/gen/**</exclude>
145 <exclude>**/generated-sources/**</exclude>
146 <exclude>**/yang-gen/**</exclude>
147 <exclude>**/pax/**</exclude>
148 </excludes>
149 </configuration>
150 <executions>
151 <!-- Prepares the property pointing to the JaCoCo runtime agent which is passed as VM argument when
152 Maven the Surefire plugin is executed. -->
153 <execution>
154 <id>pre-unit-test</id>
155 <goals>
156 <goal>prepare-agent</goal>
157 </goals>
158 <configuration>
159 <destFile>${sonar.jacoco.reportPath}</destFile>
160 </configuration>
161 </execution>
162 <!-- Ensures that the code coverage report for unit tests is created after unit tests have been run. -->
163 <execution>
164 <id>post-unit-test</id>
165 <phase>test</phase>
166 <goals>
167 <goal>report</goal>
168 </goals>
169 <configuration>
170 <dataFile>${sonar.jacoco.reportPath}</dataFile>
171 </configuration>
172 </execution>
173 </executions>
174 </plugin>
175 <plugin>
176 <groupId>org.eclipse.m2e</groupId>
177 <artifactId>lifecycle-mapping</artifactId>
178 <version>1.0.0</version>
179 <configuration>
180 <lifecycleMappingMetadata>
181 <pluginExecutions>
182 <pluginExecution>
183 <pluginExecutionFilter>
184 <groupId>org.apache.maven.plugins</groupId>
185 <artifactId>maven-checkstyle-plugin</artifactId>
186 <versionRange>2.17,)</versionRange>
187 <goals>
188 <goal>check</goal>
189 </goals>
190 </pluginExecutionFilter>
191 <action>
192 <ignore />
193 </action>
194 </pluginExecution>
195 </pluginExecutions>
196 </lifecycleMappingMetadata>
197 </configuration>
198 </plugin>
199 </plugins>
200 </pluginManagement>
201 </build>
Pamela Dragoshd01b3fa2018-05-25 08:17:28 -0400202</project>