blob: 9e1a9307fb3cd3ecde37c237cec14010e320def6 [file] [log] [blame]
Pamela Dragosha965e2e2018-05-25 09:22:38 -04001<!--
2 ============LICENSE_START=======================================================
3 ONAP Policy SDC Service Distribution
4 ================================================================================
5 Copyright (C) 2018 AT&T Intellectual Property. All rights reserved.
ramvermab5f49342019-02-05 15:34:35 +00006 Copyright (C) 2019 Nordix Foundation.
Pamela Dragosha965e2e2018-05-25 09:22:38 -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
11
12 http://www.apache.org/licenses/LICENSE-2.0
13
14 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
ramvermab5f49342019-02-05 15:34:35 +000022<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
23 xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">
ramverma84beaf82018-08-15 21:28:42 +010024 <modelVersion>4.0.0</modelVersion>
Pamela Dragosha965e2e2018-05-25 09:22:38 -040025
26 <parent>
27 <groupId>org.onap.policy.parent</groupId>
28 <artifactId>integration</artifactId>
HOCKLAb386bc22019-12-05 14:50:59 -060029 <version>3.1.0</version>
ramverma84beaf82018-08-15 21:28:42 +010030 <relativePath />
Pamela Dragosha965e2e2018-05-25 09:22:38 -040031 </parent>
32
33 <groupId>org.onap.policy.distribution</groupId>
Pamela Dragosh4d2eae62018-05-30 08:55:45 -040034 <artifactId>policy-distribution</artifactId>
Jim Hahna210e7d2019-09-16 16:51:15 -040035 <version>2.3.0-SNAPSHOT</version>
Pamela Dragosha965e2e2018-05-25 09:22:38 -040036
37 <packaging>pom</packaging>
38
39 <name>policy-distribution</name>
40 <description>Code that implements our integration with SDC service distribution API.</description>
41
ramverma84beaf82018-08-15 21:28:42 +010042 <properties>
43 <!-- sonar/jacoco overrides -->
ramvermaef2ff6b2018-08-23 13:50:31 +010044 <!-- Overriding oparent default sonar/jacoco settings Combine all our reports
ramverma84beaf82018-08-15 21:28:42 +010045 into one file shared across sub-modules -->
46 <sonar.jacoco.reportPath>${project.basedir}/../target/code-coverage/jacoco-ut.exec</sonar.jacoco.reportPath>
47 <sonar.jacoco.itReportPath>${project.basedir}/../target/code-coverage/jacoco-it.exec</sonar.jacoco.itReportPath>
48 <sonar.dynamicAnalysis>reuseReports</sonar.dynamicAnalysis>
ramvermaef2ff6b2018-08-23 13:50:31 +010049
HOCKLAb386bc22019-12-05 14:50:59 -060050 <policy.common.version>1.6.1</policy.common.version>
Jim Hahn5a8fe4a2019-09-19 15:33:53 -040051 <policy.engine.version>1.6.0-SNAPSHOT</policy.engine.version>
52 <policy.apex-pdp.version>2.3.0-SNAPSHOT</policy.apex-pdp.version>
53 <policy.models.version>2.2.0-SNAPSHOT</policy.models.version>
ramverma84beaf82018-08-15 21:28:42 +010054 </properties>
55
Pamela Dragosha965e2e2018-05-25 09:22:38 -040056 <modules>
mmisf85f63f2018-08-02 09:45:44 +010057 <module>model</module>
liamfallonce63c402018-07-19 14:27:17 +010058 <module>main</module>
59 <module>reception</module>
60 <module>forwarding</module>
liamfallon37d8ade2018-07-30 16:58:54 +010061 <module>plugins</module>
ramvermab5f49342019-02-05 15:34:35 +000062 <module>packages</module>
Bilal Af762f742019-02-27 13:52:05 -050063 <module>testsuites</module>
Pamela Dragosha965e2e2018-05-25 09:22:38 -040064 </modules>
65
liamfallon37d8ade2018-07-30 16:58:54 +010066 <dependencies>
67 <dependency>
68 <groupId>junit</groupId>
69 <artifactId>junit</artifactId>
70 <scope>test</scope>
71 </dependency>
72 <dependency>
ramvermab5f49342019-02-05 15:34:35 +000073 <groupId>org.mockito</groupId>
74 <artifactId>mockito-all</artifactId>
75 <scope>test</scope>
liamfallon37d8ade2018-07-30 16:58:54 +010076 </dependency>
ramvermab5f49342019-02-05 15:34:35 +000077
liamfallon37d8ade2018-07-30 16:58:54 +010078 <dependency>
ramvermab5f49342019-02-05 15:34:35 +000079 <groupId>org.onap.policy.common</groupId>
80 <artifactId>policy-endpoints</artifactId>
81 <version>${policy.common.version}</version>
liamfallon37d8ade2018-07-30 16:58:54 +010082 </dependency>
83 </dependencies>
84
Pamela Dragosha965e2e2018-05-25 09:22:38 -040085 <distributionManagement>
86 <site>
ramverma84beaf82018-08-15 21:28:42 +010087 <id>ecomp-site</id>
88 <url>dav:${nexusproxy}${sitePath}</url>
Pamela Dragosha965e2e2018-05-25 09:22:38 -040089 </site>
90 </distributionManagement>
91
ramverma84beaf82018-08-15 21:28:42 +010092 <build>
93 <plugins>
94 <plugin>
95 <groupId>org.jacoco</groupId>
96 <artifactId>jacoco-maven-plugin</artifactId>
97 <executions>
98 <execution>
99 <id>pre-unit-test</id>
100 <goals>
101 <goal>prepare-agent</goal>
102 </goals>
103 <configuration>
104 <destFile>${sonar.jacoco.reportPath}</destFile>
105 <append>true</append>
106 </configuration>
107 </execution>
108 <execution>
109 <id>post-unit-test</id>
110 <phase>test</phase>
111 <goals>
112 <goal>report</goal>
113 </goals>
114 <configuration>
115 <dataFile>${sonar.jacoco.reportPath}</dataFile>
116 </configuration>
117 </execution>
118 </executions>
119 </plugin>
ramvermaef2ff6b2018-08-23 13:50:31 +0100120 <plugin>
121 <artifactId>maven-checkstyle-plugin</artifactId>
122 <executions>
123 <execution>
124 <id>onap-java-style</id>
125 <goals>
126 <goal>check</goal>
127 </goals>
128 <phase>process-sources</phase>
129 <configuration>
130 <!-- Use Google Java Style Guide:
131 https://github.com/checkstyle/checkstyle/blob/master/src/main/resources/google_checks.xml
132 with minor changes -->
133 <configLocation>onap-checkstyle/onap-java-style.xml</configLocation>
134 <!-- <sourceDirectory> is needed so that checkstyle ignores the generated sources directory -->
Pamela Dragosh789f09f2018-11-09 08:02:39 -0500135 <sourceDirectory>${project.build.sourceDirectory}</sourceDirectory>
ramvermaef2ff6b2018-08-23 13:50:31 +0100136 <includeResources>true</includeResources>
137 <includeTestSourceDirectory>true</includeTestSourceDirectory>
138 <includeTestResources>true</includeTestResources>
139 <excludes>
140 </excludes>
141 <consoleOutput>true</consoleOutput>
142 <failOnViolation>true</failOnViolation>
143 <violationSeverity>warning</violationSeverity>
144 </configuration>
145 </execution>
146 </executions>
147 <dependencies>
148 <dependency>
149 <groupId>org.onap.oparent</groupId>
150 <artifactId>checkstyle</artifactId>
Pamela Dragosh9d3612f2018-09-06 11:07:44 -0400151 <version>${oparent.version}</version>
ramvermaef2ff6b2018-08-23 13:50:31 +0100152 <scope>compile</scope>
153 </dependency>
154 </dependencies>
155 </plugin>
ramverma84beaf82018-08-15 21:28:42 +0100156 </plugins>
157 <pluginManagement>
158 <plugins>
159 <plugin>
160 <groupId>org.jacoco</groupId>
161 <artifactId>jacoco-maven-plugin</artifactId>
162 <version>${jacoco.version}</version>
163 <configuration>
164 <!-- Note: This exclusion list should match <sonar.exclusions> property
165 above -->
166 <excludes>
167 <exclude>**/gen/**</exclude>
168 <exclude>**/generated-sources/**</exclude>
169 <exclude>**/yang-gen/**</exclude>
170 <exclude>**/pax/**</exclude>
171 </excludes>
172 </configuration>
173 <executions>
174 <!-- Prepares the property pointing to the JaCoCo runtime agent which
175 is passed as VM argument when Maven the Surefire plugin is executed. -->
176 <execution>
177 <id>pre-unit-test</id>
178 <goals>
179 <goal>prepare-agent</goal>
180 </goals>
181 <configuration>
182 <destFile>${sonar.jacoco.reportPath}</destFile>
183 </configuration>
184 </execution>
185 <!-- Ensures that the code coverage report for unit tests is created
186 after unit tests have been run. -->
187 <execution>
188 <id>post-unit-test</id>
189 <phase>test</phase>
190 <goals>
191 <goal>report</goal>
192 </goals>
193 <configuration>
194 <dataFile>${sonar.jacoco.reportPath}</dataFile>
195 </configuration>
196 </execution>
197 </executions>
198 </plugin>
199 </plugins>
200 </pluginManagement>
201 </build>
Pamela Dragosha965e2e2018-05-25 09:22:38 -0400202</project>