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