4f82dff519bc1c6cf2c311fe092a17e66ce1c2a2
[aai/champ.git] / champ-lib / pom.xml
1 <!--
2 ============LICENSE_START=======================================================
3 org.onap.aai
4 ================================================================================
5 Copyright © 2017-2018 AT&T Intellectual Property. All rights reserved.
6 Copyright © 2017-2018 Amdocs
7 ================================================================================
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 <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     <modelVersion>4.0.0</modelVersion>
24
25     <groupId>org.onap.aai</groupId>
26     <artifactId>champ-lib</artifactId>
27     <packaging>pom</packaging>
28     <version>1.2.0-SNAPSHOT</version>
29
30     <parent>
31         <groupId>org.onap.aai</groupId>
32         <artifactId>champ</artifactId>
33         <version>1.2.0-SNAPSHOT</version>
34     </parent>
35
36     <modules>
37         <module>champ-core</module>
38         <module>champ-titan</module>
39         <module>champ-janus</module>
40     </modules>
41
42     <properties>
43         <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
44         <event.client.version>1.2.1</event.client.version>
45
46         <!--<absoluteDistFilesRoot>/appl/${project.artifactId}</absoluteDistFilesRoot>-->
47
48         <!--&lt;!&ndash; For NO Versioning, REMOVE the /${project.version} from the <distFilesRoot>-->
49         <!--property, below. PLEASE, NOTE: If your ${project.version} is a "-SNAPSHOT"-->
50         <!--version, THIS will be used as your directory structure. If you do NOT want-->
51         <!--this, simply remove the "-SNAPSHOT" from your <version> declaration at the-->
52         <!--top of pom.xml &ndash;&gt;-->
53         <!--<distFilesRoot>/appl/${project.artifactId}/${project.version}</distFilesRoot>-->
54     </properties>
55
56     <dependencyManagement>
57         <dependencies>
58             <dependency>
59                 <groupId>org.onap.aai.event-client</groupId>
60                 <artifactId>event-client-api</artifactId>
61                 <version>${event.client.version}</version>
62             </dependency>
63             <dependency>
64                 <groupId>org.onap.aai.event-client</groupId>
65                 <artifactId>event-client-dmaap</artifactId>
66                 <version>${event.client.version}</version>
67             </dependency>
68             <dependency>
69                 <groupId>org.onap.aai.event-client</groupId>
70                 <artifactId>event-client-kafka</artifactId>
71                 <version>${event.client.version}</version>
72             </dependency>
73         </dependencies>
74     </dependencyManagement>
75
76     <dependencies>
77         <dependency>
78             <groupId>junit</groupId>
79             <artifactId>junit</artifactId>
80             <version>4.12</version>
81             <scope>test</scope>
82         </dependency>
83         <dependency>
84             <groupId>ch.qos.logback</groupId>
85             <artifactId>logback-classic</artifactId>
86             <version>1.2.1</version>
87             <optional>true</optional>
88         </dependency>
89         <dependency>
90             <groupId>org.apache.hbase</groupId>
91             <artifactId>hbase-client</artifactId>
92             <version>0.98.4-hadoop2</version>
93             <exclusions>
94                 <exclusion>
95                     <groupId>org.slf4j</groupId>
96                     <artifactId>slf4j-log4j12</artifactId>
97                 </exclusion>
98                 <exclusion>
99                     <groupId>com.google.guava</groupId>
100                     <artifactId>guava</artifactId>
101                 </exclusion>
102             </exclusions>
103         </dependency>
104         <dependency>
105             <groupId>jdk.tools</groupId>
106             <artifactId>jdk.tools</artifactId>
107             <version>1.8</version>
108             <scope>system</scope>
109             <systemPath>${java.home}/../lib/tools.jar</systemPath>
110         </dependency>
111         <dependency>
112             <groupId>org.jacoco</groupId>
113             <artifactId>org.jacoco.agent</artifactId>
114             <version>0.7.9</version>
115             <classifier>runtime</classifier>
116             <scope>test</scope>
117         </dependency>
118     </dependencies>
119
120     <build>
121         <plugins>
122             <plugin>
123                 <groupId>org.jacoco</groupId>
124                 <artifactId>jacoco-maven-plugin</artifactId>
125                 <version>0.7.9</version>
126                 <configuration>
127                     <excludes>
128                         <!-- These three need to be included again at some point -->
129                         <exclude>**/AbstractGremlinChampGraph*</exclude>
130                         <exclude>**/DseChampGraphImpl*</exclude>
131                         <exclude>**/DseChampformer*</exclude>
132                         <!-- Permanently excluded, not worth testing -->
133                         <exclude>**/ChampAPIPerformanceTest*</exclude>
134                     </excludes>
135                 </configuration>
136                 <executions>
137                     <execution>
138                         <id>default-prepare-agent</id>
139                         <goals>
140                             <goal>prepare-agent</goal>
141                         </goals>
142                     </execution>
143                     <execution>
144                         <id>default-report</id>
145                         <phase>prepare-package</phase>
146                         <goals>
147                             <goal>report</goal>
148                         </goals>
149                     </execution>
150                     <execution>
151                         <id>default-check</id>
152                         <goals>
153                             <goal>check</goal>
154                         </goals>
155                         <configuration>
156                             <rules>
157                                 <!--  implementation is needed only for Maven 2  -->
158                                 <rule implementation="org.jacoco.maven.RuleConfiguration">
159                                     <element>BUNDLE</element>
160                                     <limits>
161                                         <!--  implementation is needed only for Maven 2  -->
162                                         <limit implementation="org.jacoco.report.check.Limit">
163                                             <counter>INSTRUCTION</counter>
164                                             <value>COVEREDRATIO</value>
165                                             <minimum>.15</minimum>
166                                         </limit>
167                                         <limit implementation="org.jacoco.report.check.Limit">
168                                             <counter>BRANCH</counter>
169                                             <value>COVEREDRATIO</value>
170                                             <minimum>.12</minimum>
171                                         </limit>
172                                         <limit implementation="org.jacoco.report.check.Limit">
173                                             <counter>COMPLEXITY</counter>
174                                             <value>COVEREDRATIO</value>
175                                             <minimum>.15</minimum>
176                                         </limit>
177                                         <limit implementation="org.jacoco.report.check.Limit">
178                                             <counter>LINE</counter>
179                                             <value>COVEREDRATIO</value>
180                                             <minimum>.10</minimum>
181                                         </limit>
182                                         <limit implementation="org.jacoco.report.check.Limit">
183                                             <counter>METHOD</counter>
184                                             <value>COVEREDRATIO</value>
185                                             <minimum>.17</minimum>
186                                         </limit>
187                                         <limit implementation="org.jacoco.report.check.Limit">
188                                             <counter>CLASS</counter>
189                                             <value>MISSEDCOUNT</value>
190                                             <maximum>5</maximum>
191                                         </limit>
192                                     </limits>
193                                 </rule>
194                             </rules>
195                         </configuration>
196                     </execution>
197                 </executions>
198             </plugin>
199             <plugin>
200                 <groupId>org.apache.maven.plugins</groupId>
201                 <artifactId>maven-assembly-plugin</artifactId>
202                 <version>3.0.0</version>
203                 <configuration>
204                     <descriptorRefs>
205                         <descriptorRef>jar-with-dependencies</descriptorRef>
206                     </descriptorRefs>
207                 </configuration>
208                 <executions>
209                     <execution>
210                         <id>make-jar-with-dependencies</id>
211                         <phase>package</phase>
212                         <goals>
213                             <goal>single</goal>
214                         </goals>
215                     </execution>
216                 </executions>
217             </plugin>
218             <plugin>
219                 <groupId>org.apache.maven.plugins</groupId>
220                 <artifactId>maven-compiler-plugin</artifactId>
221                 <version>3.6.1</version>
222                 <configuration>
223                     <source>1.8</source>
224                     <target>1.8</target>
225                 </configuration>
226             </plugin>
227             <plugin>
228                 <artifactId>maven-release-plugin</artifactId>
229                 <version>2.4.2</version>
230                 <dependencies>
231                     <dependency>
232                         <groupId>org.apache.maven.scm</groupId>
233                         <artifactId>maven-scm-provider-gitexe</artifactId>
234                         <version>1.8.1</version>
235                     </dependency>
236                 </dependencies>
237             </plugin>
238             <plugin>
239                 <groupId>org.apache.maven.plugins</groupId>
240                 <artifactId>maven-source-plugin</artifactId>
241                 <version>3.0.1</version>
242                 <executions>
243                     <execution>
244                         <id>attach-sources</id>
245                         <goals>
246                             <goal>jar</goal>
247                         </goals>
248                     </execution>
249                 </executions>
250             </plugin>
251             <plugin>
252                 <groupId>org.apache.maven.plugins</groupId>
253                 <artifactId>maven-javadoc-plugin</artifactId>
254                 <version>2.9.1</version>
255                 <executions>
256                     <execution>
257                         <id>attach-javadocs</id>
258                         <goals>
259                             <goal>jar</goal>
260                         </goals>
261                     </execution>
262                 </executions>
263             </plugin>
264             <plugin>
265                 <groupId>org.apache.maven.plugins</groupId>
266                 <artifactId>maven-surefire-plugin</artifactId>
267                 <version>2.12.2</version>
268                 <configuration>
269                     <systemPropertyVariables>
270                         <jacoco-agent.destfile>target/jacoco.exec</jacoco-agent.destfile>
271                     </systemPropertyVariables>
272                 </configuration>
273             </plugin>
274             <plugin>
275                 <groupId>org.apache.maven.plugins</groupId>
276                 <artifactId>maven-deploy-plugin</artifactId>
277                 <configuration>
278                     <skip>true</skip>
279                 </configuration>
280             </plugin>
281             <!-- Uncomment to add a license header to source files
282             <plugin>
283                 <groupId>com.mycila</groupId>
284                 <artifactId>license-maven-plugin</artifactId>
285                 <version>3.0</version>
286                 <configuration>
287                     <header>License.txt</header>
288                     <includes>
289                         <include>**/*.java</include>
290                         <include>**/*.ksh</include>
291                         <include>**/*.sh</include>
292                         <include>**/*.ftl</include>
293                         <include>**/*.xsd</include>
294                         <include>**/*.xjb</include>
295                         <include>**/*.yml</include>
296                         <include>**/*.yaml</include>
297                         <include>**/aai*.xml</include>
298                         <include>**/*logback*.xml</include>
299                         <include>**/*aaiconfig*.properties</include>
300                         <include>**/*titan*.properties</include>
301                     </includes>
302                 </configuration>
303                 <executions>
304                     <execution>
305                         <goals>
306                             <goal>format</goal>
307                         </goals>
308                         <phase>process-sources</phase>
309                     </execution>
310                 </executions>
311             </plugin>
312             -->
313         </plugins>
314     </build>
315 </project>