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