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