Organise pom structure into corrected hierarchy
[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.2.1-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             </exclusions>
87         </dependency>
88
89         <dependency>
90             <groupId>com.thinkaurelius.titan</groupId>
91             <artifactId>titan-hbase</artifactId>
92             <version>1.0.0</version>
93             <optional>true</optional>
94             <exclusions>
95                 <exclusion>
96                     <groupId>org.apache.tinkerpop</groupId>
97                     <artifactId>gremlin-groovy</artifactId>
98                 </exclusion>
99                 <exclusion>
100                     <groupId>org.slf4j</groupId>
101                     <artifactId>slf4j-log4j12</artifactId>
102                 </exclusion>
103                 <exclusion>
104                     <groupId>ch.qos.logback</groupId>
105                     <artifactId>logback-classic</artifactId>
106                 </exclusion>
107                 <exclusion>
108                     <groupId>org.apache.tinkerpop</groupId>
109                     <artifactId>gremlin-core</artifactId>
110                 </exclusion>
111             </exclusions>
112         </dependency>
113     </dependencies>
114
115     <build>
116         <plugins>
117             <plugin>
118                 <groupId>org.jacoco</groupId>
119                 <artifactId>jacoco-maven-plugin</artifactId>
120                 <version>0.7.9</version>
121                 <executions>
122                     <execution>
123                         <id>default-prepare-agent</id>
124                         <goals>
125                             <goal>prepare-agent</goal>
126                         </goals>
127                     </execution>
128                     <execution>
129                         <id>default-report</id>
130                         <phase>prepare-package</phase>
131                         <goals>
132                             <goal>report</goal>
133                         </goals>
134                     </execution>
135                     <execution>
136                         <id>default-check</id>
137                         <goals>
138                             <goal>check</goal>
139                         </goals>
140                         <configuration>
141                             <rules>
142                                 <!--  implementation is needed only for Maven 2  -->
143                                 <rule implementation="org.jacoco.maven.RuleConfiguration">
144                                     <element>BUNDLE</element>
145                                     <limits>
146                                         <!--  implementation is needed only for Maven 2  -->
147                                         <limit implementation="org.jacoco.report.check.Limit">
148                                             <counter>INSTRUCTION</counter>
149                                             <value>COVEREDRATIO</value>
150                                             <minimum>.15</minimum>
151                                         </limit>
152                                         <limit implementation="org.jacoco.report.check.Limit">
153                                             <counter>BRANCH</counter>
154                                             <value>COVEREDRATIO</value>
155                                             <minimum>.14</minimum>
156                                         </limit>
157                                         <limit implementation="org.jacoco.report.check.Limit">
158                                             <counter>COMPLEXITY</counter>
159                                             <value>COVEREDRATIO</value>
160                                             <minimum>.15</minimum>
161                                         </limit>
162                                         <limit implementation="org.jacoco.report.check.Limit">
163                                             <counter>LINE</counter>
164                                             <value>COVEREDRATIO</value>
165                                             <minimum>.18</minimum>
166                                         </limit>
167                                         <limit implementation="org.jacoco.report.check.Limit">
168                                             <counter>METHOD</counter>
169                                             <value>COVEREDRATIO</value>
170                                             <minimum>.10</minimum>
171                                         </limit>
172                                         <limit implementation="org.jacoco.report.check.Limit">
173                                             <counter>CLASS</counter>
174                                             <value>MISSEDCOUNT</value>
175                                             <maximum>2</maximum>
176                                         </limit>
177                                     </limits>
178                                 </rule>
179                             </rules>
180                         </configuration>
181                     </execution>
182                 </executions>
183             </plugin>
184             <plugin>
185                 <groupId>org.apache.maven.plugins</groupId>
186                 <artifactId>maven-deploy-plugin</artifactId>
187                 <configuration>
188                     <skip>true</skip>
189                 </configuration>
190             </plugin>
191             <plugin>
192                 <groupId>com.mycila</groupId>
193                 <artifactId>license-maven-plugin</artifactId>
194                 <version>3.0</version>
195                 <configuration>
196                     <header>License.txt</header>
197                     <includes>
198                         <include>**/*.java</include>
199                         <include>**/*.ksh</include>
200                         <include>**/*.sh</include>
201                         <include>**/*.ftl</include>
202                         <include>**/*.xsd</include>
203                         <include>**/*.xjb</include>
204                         <include>**/*.yml</include>
205                         <include>**/*.yaml</include>
206                         <include>**/aai*.xml</include>
207                         <include>**/*logback*.xml</include>
208                         <include>**/*aaiconfig*.properties</include>
209                         <include>**/*titan*.properties</include>
210                     </includes>
211                     <skipExistingHeaders>true</skipExistingHeaders>
212                 </configuration>
213                 <executions>
214                     <execution>
215                         <goals>
216                             <!-- Set goal to "format" to auto update license headers -->
217                             <goal>check</goal>
218                         </goals>
219                         <phase>process-sources</phase>
220                     </execution>
221                 </executions>
222             </plugin>
223         </plugins>
224     </build>
225 </project>