Upversion to 1.4.0 - Dublin branch
[aai/champ.git] / champ-lib / champ-titan / 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"
22          xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
23          xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
24     <modelVersion>4.0.0</modelVersion>
25
26     <parent>
27         <groupId>org.onap.aai.champ</groupId>
28         <artifactId>champ-lib</artifactId>
29         <version>1.4.0-SNAPSHOT</version>
30     </parent>
31
32     <groupId>org.onap.aai.champ.champ-lib</groupId>
33     <artifactId>champ-titan</artifactId>
34
35     <properties>
36         <tinkerpop.version>3.0.1-incubating</tinkerpop.version>
37     </properties>
38
39     <dependencies>
40         <dependency>
41             <groupId>org.apache.tinkerpop</groupId>
42             <artifactId>tinkergraph-gremlin</artifactId>
43             <version>${tinkerpop.version}</version>
44         </dependency>
45
46         <dependency>
47             <groupId>org.onap.aai.champ.champ-lib</groupId>
48             <artifactId>champ-core</artifactId>
49             <version>${project.version}</version>
50         </dependency>
51
52         <dependency>
53             <groupId>org.onap.aai.champ.champ-lib</groupId>
54             <artifactId>champ-core</artifactId>
55             <version>${project.version}</version>
56             <type>test-jar</type>
57             <scope>test</scope>
58         </dependency>
59
60         <dependency>
61             <groupId>com.thinkaurelius.titan</groupId>
62             <artifactId>titan-cassandra</artifactId>
63             <version>1.0.0</version>
64             <optional>true</optional>
65             <exclusions>
66                 <exclusion>
67                     <groupId>org.apache.tinkerpop</groupId>
68                     <artifactId>gremlin-groovy</artifactId>
69                 </exclusion>
70                 <exclusion>
71                     <groupId>org.slf4j</groupId>
72                     <artifactId>slf4j-log4j12</artifactId>
73                 </exclusion>
74                 <exclusion>
75                     <groupId>ch.qos.logback</groupId>
76                     <artifactId>logback-classic</artifactId>
77                 </exclusion>
78                 <exclusion>
79                     <groupId>org.apache.tinkerpop</groupId>
80                     <artifactId>gremlin-core</artifactId>
81                 </exclusion>
82                 <exclusion>
83                     <groupId>org.apache.httpcomponents</groupId>
84                     <artifactId>httpclient</artifactId>
85                 </exclusion>
86                 <exclusion>
87                     <groupId>org.mindrot</groupId>
88                     <artifactId>jbcrypt</artifactId>
89                 </exclusion>
90                 <exclusion>
91                     <groupId>dom4j</groupId>
92                     <artifactId>dom4j</artifactId>
93                 </exclusion>
94             </exclusions>
95         </dependency>
96
97         <dependency>
98             <groupId>com.thinkaurelius.titan</groupId>
99             <artifactId>titan-hbase</artifactId>
100             <version>1.0.0</version>
101             <optional>true</optional>
102             <exclusions>
103                 <exclusion>
104                     <groupId>org.apache.tinkerpop</groupId>
105                     <artifactId>gremlin-groovy</artifactId>
106                 </exclusion>
107                 <exclusion>
108                     <groupId>org.slf4j</groupId>
109                     <artifactId>slf4j-log4j12</artifactId>
110                 </exclusion>
111                 <exclusion>
112                     <groupId>ch.qos.logback</groupId>
113                     <artifactId>logback-classic</artifactId>
114                 </exclusion>
115                 <exclusion>
116                     <groupId>org.apache.tinkerpop</groupId>
117                     <artifactId>gremlin-core</artifactId>
118                 </exclusion>
119             </exclusions>
120         </dependency>
121     </dependencies>
122
123     <build>
124         <plugins>
125             <plugin>
126                 <groupId>org.jacoco</groupId>
127                 <artifactId>jacoco-maven-plugin</artifactId>
128                 <version>0.7.9</version>
129                 <executions>
130                     <execution>
131                         <id>default-prepare-agent</id>
132                         <goals>
133                             <goal>prepare-agent</goal>
134                         </goals>
135                     </execution>
136                     <execution>
137                         <id>default-report</id>
138                         <phase>prepare-package</phase>
139                         <goals>
140                             <goal>report</goal>
141                         </goals>
142                     </execution>
143                     <execution>
144                         <id>default-check</id>
145                         <goals>
146                             <goal>check</goal>
147                         </goals>
148                         <configuration>
149                             <rules>
150                                 <!--  implementation is needed only for Maven 2  -->
151                                 <rule implementation="org.jacoco.maven.RuleConfiguration">
152                                     <element>BUNDLE</element>
153                                     <limits>
154                                         <!--  implementation is needed only for Maven 2  -->
155                                         <limit implementation="org.jacoco.report.check.Limit">
156                                             <counter>INSTRUCTION</counter>
157                                             <value>COVEREDRATIO</value>
158                                             <minimum>.15</minimum>
159                                         </limit>
160                                         <limit implementation="org.jacoco.report.check.Limit">
161                                             <counter>BRANCH</counter>
162                                             <value>COVEREDRATIO</value>
163                                             <minimum>.14</minimum>
164                                         </limit>
165                                         <limit implementation="org.jacoco.report.check.Limit">
166                                             <counter>COMPLEXITY</counter>
167                                             <value>COVEREDRATIO</value>
168                                             <minimum>.15</minimum>
169                                         </limit>
170                                         <limit implementation="org.jacoco.report.check.Limit">
171                                             <counter>LINE</counter>
172                                             <value>COVEREDRATIO</value>
173                                             <minimum>.18</minimum>
174                                         </limit>
175                                         <limit implementation="org.jacoco.report.check.Limit">
176                                             <counter>METHOD</counter>
177                                             <value>COVEREDRATIO</value>
178                                             <minimum>.10</minimum>
179                                         </limit>
180                                         <limit implementation="org.jacoco.report.check.Limit">
181                                             <counter>CLASS</counter>
182                                             <value>MISSEDCOUNT</value>
183                                             <maximum>2</maximum>
184                                         </limit>
185                                     </limits>
186                                 </rule>
187                             </rules>
188                         </configuration>
189                     </execution>
190                 </executions>
191             </plugin>
192             <plugin>
193                 <groupId>org.apache.maven.plugins</groupId>
194                 <artifactId>maven-deploy-plugin</artifactId>
195                 <configuration>
196                     <skip>true</skip>
197                 </configuration>
198             </plugin>
199             <plugin>
200                 <groupId>com.mycila</groupId>
201                 <artifactId>license-maven-plugin</artifactId>
202                 <version>3.0</version>
203                 <configuration>
204                     <header>License.txt</header>
205                     <includes>
206                         <include>**/*.java</include>
207                         <include>**/*.ksh</include>
208                         <include>**/*.sh</include>
209                         <include>**/*.ftl</include>
210                         <include>**/*.xsd</include>
211                         <include>**/*.xjb</include>
212                         <include>**/*.yml</include>
213                         <include>**/*.yaml</include>
214                         <include>**/aai*.xml</include>
215                         <include>**/*logback*.xml</include>
216                         <include>**/*aaiconfig*.properties</include>
217                         <include>**/*titan*.properties</include>
218                     </includes>
219                     <skipExistingHeaders>true</skipExistingHeaders>
220                 </configuration>
221                 <executions>
222                     <execution>
223                         <goals>
224                             <!-- Set goal to "format" to auto update license headers -->
225                             <goal>check</goal>
226                         </goals>
227                         <phase>process-sources</phase>
228                     </execution>
229                 </executions>
230             </plugin>
231         </plugins>
232     </build>
233 </project>