blob: 993ae6130cc1d66e2ad677f86385201238a8a8d3 [file] [log] [blame]
Pamela Dragosha6557b02017-02-14 19:49:32 -05001<!--
2 ============LICENSE_START=======================================================
3 drools-pdp-apps
4 ================================================================================
Pamela Dragosh2d70f7d2018-02-16 10:41:37 -05005 Copyright (C) 2017-2018 AT&T Intellectual Property. All rights reserved.
Pamela Dragosha6557b02017-02-14 19:49:32 -05006 ================================================================================
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
Temoc Rodriguezb234cce2017-08-16 16:10:55 -070010
Pamela Dragosha6557b02017-02-14 19:49:32 -050011 http://www.apache.org/licenses/LICENSE-2.0
Temoc Rodriguezb234cce2017-08-16 16:10:55 -070012
Pamela Dragosha6557b02017-02-14 19:49:32 -050013 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
liamfallonfd6a4f32018-10-31 16:54:18 +000021<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
Pamela Dragosha6557b02017-02-14 19:49:32 -050022
eikrwaqa0200fa2018-05-01 15:30:21 +010023 <modelVersion>4.0.0</modelVersion>
24 <parent>
Pamela Dragoshacfe0632018-08-28 09:57:31 -040025 <groupId>org.onap.policy.parent</groupId>
26 <artifactId>integration</artifactId>
liamfallonfd6a4f32018-10-31 16:54:18 +000027 <version>2.1.0-SNAPSHOT</version>
28 <relativePath />
eikrwaqa0200fa2018-05-01 15:30:21 +010029 </parent>
Pamela Dragosha6557b02017-02-14 19:49:32 -050030
eikrwaqa0200fa2018-05-01 15:30:21 +010031 <groupId>org.onap.policy.drools-applications</groupId>
32 <artifactId>drools-applications</artifactId>
liamfallonfd6a4f32018-10-31 16:54:18 +000033 <version>1.4.0-SNAPSHOT</version>
Pamela Dragosha6557b02017-02-14 19:49:32 -050034
eikrwaqa0200fa2018-05-01 15:30:21 +010035 <name>policy-drools-applications</name>
36 <packaging>pom</packaging>
Pamela Dragosha6557b02017-02-14 19:49:32 -050037
eikrwaqa0200fa2018-05-01 15:30:21 +010038 <properties>
39 <!-- Project common build settings -->
40 <maven.compiler.source>1.8</maven.compiler.source>
41 <maven.compiler.target>1.8</maven.compiler.target>
42 <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
43 <project.source.version>1.8</project.source.version>
44 <project.target.version>1.8</project.target.version>
Pamela Dragosh2d70f7d2018-02-16 10:41:37 -050045
eikrwaqa0200fa2018-05-01 15:30:21 +010046 <!-- Project path properties -->
47 <nexusproxy>https://nexus.onap.org</nexusproxy>
48 <sitePath>/content/sites/site/${project.groupId}/${project.artifactId}/${project.version}</sitePath>
49 <releases.path>content/repositories/releases/</releases.path>
50 <snapshots.path>content/repositories/snapshots/</snapshots.path>
51 <staging.path>content/repositories/staging/</staging.path>
Pamela Dragosh2d70f7d2018-02-16 10:41:37 -050052
eikrwaqa0200fa2018-05-01 15:30:21 +010053 <!-- sonar/jacoco overrides -->
54 <!-- Overriding oparent default sonar/jacoco settings Combine all
55 our reports into one file shared across sub-modules -->
56 <sonar.jacoco.reportPath>${project.basedir}/../target/code-coverage/jacoco-ut.exec</sonar.jacoco.reportPath>
57 <sonar.jacoco.itReportPath>${project.basedir}/../target/code-coverage/jacoco-it.exec</sonar.jacoco.itReportPath>
58 <sonar.dynamicAnalysis>reuseReports</sonar.dynamicAnalysis>
Pamela Dragosh2d70f7d2018-02-16 10:41:37 -050059
eikrwaqa0200fa2018-05-01 15:30:21 +010060 <!-- Project common dependency versions -->
liamfallonfd6a4f32018-10-31 16:54:18 +000061 <version.policy.common>1.4.0-SNAPSHOT</version.policy.common>
62 <version.policy.drools-pdp>1.4.0-SNAPSHOT</version.policy.drools-pdp>
eikrwaqa0200fa2018-05-01 15:30:21 +010063 </properties>
Pamela Dragosh65509922017-02-16 13:27:42 -050064
eikrwaqa0200fa2018-05-01 15:30:21 +010065 <build>
66 <plugins>
67 <plugin>
68 <groupId>org.jacoco</groupId>
69 <artifactId>jacoco-maven-plugin</artifactId>
70 <executions>
71 <execution>
72 <id>pre-unit-test</id>
73 <goals>
74 <goal>prepare-agent</goal>
75 </goals>
76 <configuration>
77 <destFile>${sonar.jacoco.reportPath}</destFile>
78 <append>true</append>
79 </configuration>
80 </execution>
81 <execution>
82 <id>post-unit-test</id>
83 <phase>test</phase>
84 <goals>
85 <goal>report</goal>
86 </goals>
87 <configuration>
88 <dataFile>${sonar.jacoco.reportPath}</dataFile>
89 </configuration>
90 </execution>
91 </executions>
92 </plugin>
93 <plugin>
94 <groupId>org.sonatype.plugins</groupId>
95 <artifactId>nexus-staging-maven-plugin</artifactId>
96 <extensions>true</extensions>
97 <configuration>
98 <nexusUrl>${nexusproxy}</nexusUrl>
99 <stagingProfileId>176c31dfe190a</stagingProfileId>
100 <serverId>ecomp-staging</serverId>
101 </configuration>
102 </plugin>
103 <plugin>
104 <groupId>org.apache.maven.plugins</groupId>
105 <artifactId>maven-deploy-plugin</artifactId>
106 <configuration>
107 <skip />
108 </configuration>
109 </plugin>
110 <plugin>
111 <groupId>org.apache.maven.plugins</groupId>
112 <artifactId>maven-compiler-plugin</artifactId>
eikrwaqa0200fa2018-05-01 15:30:21 +0100113 <configuration>
114 <encoding>${project.encoding}</encoding>
115 <source>${project.source.version}</source>
116 <target>${project.target.version}</target>
117 </configuration>
118 </plugin>
119 <plugin>
120 <groupId>org.apache.maven.plugins</groupId>
121 <artifactId>maven-site-plugin</artifactId>
122 <dependencies>
123 <dependency>
124 <groupId>org.apache.maven.wagon</groupId>
125 <artifactId>wagon-webdav-jackrabbit</artifactId>
126 <version>2.10</version>
127 </dependency>
128 </dependencies>
129 </plugin>
Pamela Dragosh8279af32018-08-29 07:58:53 -0400130 <plugin>
131 <artifactId>maven-checkstyle-plugin</artifactId>
132 <executions>
133 <execution>
134 <id>onap-java-style</id>
135 <goals>
136 <goal>check</goal>
137 </goals>
138 <phase>process-sources</phase>
139 <configuration>
140 <!-- Use Google Java Style Guide:
141 https://github.com/checkstyle/checkstyle/blob/master/src/main/resources/google_checks.xml
142 with minor changes -->
143 <configLocation>onap-checkstyle/onap-java-style.xml</configLocation>
144 <!-- <sourceDirectory> is needed so that checkstyle ignores the generated sources directory -->
Pamela Dragosha24a9852018-09-21 20:08:11 -0400145 <sourceDirectory>${project.build.sourceDirectory}</sourceDirectory>
Pamela Dragosh8279af32018-08-29 07:58:53 -0400146 <includeResources>true</includeResources>
147 <includeTestSourceDirectory>true</includeTestSourceDirectory>
148 <includeTestResources>true</includeTestResources>
149 <excludes>
150 </excludes>
151 <consoleOutput>true</consoleOutput>
Pamela Dragosha24a9852018-09-21 20:08:11 -0400152 <failsOnViolation>true</failsOnViolation>
Pamela Dragosh8279af32018-08-29 07:58:53 -0400153 <violationSeverity>warning</violationSeverity>
154 </configuration>
155 </execution>
156 </executions>
157 <dependencies>
158 <dependency>
159 <groupId>org.onap.oparent</groupId>
160 <artifactId>checkstyle</artifactId>
161 <version>${oparent.version}</version>
162 <scope>compile</scope>
163 </dependency>
164 </dependencies>
165 </plugin>
eikrwaqa0200fa2018-05-01 15:30:21 +0100166 </plugins>
Pamela Dragosh18f392b2017-08-14 13:41:44 -0400167 <pluginManagement>
168 <plugins>
eikrwaqa0200fa2018-05-01 15:30:21 +0100169 <plugin>
170 <groupId>org.jacoco</groupId>
171 <artifactId>jacoco-maven-plugin</artifactId>
172 <version>${jacoco.version}</version>
173 <configuration>
174 <!-- Note: This exclusion list should match <sonar.exclusions>
175 property above -->
176 <excludes>
177 <exclude>**/gen/**</exclude>
178 <exclude>**/generated-sources/**</exclude>
179 <exclude>**/yang-gen/**</exclude>
180 <exclude>**/pax/**</exclude>
181 </excludes>
182 </configuration>
183 <executions>
184 <!-- Prepares the property pointing to the JaCoCo
185 runtime agent which is passed as VM argument when Maven the Surefire plugin
186 is executed. -->
187 <execution>
188 <id>pre-unit-test</id>
189 <goals>
190 <goal>prepare-agent</goal>
191 </goals>
192 <configuration>
193 <destFile>${sonar.jacoco.reportPath}</destFile>
194 </configuration>
195 </execution>
196 <!-- Ensures that the code coverage report for unit
197 tests is created after unit tests have been run. -->
198 <execution>
199 <id>post-unit-test</id>
200 <phase>test</phase>
201 <goals>
202 <goal>report</goal>
203 </goals>
204 <configuration>
205 <dataFile>${sonar.jacoco.reportPath}</dataFile>
206 </configuration>
207 </execution>
208 </executions>
209 </plugin>
Pamela Dragosh18f392b2017-08-14 13:41:44 -0400210 <plugin>
211 <groupId>org.eclipse.m2e</groupId>
212 <artifactId>lifecycle-mapping</artifactId>
213 <version>1.0.0</version>
214 <configuration>
215 <lifecycleMappingMetadata>
216 <pluginExecutions>
217 <pluginExecution>
218 <pluginExecutionFilter>
219 <groupId>org.apache.maven.plugins</groupId>
220 <artifactId>maven-checkstyle-plugin</artifactId>
221 <versionRange>2.17,)</versionRange>
222 <goals>
223 <goal>check</goal>
224 </goals>
225 </pluginExecutionFilter>
226 <action>
227 <ignore />
228 </action>
229 </pluginExecution>
230 </pluginExecutions>
231 </lifecycleMappingMetadata>
232 </configuration>
233 </plugin>
234 </plugins>
235 </pluginManagement>
eikrwaqa0200fa2018-05-01 15:30:21 +0100236 </build>
Pamela Dragosha6557b02017-02-14 19:49:32 -0500237
eikrwaqa0200fa2018-05-01 15:30:21 +0100238 <modules>
239 <module>controlloop</module>
240 <module>testsuites</module>
241 </modules>
Pamela Dragosh65509922017-02-16 13:27:42 -0500242
eikrwaqa0200fa2018-05-01 15:30:21 +0100243 <reporting>
244 <plugins>
245 <plugin>
246 <groupId>org.apache.maven.plugins</groupId>
247 <artifactId>maven-javadoc-plugin</artifactId>
248 <version>2.10.4</version>
249 <configuration>
250 <failOnError>false</failOnError>
251 <doclet>org.umlgraph.doclet.UmlGraphDoc</doclet>
252 <docletArtifact>
253 <groupId>org.umlgraph</groupId>
254 <artifactId>umlgraph</artifactId>
255 <version>5.6</version>
256 </docletArtifact>
257 <additionalparam>-views</additionalparam>
258 <useStandardDocletOptions>true</useStandardDocletOptions>
259 </configuration>
260 </plugin>
261 </plugins>
262 </reporting>
Jorge Hernandez3b25dd82017-08-30 23:42:35 -0500263
eikrwaqa0200fa2018-05-01 15:30:21 +0100264 <dependencies>
265 <dependency>
266 <groupId>ch.qos.logback</groupId>
267 <artifactId>logback-classic</artifactId>
eikrwaqa0200fa2018-05-01 15:30:21 +0100268 <scope>provided</scope>
269 </dependency>
270 </dependencies>
Jorge Hernandez3b25dd82017-08-30 23:42:35 -0500271
272
Pamela Dragosha6557b02017-02-14 19:49:32 -0500273</project>