Merge "Reduce Technical Debt on drools-applications"
[policy/drools-applications.git] / pom.xml
1 <!--
2   ============LICENSE_START=======================================================
3   drools-pdp-apps
4   ================================================================================
5   Copyright (C) 2017-2018 AT&T Intellectual Property. All rights reserved.
6   ================================================================================
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   ============LICENSE_END=========================================================
19   -->
20
21 <project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
22         xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
23
24        <modelVersion>4.0.0</modelVersion>
25         <parent>
26                 <groupId>org.onap.oparent</groupId>
27                 <artifactId>oparent</artifactId>
28                 <version>0.1.1</version>
29                 <relativePath/>
30         </parent>
31
32         <groupId>org.onap.policy.drools-applications</groupId>
33         <artifactId>drools-applications</artifactId>
34         <version>1.2.0-SNAPSHOT</version>
35
36         <name>policy-drools-applications</name>
37         <packaging>pom</packaging>
38
39         <properties>
40                 <!-- Project common build settings -->
41                 <maven.compiler.source>1.8</maven.compiler.source>
42                 <maven.compiler.target>1.8</maven.compiler.target>
43                 <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
44                 <project.source.version>1.8</project.source.version>
45                 <project.target.version>1.8</project.target.version>
46
47                 <!-- Project path properties -->
48                 <nexusproxy>https://nexus.onap.org</nexusproxy>
49                 <sitePath>/content/sites/site/${project.groupId}/${project.artifactId}/${project.version}</sitePath>
50                 <releases.path>content/repositories/releases/</releases.path>
51                 <snapshots.path>content/repositories/snapshots/</snapshots.path>
52                 <staging.path>content/repositories/staging/</staging.path>
53
54                 <!-- sonar/jacoco overrides -->
55                 <!-- Overriding oparent default sonar/jacoco settings Combine all our reports 
56                         into one file shared across sub-modules -->
57                 <sonar.jacoco.reportPath>${project.basedir}/../target/code-coverage/jacoco-ut.exec</sonar.jacoco.reportPath>
58                 <sonar.jacoco.itReportPath>${project.basedir}/../target/code-coverage/jacoco-it.exec</sonar.jacoco.itReportPath>
59                 <sonar.dynamicAnalysis>reuseReports</sonar.dynamicAnalysis>
60
61                 <!-- Project common dependency versions -->
62         </properties>
63
64         <build>
65                 <plugins>
66                         <plugin>
67                                 <groupId>org.jacoco</groupId>
68                                 <artifactId>jacoco-maven-plugin</artifactId>
69                                 <executions>
70                                         <execution>
71                                                 <id>pre-unit-test</id>
72                                                 <goals>
73                                                         <goal>prepare-agent</goal>
74                                                 </goals>
75                                                 <configuration>
76                                                         <destFile>${sonar.jacoco.reportPath}</destFile>
77                                                         <append>true</append>
78                                                 </configuration>
79                                         </execution>
80                                         <execution>
81                                                 <id>post-unit-test</id>
82                                                 <phase>test</phase>
83                                                 <goals>
84                                                         <goal>report</goal>
85                                                 </goals>
86                                                 <configuration>
87                                                         <dataFile>${sonar.jacoco.reportPath}</dataFile>
88                                                 </configuration>
89                                         </execution>
90                                 </executions>
91                         </plugin>
92                         <plugin>
93                                 <groupId>org.sonatype.plugins</groupId>
94                                 <artifactId>nexus-staging-maven-plugin</artifactId>
95                                 <extensions>true</extensions>
96                                 <configuration>
97                                         <nexusUrl>${nexusproxy}</nexusUrl>
98                                         <stagingProfileId>176c31dfe190a</stagingProfileId>
99                                         <serverId>ecomp-staging</serverId>
100                                 </configuration>
101                         </plugin>
102                         <plugin>
103                                 <groupId>org.apache.maven.plugins</groupId>
104                                 <artifactId>maven-deploy-plugin</artifactId>
105                                 <configuration>
106                                         <skip />
107                                 </configuration>
108                         </plugin>
109                         <plugin>
110                                 <groupId>org.apache.maven.plugins</groupId>
111                                 <artifactId>maven-compiler-plugin</artifactId>
112                                 <version>3.0</version>
113                                 <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>
130             </plugins>
131         <pluginManagement>
132             <plugins>
133                                 <plugin>
134                                         <groupId>org.jacoco</groupId>
135                                         <artifactId>jacoco-maven-plugin</artifactId>
136                                         <version>${jacoco.version}</version>
137                                         <configuration>
138                                                 <!-- Note: This exclusion list should match <sonar.exclusions> property 
139                                                         above -->
140                                                 <excludes>
141                                                         <exclude>**/gen/**</exclude>
142                                                         <exclude>**/generated-sources/**</exclude>
143                                                         <exclude>**/yang-gen/**</exclude>
144                                                         <exclude>**/pax/**</exclude>
145                                                 </excludes>
146                                         </configuration>
147                                         <executions>
148                                                 <!-- Prepares the property pointing to the JaCoCo runtime agent which 
149                                                         is passed as VM argument when Maven the Surefire plugin is executed. -->
150                                                 <execution>
151                                                         <id>pre-unit-test</id>
152                                                         <goals>
153                                                                 <goal>prepare-agent</goal>
154                                                         </goals>
155                                                         <configuration>
156                                                                 <destFile>${sonar.jacoco.reportPath}</destFile>
157                                                         </configuration>
158                                                 </execution>
159                                                 <!-- Ensures that the code coverage report for unit tests is created 
160                                                         after unit tests have been run. -->
161                                                 <execution>
162                                                         <id>post-unit-test</id>
163                                                         <phase>test</phase>
164                                                         <goals>
165                                                                 <goal>report</goal>
166                                                         </goals>
167                                                         <configuration>
168                                                                 <dataFile>${sonar.jacoco.reportPath}</dataFile>
169                                                         </configuration>
170                                                 </execution>
171                                         </executions>
172                                 </plugin>
173                 <plugin>
174                     <groupId>org.eclipse.m2e</groupId>
175                     <artifactId>lifecycle-mapping</artifactId>
176                     <version>1.0.0</version>
177                     <configuration>
178                         <lifecycleMappingMetadata>
179                             <pluginExecutions>
180                                 <pluginExecution>
181                                     <pluginExecutionFilter>
182                                         <groupId>org.apache.maven.plugins</groupId>
183                                         <artifactId>maven-checkstyle-plugin</artifactId>
184                                         <versionRange>2.17,)</versionRange>
185                                         <goals>
186                                             <goal>check</goal>
187                                         </goals>
188                                     </pluginExecutionFilter>
189                                     <action>
190                                         <ignore />
191                                     </action>
192                                 </pluginExecution>
193                             </pluginExecutions>
194                         </lifecycleMappingMetadata>
195                     </configuration>
196                 </plugin>
197             </plugins>
198         </pluginManagement>
199         </build>
200
201         <modules>
202                 <module>controlloop</module>
203         </modules>
204
205         <repositories>
206                 <!-- LF repositories -->
207                 <repository>
208                         <id>ecomp-releases</id>
209                         <name>Release Repository</name>
210                         <url>${nexusproxy}/content/repositories/releases/</url>
211                 </repository>
212                 <repository>
213                         <id>ecomp-staging</id>
214                         <name>Staging Repository</name>
215                         <url>${nexusproxy}/content/repositories/staging/</url>
216                 </repository>
217                 <repository>
218                         <id>ecomp-snapshots</id>
219                         <name>Snapshots Repository</name>
220                         <url>${nexusproxy}/content/repositories/snapshots/</url>
221                 </repository>
222                 <repository>
223                         <id>ecomp-public</id>
224                         <name>Public Repository</name>
225                         <url>${nexusproxy}/content/repositories/public/</url>
226                 </repository>
227                 <!-- LF repositories END-->
228         </repositories>
229
230
231         <distributionManagement>
232                 <repository>
233                         <id>ecomp-releases</id>
234                         <name>OpenECOMP Release Repository</name>
235                         <url>${nexusproxy}/${releases.path}</url>
236                 </repository>
237                 <snapshotRepository>
238                         <id>ecomp-snapshots</id>
239                         <name>OpenECOMP Snapshot Repository</name>
240                         <url>${nexusproxy}/${snapshots.path}</url>
241                 </snapshotRepository>
242                 <site>
243                         <id>ecomp-site</id>
244                         <url>dav:${nexusproxy}${sitePath}</url>
245                 </site>
246
247         </distributionManagement>
248
249         <reporting>
250           <plugins>
251             <plugin>
252               <groupId>org.apache.maven.plugins</groupId>
253               <artifactId>maven-javadoc-plugin</artifactId>
254               <version>2.10.4</version>
255               <configuration>
256                 <failOnError>false</failOnError>
257                 <doclet>org.umlgraph.doclet.UmlGraphDoc</doclet>
258                 <docletArtifact>
259                   <groupId>org.umlgraph</groupId>
260                   <artifactId>umlgraph</artifactId>
261                   <version>5.6</version>
262                 </docletArtifact>
263                 <additionalparam>-views</additionalparam>
264                 <useStandardDocletOptions>true</useStandardDocletOptions>
265               </configuration>
266             </plugin>
267           </plugins>
268         </reporting>
269
270         <dependencies>
271                 <dependency>
272                         <groupId>ch.qos.logback</groupId>
273                         <artifactId>logback-classic</artifactId>
274                         <version>1.2.3</version>
275                         <scope>provided</scope>
276                 </dependency>
277         </dependencies>
278
279
280 </project>