Merge "Unit Tests for DeliveryQueue"
[dmaap/datarouter.git] / pom.xml
1 <!--
2   ============LICENSE_START==================================================
3   * org.onap.dmaap
4   * ===========================================================================
5   * Copyright © 2017 AT&T Intellectual Property. All rights reserved.
6   * ===========================================================================
7   * Licensed under the Apache License, Version 2.0 (the "License");
8   * you may not use this file except in compliance with the License.
9   * You may obtain a copy of the License at
10   *
11    *      http://www.apache.org/licenses/LICENSE-2.0
12   *
13    * Unless required by applicable law or agreed to in writing, software
14   * distributed under the License is distributed on an "AS IS" BASIS,
15   * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
16   * See the License for the specific language governing permissions and
17   * limitations under the License.
18   * ============LICENSE_END====================================================
19   *
20   * ECOMP is a trademark and service mark of AT&T Intellectual Property.
21   *
22 -->
23 <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/maven-v4_0_0.xsd">
24     <modelVersion>4.0.0</modelVersion>
25     <groupId>org.onap.dmaap.datarouter</groupId>
26     <artifactId>parent</artifactId>
27     <name>dmaap-datarouter</name>
28     <version>1.0.1-SNAPSHOT</version>
29     <packaging>pom</packaging>
30     <url>https://github.com/att/DMAAP_DATAROUTER</url>
31     <parent>
32         <groupId>org.onap.oparent</groupId>
33         <artifactId>oparent</artifactId>
34         <version>1.1.0</version>
35     </parent>
36     <properties>
37         <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
38         <maven.compiler.source>1.8</maven.compiler.source>
39         <maven.compiler.target>1.8</maven.compiler.target>
40         <sonar.language>java</sonar.language>
41         <sonar.skip>false</sonar.skip>
42         <sonar.java.coveragePlugin>jacoco</sonar.java.coveragePlugin>
43         <sonar.surefire.reportsPath>${project.build.directory}/surefire-reports</sonar.surefire.reportsPath>
44         <sonar.jacoco.reportPaths>${project.build.directory}/coverage-reports/jacoco.exec</sonar.jacoco.reportPaths>
45         <sonar.jacoco.itReportPath>${project.build.directory}/coverage-reports/jacoco-it.exec</sonar.jacoco.itReportPath>
46         <sonar.jacoco.reportMissing.force.zero>true</sonar.jacoco.reportMissing.force.zero>
47         <sonar.projectVersion>${project.version}</sonar.projectVersion>
48         <jetty.version>9.3.8.RC0</jetty.version>
49         <jetty.websocket.version>8.2.0.v20160908</jetty.websocket.version>
50         <thoughtworks.version>1.4.10</thoughtworks.version>
51         <snapshotNexusPath>/content/repositories/snapshots/</snapshotNexusPath>
52         <releaseNexusPath>/content/repositories/releases/</releaseNexusPath>
53         <stagingNexusPath>/content/repositories/staging/</stagingNexusPath>
54         <sitePath>/content/sites/site/org/onap/dmaap/datarouter/${project.artifactId}/${project.version}</sitePath>
55         <docker.maven.plugin.version>1.0.0</docker.maven.plugin.version>
56         <skip.docker.build>true</skip.docker.build>
57         <skip.docker.tag>true</skip.docker.tag>
58         <skip.docker.push>true</skip.docker.push>
59     </properties>
60     <modules>
61         <module>datarouter-prov</module>
62         <module>datarouter-node</module>
63         <module>datarouter-subscriber</module>
64     </modules>
65     <build>
66         <plugins>
67             <plugin>
68                 <groupId>com.spotify</groupId>
69                 <artifactId>docker-maven-plugin</artifactId>
70                 <version>${docker.maven.plugin.version}</version>
71                 <configuration>
72                     <skipDockerBuild>true</skipDockerBuild>
73                 </configuration>
74             </plugin>
75             <plugin>
76                 <groupId>org.sonatype.plugins</groupId>
77                 <artifactId>nexus-staging-maven-plugin</artifactId>
78                 <version>1.6.7</version>
79                 <extensions>true</extensions>
80                 <configuration>
81                     <nexusUrl>${onap.nexus.url}</nexusUrl>
82                     <stagingProfileId>176c31dfe190a</stagingProfileId>
83                     <serverId>ecomp-staging</serverId>
84                 </configuration>
85             </plugin>
86             <plugin>
87                 <groupId>org.jacoco</groupId>
88                 <artifactId>jacoco-maven-plugin</artifactId>
89                 <version>${jacoco.version}</version>
90                 <configuration>
91                     <excludes>
92                         <exclude>**/gen/**</exclude>
93                         <exclude>**/generated-sources/**</exclude>
94                         <exclude>**/yang-gen/**</exclude>
95                         <exclude>**/pax/**</exclude>
96                     </excludes>
97                 </configuration>
98                 <executions>
99                     <execution>
100                         <id>pre-unit-test</id>
101                         <goals>
102                             <goal>prepare-agent</goal>
103                         </goals>
104                         <configuration>
105                             <destFile>${project.build.directory}/code-coverage/jacoco-ut.exec</destFile>
106                             <propertyName>surefireArgLine</propertyName>
107                         </configuration>
108                     </execution>
109                     <execution>
110                         <id>post-unit-test</id>
111                         <phase>test</phase>
112                         <goals>
113                             <goal>report</goal>
114                         </goals>
115                         <configuration>
116                             <dataFile>${project.build.directory}/code-coverage/jacoco-ut.exec</dataFile>
117                             <outputDirectory>${project.reporting.outputDirectory}/jacoco-ut</outputDirectory>
118                         </configuration>
119                     </execution>
120                     <execution>
121                         <id>pre-integration-test</id>
122                         <phase>pre-integration-test</phase>
123                         <goals>
124                             <goal>prepare-agent</goal>
125                         </goals>
126                         <configuration>
127                             <destFile>${project.build.directory}/code-coverage/jacoco-it.exec</destFile>
128                             <propertyName>failsafeArgLine</propertyName>
129                         </configuration>
130                     </execution>
131                     <execution>
132                         <id>post-integration-test</id>
133                         <phase>post-integration-test</phase>
134                         <goals>
135                             <goal>report</goal>
136                         </goals>
137                         <configuration>
138                             <dataFile>${project.build.directory}/code-coverage/jacoco-it.exec</dataFile>
139                             <outputDirectory>${project.reporting.outputDirectory}/jacoco-it</outputDirectory>
140                         </configuration>
141                     </execution>
142                 </executions>
143             </plugin>
144         </plugins>
145     </build>
146     <distributionManagement>
147         <repository>
148             <id>ecomp-releases</id>
149             <name>DR Release Repository</name>
150             <url>${onap.nexus.url}${releaseNexusPath}</url>
151         </repository>
152         <snapshotRepository>
153             <id>ecomp-snapshots</id>
154             <name>DR Snapshot Repository</name>
155             <url>${onap.nexus.url}${snapshotNexusPath}</url>
156         </snapshotRepository>
157         <site>
158             <id>ecomp-site</id>
159             <url>dav:${onap.nexus.url}${sitePath}</url>
160         </site>
161     </distributionManagement>
162     <pluginRepositories>
163         <pluginRepository>
164             <id>onap-plugin-snapshots</id>
165             <url>${onap.nexus.url}${snapshotNexusPath}</url>
166         </pluginRepository>
167     </pluginRepositories>
168 </project>