Remove eclipse checkstyle warnings
[policy/drools-pdp.git] / pom.xml
1 <!--
2   ============LICENSE_START=======================================================
3   ONAP Policy Engine - Drools PDP
4   ================================================================================
5   Copyright (C) 2017 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/maven-v4_0_0.xsd">
23         <modelVersion>4.0.0</modelVersion>
24
25         <parent>
26                 <groupId>org.onap.oparent</groupId>
27                 <artifactId>oparent</artifactId>
28                 <version>1.0.0-SNAPSHOT</version>
29                 <relativePath/>
30         </parent>
31
32         <groupId>org.onap.policy.drools-pdp</groupId>
33         <artifactId>drools-pdp</artifactId>
34         <version>1.1.0-SNAPSHOT</version>
35         <packaging>pom</packaging>
36         <name>Policy Engine - Drools PDP</name>
37
38         <description>The ONAP Policy Engine drools-based PDP Project</description>
39
40         <properties>
41                 <project.source.version>1.8</project.source.version>
42                 <project.target.version>1.8</project.target.version>
43                 <common-modules.version>1.1.0-SNAPSHOT</common-modules.version>
44                 <dmaap.version>0.2.12</dmaap.version>
45                 <cambria.version>0.0.1</cambria.version>
46                 <jersey.version>2.22.2</jersey.version>
47                 <jersey.swagger.version>1.5.13</jersey.swagger.version>
48                 <jackson.version>2.8.4</jackson.version>
49                 <http.client.version>4.5</http.client.version>
50                 <http.core.version>4.4.4</http.core.version>
51                 <logback.version>1.2.3</logback.version>
52                 <sonar.plugin.version>3.2</sonar.plugin.version>
53                 <jacoco.plugin.version>0.7.9</jacoco.plugin.version>
54   
55                 <sonar.language>java</sonar.language>
56                 <sonar.java.coveragePlugin>jacoco</sonar.java.coveragePlugin>
57                 <sonar.surefire.reportsPath>${project.build.directory}/surefire-reports</sonar.surefire.reportsPath>
58                 <sonar.jacoco.reportPath>${project.build.directory}/coverage-reports/jacoco.exec</sonar.jacoco.reportPath>
59                 <sonar.jacoco.reportMissing.force.zero>false</sonar.jacoco.reportMissing.force.zero>
60                 <sonar.projectVersion>${project.version}</sonar.projectVersion>
61
62                 <nexusproxy>https://nexus.onap.org</nexusproxy>
63                 <sitePath>/content/sites/site/${project.groupId}/${project.artifactId}/${project.version}</sitePath>
64                 <releases.path>content/repositories/releases/</releases.path>
65                 <snapshots.path>content/repositories/snapshots/</snapshots.path>
66                 <staging.path>content/repositories/staging/</staging.path>
67         </properties>
68
69         <modules>
70                 <module>policy-utils</module>
71                 <module>policy-core</module>
72                 <module>policy-endpoints</module>
73                 <module>policy-management</module>
74                 <module>feature-healthcheck</module>
75                 <module>feature-eelf</module>
76                 <module>packages</module>
77         </modules>
78
79         <distributionManagement>
80                 <repository>
81                         <id>ecomp-releases</id>
82                         <name>ONAP Release Repository</name>
83                         <url>${nexusproxy}/${releases.path}</url>
84                 </repository>
85                 <snapshotRepository>
86                         <id>ecomp-snapshots</id>
87                         <name>ONAP Snapshot Repository</name>
88                         <url>${nexusproxy}/${snapshots.path}</url>
89                 </snapshotRepository>
90                 <site>
91                         <id>ecomp-site</id>
92                         <url>dav:${nexusproxy}${sitePath}</url>
93                 </site>
94         </distributionManagement>
95
96         <dependencies/>
97
98         <dependencyManagement>
99                 <dependencies>
100                         <dependency>
101                                 <groupId>com.google.guava</groupId>
102                                 <artifactId>guava</artifactId>
103                                 <version>16.0.1</version>
104                         </dependency>
105                         <dependency>
106                                 <groupId>javax.ws.rs</groupId>
107                                 <artifactId>javax.ws.rs-api</artifactId>
108                                 <version>2.0.1</version>
109                         </dependency>
110                         <dependency>
111                                 <groupId>org.glassfish.hk2.external</groupId>
112                                 <artifactId>javax.inject</artifactId>
113                                 <version>2.4.0-b31</version>
114                         </dependency>
115                         <dependency>
116                                 <groupId>com.fasterxml.jackson.jaxrs</groupId>
117                                 <artifactId>jackson-jaxrs-base</artifactId>
118                                 <version>${jackson.version}</version>
119                         </dependency>
120                         <dependency>
121                                 <groupId>com.fasterxml.jackson.jaxrs</groupId>
122                                 <artifactId>jackson-jaxrs-json-provider</artifactId>
123                                 <version>${jackson.version}</version>
124                         </dependency>
125                         <dependency>
126                                 <groupId>com.fasterxml.jackson.dataformat</groupId>
127                                 <artifactId>jackson-dataformat-xml</artifactId>
128                                 <version>${jackson.version}</version>
129                         </dependency>
130                         <dependency>
131                                 <groupId>com.fasterxml.jackson.dataformat</groupId>
132                                 <artifactId>jackson-dataformat-yaml</artifactId>
133                                 <version>${jackson.version}</version>
134                         </dependency>
135                         <dependency>
136                                 <groupId>com.fasterxml.jackson.datatype</groupId>
137                                 <artifactId>jackson-datatype-joda</artifactId>
138                                 <version>${jackson.version}</version>
139                         </dependency>
140                         <dependency>
141                                 <groupId>org.glassfish.jersey.containers</groupId>
142                                 <artifactId>jersey-common</artifactId>
143                                 <version>${jersey.version}</version>
144                         </dependency>
145                         <dependency>
146                                 <groupId>org.glassfish.jersey.containers</groupId>
147                                 <artifactId>jersey-container-servlet-core</artifactId>
148                                 <version>${jersey.version}</version>
149                         </dependency>
150                         <dependency>
151                                 <groupId>io.swagger</groupId>
152                                 <artifactId>swagger-jersey2-jaxrs</artifactId>
153                                 <version>${jersey.swagger.version}</version>
154                         </dependency>
155                         <dependency>
156                                 <groupId>org.apache.httpcomponents</groupId>
157                                 <artifactId>httpclient</artifactId>
158                                 <version>${http.client.version}</version>
159                         </dependency>
160                         <dependency>
161                                 <groupId>org.apache.httpcomponents</groupId>
162                                 <artifactId>httpcore</artifactId>
163                                 <version>${http.core.version}</version>
164                         </dependency>
165                         <dependency>
166                                 <groupId>ch.qos.logback</groupId>
167                                 <artifactId>logback-classic</artifactId>
168                                 <version>${logback.version}</version>
169                         </dependency>
170                 </dependencies>
171         </dependencyManagement>
172         
173         <build>
174                 <plugins>
175                         <plugin>
176                                 <groupId>org.sonatype.plugins</groupId>
177                                 <artifactId>nexus-staging-maven-plugin</artifactId>
178                                 <version>1.6.7</version>
179                                 <extensions>true</extensions>
180                                 <configuration>
181                                         <nexusUrl>${nexusproxy}</nexusUrl>
182                                         <stagingProfileId>176c31dfe190a</stagingProfileId>
183                                         <serverId>ecomp-staging</serverId>
184                                 </configuration>
185                         </plugin>
186                         <plugin>
187                                 <groupId>org.apache.maven.plugins</groupId>
188                                 <artifactId>maven-deploy-plugin</artifactId>
189                                 <version>2.8</version> <!-- This version supports the "deployAtEnd" parameter -->
190                                 <configuration>
191                                         <skip />
192                                 </configuration>
193                         </plugin>
194                         <plugin>
195                                 <groupId>org.apache.maven.plugins</groupId>
196                                 <artifactId>maven-compiler-plugin</artifactId>
197                                 <version>3.0</version>
198                                 <configuration>
199                                         <encoding>${project.encoding}</encoding>
200                                         <source>${project.source.version}</source>
201                                         <target>${project.target.version}</target>
202                                 </configuration>
203                         </plugin>
204                         <plugin>
205                                 <groupId>org.apache.maven.plugins</groupId>
206                                 <artifactId>maven-resources-plugin</artifactId>
207                                 <version>2.6</version>
208                                 <configuration>
209                                         <encoding>${project.encoding}</encoding>
210                                 </configuration>
211                         </plugin>
212                         <!-- 
213                                 license plugin
214                              Run 
215                                 mvn clean 
216                              before running from the command line
217                                 mvn license:update-file-header
218                         -->
219                         <plugin>
220                                 <groupId>org.codehaus.mojo</groupId>
221                                 <artifactId>license-maven-plugin</artifactId>
222                                 <version>1.9</version>
223                                 <configuration>
224                                         <extraExtensions>
225                                                 <!-- Used to add or change the header style <fileTypeYouAreMapping> 
226                                                         fileTypeMappedInto </fileTypeYouAreMapping> -->
227                                                 <drl>java</drl>
228                                                 <ccf>properties</ccf>
229
230                                                 <!-- Because the typical sql comment type confuses the update algorithm -->
231                                                 <sql>java</sql>
232                                         </extraExtensions>
233                                         <licenseName>apache_v2</licenseName>
234
235                                         <inceptionYear>2017</inceptionYear>
236                                         <organizationName>AT&amp;T Intellectual Property. All rights reserved.</organizationName>
237
238                                         <!-- Once you have established the tags and delimiter, they cannot be 
239                                                 changed -->
240                                         <processStartTag>============LICENSE_START=======================================================</processStartTag>
241                                         <processEndTag>============LICENSE_END=========================================================</processEndTag>
242                                         <sectionDelimiter>================================================================================</sectionDelimiter>
243                                         <addJavaLicenseAfterPackage>false</addJavaLicenseAfterPackage>
244                                         <canUpdateCopyright>true</canUpdateCopyright>
245                                         <canUpdateDescription>true</canUpdateDescription>
246                                         <canUpdateLicense>true</canUpdateLicense>
247                                         <emptyLineAfterHeader>true</emptyLineAfterHeader>
248                                         <roots>
249                                                 <!-- Default is src, target/generated-sources, target/processed-sources -->
250
251                                                 <!-- Everything except the files in the excludes section -->
252                                                 <root>/</root>
253                                         </roots>
254                                         <excludes>
255                                                 <!-- Files which are to be excluded. The pom.xml is excluded because 
256                                                         the start/end tags and the delimiters are in the body of the file. This confuses 
257                                                         the algorithm. So, this file must be manually updated with a license header. -->
258                                                 <exclude>pom.xml</exclude>
259                                         </excludes>
260                                 </configuration>
261                         </plugin>
262                         <plugin>
263                           <groupId>org.apache.maven.plugins</groupId>
264                           <artifactId>maven-site-plugin</artifactId>
265                           <version>3.6</version>
266                           <dependencies>
267                             <dependency>
268                               <groupId>org.apache.maven.wagon</groupId>
269                               <artifactId>wagon-webdav-jackrabbit</artifactId>
270                               <version>2.10</version>
271                             </dependency>
272                           </dependencies>
273                         </plugin>
274
275                         <plugin>
276                                 <groupId>org.jacoco</groupId>
277                                 <artifactId>jacoco-maven-plugin</artifactId>
278                         </plugin>
279
280                         <plugin>
281                                 <groupId>org.codehaus.mojo</groupId>
282                                 <artifactId>sonar-maven-plugin</artifactId>
283                         </plugin>
284                 </plugins>
285                 <pluginManagement>
286                         <plugins>
287                                 <plugin>
288                                         <groupId>org.jacoco</groupId>
289                                         <artifactId>jacoco-maven-plugin</artifactId>
290                                         <version>${jacoco.plugin.version}</version>
291                                         <configuration>
292                                                 <dumpOnExit>true</dumpOnExit>
293                                                 <includes>
294                                                         <include>org.onap.*</include>
295                                                 </includes>
296                                         </configuration>
297                                         <executions>
298                                                 <execution>
299                                                         <id>jacoco-initialize-unit-tests</id>
300                                                         <goals>
301                                                                 <goal>prepare-agent</goal>
302                                                         </goals>
303                                                         <configuration>
304                                                                 <destFile>${project.build.directory}/coverage-reports/jacoco.exec</destFile>
305                                                         </configuration>
306                                                 </execution>
307                                         </executions>
308                                 </plugin>
309                                 <plugin>
310                                         <groupId>org.codehaus.mojo</groupId>
311                                         <artifactId>sonar-maven-plugin</artifactId>
312                                         <version>${sonar.plugin.version}</version>
313                                 </plugin>
314                <plugin>
315                     <groupId>org.eclipse.m2e</groupId>
316                     <artifactId>lifecycle-mapping</artifactId>
317                     <version>1.0.0</version>
318                     <configuration>
319                         <lifecycleMappingMetadata>
320                             <pluginExecutions>
321                                 <pluginExecution>
322                                     <pluginExecutionFilter>
323                                         <groupId>org.apache.maven.plugins</groupId>
324                                         <artifactId>maven-checkstyle-plugin</artifactId>
325                                         <versionRange>2.17,)</versionRange>
326                                         <goals>
327                                             <goal>check</goal>
328                                         </goals>
329                                     </pluginExecutionFilter>
330                                     <action>
331                                         <ignore />
332                                     </action>
333                                 </pluginExecution>
334                             </pluginExecutions>
335                         </lifecycleMappingMetadata>
336                     </configuration>
337                 </plugin>
338                         </plugins>
339                 </pluginManagement>
340         </build>
341         <reporting>
342           <plugins>
343             <plugin>
344               <groupId>org.apache.maven.plugins</groupId>
345               <artifactId>maven-javadoc-plugin</artifactId>
346               <version>2.10.4</version>
347               <configuration>
348                 <failOnError>false</failOnError>
349                 <doclet>org.umlgraph.doclet.UmlGraphDoc</doclet>
350                 <docletArtifact>
351                   <groupId>org.umlgraph</groupId>
352                   <artifactId>umlgraph</artifactId>
353                   <version>5.6</version>
354                 </docletArtifact>
355                 <additionalparam>-views</additionalparam>
356                 <useStandardDocletOptions>true</useStandardDocletOptions>
357               </configuration>
358             </plugin>
359           </plugins>
360         </reporting>
361
362 </project>