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