[AAI-80 Amsterdam] checking in source code
[aai/champ.git] / pom.xml
1 <project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
2         <modelVersion>4.0.0</modelVersion>
3         <groupId>org.openecomp.aai</groupId>
4         <artifactId>champ</artifactId>
5         <version>1.1.0-SNAPSHOT</version>
6         <properties>
7                 <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
8                 <tinkerpop.version>3.0.1-incubating</tinkerpop.version>
9                 <nexusproxy>https://nexus.onap.org/</nexusproxy>
10                 <sitePath>/content/sites/site/org/onap/aai/${project.artifactId}/${project.version}</sitePath>
11                 <sonar.language>java</sonar.language>
12                 <sonar.java.coveragePlugin>jacoco</sonar.java.coveragePlugin>
13                 <sonar.surefire.reportsPath>${project.build.directory}/surefire-reports</sonar.surefire.reportsPath>
14                 <sonar.jacoco.reportPath>${project.build.directory}/jacoco.exec</sonar.jacoco.reportPath>
15                 <sonar.jacoco.reportMissing.force.zero>false</sonar.jacoco.reportMissing.force.zero>
16                 <sonar.projectVersion>${project.version}</sonar.projectVersion>
17         </properties>
18         <distributionManagement>
19                 <repository>
20                         <id>ecomp-releases</id>
21                         <name>ECOMP Release Repository</name>
22                         <url>${nexusproxy}/content/repositories/releases/</url>
23                 </repository>
24                 <snapshotRepository>
25                         <id>ecomp-snapshots</id>
26                         <name>ECOMP Snapshot Repository</name>
27                         <url>${nexusproxy}/content/repositories/snapshots/</url>
28                 </snapshotRepository>
29                 <site>
30                         <id>ecomp-site</id>
31                         <url>dav:${nexusproxy}${sitePath}</url>
32                 </site>
33         </distributionManagement>
34         <dependencies>
35                 <dependency>
36                         <groupId>junit</groupId>
37                         <artifactId>junit</artifactId>
38                         <version>4.12</version>
39                         <scope>test</scope>
40                 </dependency>
41                 <dependency>
42                         <groupId>ch.qos.logback</groupId>
43                         <artifactId>logback-classic</artifactId>
44                         <version>1.2.1</version>
45                         <optional>true</optional>
46                 </dependency>
47                 <dependency>
48                         <groupId>org.apache.tinkerpop</groupId>
49                         <artifactId>tinkergraph-gremlin</artifactId> 
50                         <version>${tinkerpop.version}</version>
51                 </dependency>
52                 <dependency>
53                         <groupId>org.apache.tinkerpop</groupId>
54                         <artifactId>gremlin-core</artifactId> 
55                         <version>${tinkerpop.version}</version>
56                         <exclusions>
57                                 <exclusion>
58                                         <groupId>org.slf4j</groupId>
59                                         <artifactId>slf4j-log4j12</artifactId>
60                                 </exclusion>
61                                 <exclusion>
62                                         <groupId>org.slf4j</groupId>
63                                         <artifactId>jcl-over-slf4j</artifactId>
64                                 </exclusion>
65                         </exclusions>
66                 </dependency>
67                 <dependency>
68                         <groupId>com.thinkaurelius.titan</groupId>
69                         <artifactId>titan-cassandra</artifactId>
70                         <version>1.0.0</version>
71                         <optional>true</optional>
72                         <exclusions>
73                                 <exclusion>
74                                         <groupId>org.apache.tinkerpop</groupId>
75                                         <artifactId>gremlin-groovy</artifactId>
76                                 </exclusion>
77                                 <exclusion>
78                                         <groupId>org.slf4j</groupId>
79                                         <artifactId>slf4j-log4j12</artifactId>
80                                 </exclusion>
81                                 <exclusion>
82                                         <groupId>ch.qos.logback</groupId>
83                                         <artifactId>logback-classic</artifactId>
84                                 </exclusion>
85                                 <exclusion>
86                                         <groupId>org.apache.tinkerpop</groupId>
87                                         <artifactId>gremlin-core</artifactId>
88                                 </exclusion>
89                         </exclusions>
90                 </dependency>
91                 <dependency>
92                         <groupId>com.thinkaurelius.titan</groupId>
93                         <artifactId>titan-hbase</artifactId>
94                         <version>1.0.0</version>
95                         <optional>true</optional>
96                         <exclusions>
97                                 <exclusion>
98                                         <groupId>org.apache.tinkerpop</groupId>
99                                         <artifactId>gremlin-groovy</artifactId>
100                                 </exclusion>
101                                 <exclusion>
102                                         <groupId>org.slf4j</groupId>
103                                         <artifactId>slf4j-log4j12</artifactId>
104                                 </exclusion>
105                                 <exclusion>
106                                         <groupId>ch.qos.logback</groupId>
107                                         <artifactId>logback-classic</artifactId>
108                                 </exclusion>
109                                 <exclusion>
110                                         <groupId>org.apache.tinkerpop</groupId>
111                                         <artifactId>gremlin-core</artifactId>
112                                 </exclusion>
113                         </exclusions>
114                 </dependency>
115                 <dependency>
116                         <groupId>org.apache.hbase</groupId>
117                         <artifactId>hbase-client</artifactId>
118                         <version>0.98.4-hadoop2</version>
119                         <exclusions>
120                                 <exclusion>
121                                         <groupId>org.slf4j</groupId>
122                                         <artifactId>slf4j-log4j12</artifactId>
123                                 </exclusion>
124                                 <exclusion>
125                                         <groupId>com.google.guava</groupId>
126                                         <artifactId>guava</artifactId>
127                                 </exclusion>
128                         </exclusions>
129                 </dependency>
130                 <dependency>
131                         <groupId>jdk.tools</groupId>
132                         <artifactId>jdk.tools</artifactId>
133                         <version>1.8</version>
134                         <scope>system</scope>
135                         <systemPath>${JAVA_HOME}/lib/tools.jar</systemPath>
136                 </dependency>
137                 <dependency>
138                         <groupId>org.jacoco</groupId>
139                         <artifactId>org.jacoco.agent</artifactId>
140                         <version>0.7.9</version>
141                         <classifier>runtime</classifier>
142                         <scope>test</scope>
143                 </dependency>
144
145         <!-- Event Bus Client. -->
146         <dependency>
147             <groupId>com.att.nsa</groupId>
148             <artifactId>cambriaClient</artifactId>
149             <version>0.0.1</version>
150         </dependency>
151         
152         <dependency>
153             <groupId>org.apache.httpcomponents</groupId>
154             <artifactId>httpclient</artifactId>
155             <version>4.5</version>
156         </dependency>
157         
158         </dependencies>
159         <build>
160                 <plugins>
161                         <plugin>
162                                 <groupId>org.codehaus.mojo</groupId>
163                                 <artifactId>sonar-maven-plugin</artifactId>
164                                 <version>3.2</version>
165                         </plugin>
166                         <plugin>
167                                 <groupId>org.jacoco</groupId>
168                                 <artifactId>jacoco-maven-plugin</artifactId>
169                                 <version>0.7.9</version>
170                                 <configuration>
171                                         <excludes>
172                                                 <!-- These three need to be included again at some point -->
173                                                 <exclude>**/AbstractGremlinChampGraph*</exclude>
174                                                 <exclude>**/DseChampGraphImpl*</exclude>
175                                                 <exclude>**/DseChampformer*</exclude>
176                                                 <!-- Permanently excluded, not worth testing -->
177                                                 <exclude>**/ChampAPIPerformanceTest*</exclude>
178                                         </excludes>
179                                 </configuration>
180                                 <executions>
181                                         <execution>
182                                                 <id>default-prepare-agent</id>
183                                                 <goals>
184                                                         <goal>prepare-agent</goal>
185                                                 </goals>
186                                         </execution>
187                                         <execution>
188                                                 <id>default-report</id>
189                                                 <phase>prepare-package</phase>
190                                                 <goals>
191                                                         <goal>report</goal>
192                                                 </goals>
193                                         </execution>
194                                         <execution>
195                                                 <id>default-check</id>
196                                                 <goals>
197                                                         <goal>check</goal>
198                                                 </goals>
199                                                 <configuration>
200                                                         <rules>
201                                                                 <!--  implementation is needed only for Maven 2  -->
202                                                                 <rule implementation="org.jacoco.maven.RuleConfiguration">
203                                                                         <element>BUNDLE</element>
204                                                                         <limits>
205                                                                                 <!--  implementation is needed only for Maven 2  -->
206                                                                                 <limit implementation="org.jacoco.report.check.Limit">
207                                                                                         <counter>INSTRUCTION</counter>
208                                                                                         <value>COVEREDRATIO</value>
209                                                                                         <minimum>.75</minimum>
210                                                                                 </limit>
211                                                                                 <limit implementation="org.jacoco.report.check.Limit">
212                                                                                         <counter>BRANCH</counter>
213                                                                                         <value>COVEREDRATIO</value>
214                                                                                         <minimum>.74</minimum>
215                                                                                 </limit>
216                                                                                 <limit implementation="org.jacoco.report.check.Limit">
217                                                                                         <counter>COMPLEXITY</counter>
218                                                                                         <value>COVEREDRATIO</value>
219                                                                                         <minimum>.75</minimum>
220                                                                                 </limit>
221                                                                                 <limit implementation="org.jacoco.report.check.Limit">
222                                                                                         <counter>LINE</counter>
223                                                                                         <value>COVEREDRATIO</value>
224                                                                                         <minimum>.80</minimum>
225                                                                                 </limit>
226                                                                                 <limit implementation="org.jacoco.report.check.Limit">
227                                                                                         <counter>METHOD</counter>
228                                                                                         <value>COVEREDRATIO</value>
229                                                                                         <minimum>.90</minimum>
230                                                                                 </limit>
231                                                                                 <limit implementation="org.jacoco.report.check.Limit">
232                                                                                         <counter>CLASS</counter>
233                                                                                         <value>MISSEDCOUNT</value>
234                                                                                         <maximum>0</maximum>
235                                                                                 </limit>
236                                                                         </limits>
237                                                                 </rule>
238                                                         </rules>
239                                                 </configuration>
240                                         </execution>
241                                 </executions>
242                         </plugin>
243                         <plugin>
244                                 <groupId>org.apache.maven.plugins</groupId>
245                                 <artifactId>maven-assembly-plugin</artifactId>
246                                 <version>3.0.0</version>
247                                 <configuration>
248                                         <descriptorRefs>
249                                                 <descriptorRef>jar-with-dependencies</descriptorRef>
250                                         </descriptorRefs>
251                                 </configuration>
252                                 <executions>
253                                         <execution>
254                                                 <id>make-jar-with-dependencies</id>
255                                                 <phase>package</phase>
256                                                 <goals>
257                                                         <goal>single</goal>
258                                                 </goals>
259                                         </execution>
260                                 </executions>
261                         </plugin>
262                         <plugin>
263                                 <groupId>org.apache.maven.plugins</groupId>
264                                 <artifactId>maven-compiler-plugin</artifactId>
265                                 <version>3.6.1</version>
266                                 <configuration>
267                                         <source>1.8</source>
268                                         <target>1.8</target>
269                                 </configuration>
270                         </plugin>
271                         <plugin>
272                                 <artifactId>maven-release-plugin</artifactId>
273                                 <version>2.4.2</version>
274                                 <dependencies>
275                                         <dependency>
276                                                 <groupId>org.apache.maven.scm</groupId>
277                                                 <artifactId>maven-scm-provider-gitexe</artifactId>
278                                                 <version>1.8.1</version>
279                                         </dependency>
280                                 </dependencies>
281                         </plugin>
282                         <plugin>
283                                 <groupId>org.apache.maven.plugins</groupId>
284                                 <artifactId>maven-source-plugin</artifactId>
285                                 <version>3.0.1</version>
286                                 <executions>
287                                         <execution>
288                                                 <id>attach-sources</id>
289                                                 <goals>
290                                                         <goal>jar</goal>
291                                                 </goals>
292                                         </execution>
293                                 </executions>
294                         </plugin>
295                         <plugin>
296                                 <groupId>org.apache.maven.plugins</groupId>
297                                 <artifactId>maven-javadoc-plugin</artifactId>
298                                 <version>2.9.1</version>
299                                 <executions>
300                                         <execution>
301                                                 <id>attach-javadocs</id>
302                                                 <goals>
303                                                         <goal>jar</goal>
304                                                 </goals>
305                                         </execution>
306                                 </executions>
307                         </plugin>
308                         <plugin>
309                                 <groupId>org.apache.maven.plugins</groupId>
310                                 <artifactId>maven-surefire-plugin</artifactId>
311                                 <version>2.12.2</version>
312                                 <configuration>
313                                         <systemPropertyVariables>
314                                                 <jacoco-agent.destfile>target/jacoco.exec</jacoco-agent.destfile>
315                                         </systemPropertyVariables>
316                                 </configuration>
317                         </plugin>
318                         <plugin>
319                                 <groupId>org.apache.maven.plugins</groupId>
320                                 <artifactId>maven-deploy-plugin</artifactId>
321                                 <executions>
322                                         <execution>
323                                                 <id>default-deploy</id>
324                                                 <phase>none</phase>
325                                         </execution>
326                                 </executions>
327                         </plugin>
328                         <plugin>
329                                 <groupId>org.sonatype.plugins</groupId>
330                                 <artifactId>nexus-staging-maven-plugin</artifactId>
331                                 <version>1.6.7</version>
332                                 <extensions>true</extensions>
333                                 <configuration>
334                                         <nexusUrl>${nexusproxy}</nexusUrl>
335                                         <stagingProfileId>176c31dfe190a</stagingProfileId>
336                                         <serverId>ecomp-staging</serverId>
337                                 </configuration>
338                         </plugin>
339                         <plugin>
340                                 <groupId>org.apache.maven.plugins</groupId>
341                                 <artifactId>maven-site-plugin</artifactId>
342                                 <version>3.6</version>
343                                 <dependencies>
344                                         <dependency>
345                                                 <groupId>org.apache.maven.wagon</groupId>
346                                                 <artifactId>wagon-webdav-jackrabbit</artifactId>
347                                                 <version>2.10</version>
348                                         </dependency>
349                                 </dependencies>
350                         </plugin>
351                             <plugin>
352                                 <groupId>com.mycila</groupId>
353                                 <artifactId>license-maven-plugin</artifactId>
354                                 <version>3.0</version>
355                                 <configuration>
356                                     <header>License.txt</header>
357                                     <includes>
358                                         <include>**/*.java</include>
359                                         <include>**/*.ksh</include>
360                                         <include>**/*.sh</include>
361                                         <include>**/*.ftl</include>
362                                         <include>**/*.xsd</include>
363                                         <include>**/*.xjb</include>
364                                         <include>**/*.yml</include>
365                                         <include>**/*.yaml</include>
366                                         <include>**/aai*.xml</include>
367                                         <include>**/*logback*.xml</include>
368                                         <include>**/*aaiconfig*.properties</include>
369                                         <include>**/*titan*.properties</include>
370                                     </includes>
371                                 </configuration>
372                                 <executions>
373                                     <execution>
374                                         <goals>
375                                             <goal>format</goal>
376                                         </goals>
377                                         <phase>process-sources</phase>
378                                     </execution>
379                                 </executions>
380                             </plugin>
381                 </plugins>
382         </build>
383         <reporting>
384                 <plugins>
385                         <plugin>
386                                 <groupId>org.apache.maven.plugins</groupId>
387                                 <artifactId>maven-javadoc-plugin</artifactId>
388                                 <version>2.10.4</version>
389                                 <configuration>
390                                         <failOnError>false</failOnError>
391                                         <doclet>org.umlgraph.doclet.UmlGraphDoc</doclet>
392                                         <docletArtifact>
393                                                 <groupId>org.umlgraph</groupId>
394                                                 <artifactId>umlgraph</artifactId>
395                                                 <version>5.6</version>
396                                         </docletArtifact>
397                                         <additionalparam>-views</additionalparam>
398                                         <useStandardDocletOptions>true</useStandardDocletOptions>
399                                 </configuration>
400                         </plugin>
401                 </plugins>
402         </reporting>
403 </project>