Update sitepath
[dmaap/messagerouter/dmaapclient.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            http://www.apache.org/licenses/LICENSE-2.0
11      
12      Unless required by applicable law or agreed to in writing, software
13      distributed under the License is distributed on an "AS IS" BASIS,
14      WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
15      See the License for the specific language governing permissions and
16      limitations under the License.
17      ============LICENSE_END=========================================================
18    
19      ECOMP is a trademark and service mark of AT&T Intellectual Property.
20      
21  -->
22 <project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
23         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.messagerouter.dmaapclient</groupId>
26         <artifactId>dmaapClient</artifactId>
27         <packaging>jar</packaging>
28         <version>1.0.0-SNAPSHOT</version>
29         <name>dmaapClient</name>
30         <description>Client library for MR event routing API</description>
31         <url>https://github.com/att/dmaap-framework</url>
32
33         <parent>
34                 <groupId>org.onap.oparent</groupId>
35                 <artifactId>oparent</artifactId>
36                 <version>0.1.1</version>
37         </parent>
38         <properties>
39                 <!-- for the client library, we want to allow 1.6 or later -->
40                 <maven.compiler.target>1.7</maven.compiler.target>
41                 <maven.compiler.source>1.7</maven.compiler.source>
42                 <jersey.version>2.22.1</jersey.version>
43                 <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
44                 
45                 <!--  SONAR  -->
46                  <jacoco.version>0.7.7.201606060606</jacoco.version>
47             <sonar-jacoco-listeners.version>3.2</sonar-jacoco-listeners.version>
48             <sonar.core.codeCoveragePlugin>jacoco</sonar.core.codeCoveragePlugin>
49             <!-- Default Sonar configuration -->
50             <sonar.jacoco.reportPath>target/code-coverage/jacoco-ut.exec</sonar.jacoco.reportPath>
51             <sonar.jacoco.itReportPath>target/code-coverage/jacoco-it.exec</sonar.jacoco.itReportPath>
52             <!-- Note: This list should match jacoco-maven-plugin's exclusion list below -->
53             <sonar.exclusions>**/gen/**,**/generated-sources/**,**/yang-gen**,**/pax/**</sonar.exclusions>
54             <sitePath>/content/sites/site/org/onap/dmaap/messagerouter/dmaapclient/${project.artifactId}/${project.version}</sitePath>
55                 <nexusproxy>https://nexus.onap.org</nexusproxy>
56         </properties>
57         
58         <distributionManagement>
59                 <site>
60                         <id>ecomp-site</id>
61                         <url>dav:${nexusproxy}${sitePath}</url>
62                 </site>
63         </distributionManagement>
64
65          <licenses>
66           <license>
67             <name>Apache License Version 2.0</name>
68           </license>
69         </licenses>
70
71         <developers>
72            <developer>
73              <name>Rajashree</name>
74              <email></email>
75              <organization>ATT</organization>
76              <organizationUrl>www.att.com</organizationUrl>
77            </developer>
78            <developer>
79              <name>Ramkumar</name>
80              <email></email>
81              <organization>ATT</organization>
82              <organizationUrl>www.att.com</organizationUrl>
83            </developer>
84          </developers>
85
86         <dependencies>
87                 <dependency>
88                         <groupId>com.att.nsa</groupId>
89                         <artifactId>saClientLibrary</artifactId>
90                         <version>0.0.1</version>
91                 </dependency>
92
93                 <dependency>
94                         <groupId>org.json</groupId>
95                         <artifactId>json</artifactId>
96                         <version>20131018</version>
97                 </dependency>
98
99                 <dependency>
100                         <groupId>com.att.aft</groupId>
101                         <artifactId>dme2</artifactId>
102                         <version>3.1.200</version>
103                         <exclusions>
104                                 <exclusion>
105                                         <groupId>com.sun.jersey</groupId>
106                                         <artifactId>jersey-json</artifactId>
107                                 </exclusion>
108                                 <exclusion>
109                                         <groupId>com.sun.jersey</groupId>
110                                         <artifactId>jersey-client</artifactId>
111                                 </exclusion>
112                         </exclusions>
113                 </dependency>
114                 <!-- Begin - Dependency on log4j for logging purpose -->
115                 <dependency>
116                         <groupId>log4j</groupId>
117                         <artifactId>log4j</artifactId>
118                         <version>1.2.17</version>
119                 </dependency>
120                 <!-- Log4j's enhanced pattern layout is shipped separately -->
121                 <dependency>
122                         <groupId>log4j</groupId>
123                         <artifactId>apache-log4j-extras</artifactId>
124                         <version>1.2.17</version>
125                 </dependency>
126                 <!-- End - Dependency on log4j for logging purpose -->
127
128                 <dependency>
129                         <groupId>javax.ws.rs</groupId>
130                         <artifactId>javax.ws.rs-api</artifactId>
131                         <version>2.0.1</version>
132                 </dependency>
133
134                 <dependency>
135                         <groupId>org.glassfish.jersey.core</groupId>
136                         <artifactId>jersey-common</artifactId>
137                         <version>${jersey.version}</version>
138                 </dependency>
139
140                 <dependency>
141                         <groupId>org.glassfish.jersey.core</groupId>
142                         <artifactId>jersey-client</artifactId>
143                         <version>${jersey.version}</version>
144                 </dependency>
145
146                 <dependency>
147                         <groupId>org.glassfish.jersey.media</groupId>
148                         <artifactId>jersey-media-json-jackson</artifactId>
149                         <version>${jersey.version}</version>
150                 </dependency>
151                 <dependency>
152                         <groupId>junit</groupId>
153                         <artifactId>junit</artifactId>
154                         <version>4.11</version>
155                         <scope>test</scope>
156                 </dependency>
157         </dependencies>
158
159         <build>
160                 <resources>
161                         <resource>
162                                 <directory>src/main/resources</directory>
163                                 <filtering>true</filtering>
164                                 <includes>
165                                         <include>**/MRClientVersion.properties</include>
166                                 </includes>
167                         </resource>
168                         <resource>
169                                 <directory>src/main/resources</directory>
170                                 <filtering>false</filtering>
171                                 <excludes>
172                                         <exclude>**/MRClientVersion.properties</exclude>
173                                 </excludes>
174                         </resource>
175                 </resources>
176                 <plugins>
177                         <plugin>
178                                 <groupId>org.apache.maven.plugins</groupId>
179                                 <artifactId>maven-site-plugin</artifactId>
180                                 <version>3.6</version>
181                                 <dependencies>
182                                         <dependency>
183                                                 <groupId>org.apache.maven.wagon</groupId>
184                                                 <artifactId>wagon-webdav-jackrabbit</artifactId>
185                                                 <version>2.10</version>
186                                         </dependency>
187                                 </dependencies>
188                         </plugin>
189                         <plugin>
190                                 <artifactId>maven-assembly-plugin</artifactId>
191                                 <version>2.4</version>
192                                 <configuration>
193                                         <descriptorRefs>
194                                                 <descriptorRef>jar-with-dependencies</descriptorRef>
195                                         </descriptorRefs>
196                                 </configuration>
197
198                                 <executions>
199                                         <execution>
200                                                 <id>make-assembly</id> <!-- this is used for inheritance merges -->
201                                                 <phase>package</phase> <!-- bind to the packaging phase -->
202                                                 <goals>
203                                                         <goal>single</goal>
204                                                 </goals>
205                                         </execution>
206                                 </executions>
207                         </plugin>
208
209
210                         <plugin>
211                                 <groupId>org.apache.maven.plugins</groupId>
212                                 <artifactId>maven-javadoc-plugin</artifactId>
213                                 <version>2.10.4</version>
214                                 <configuration>
215                                         <additionalparam>-Xdoclint:none</additionalparam>
216                                 </configuration>
217                                 <executions>
218                                         <execution>
219                                                 <id>attach-javadocs</id>
220                                                 <goals>
221                                                         <goal>jar</goal>
222                                                 </goals>
223                                         </execution>
224                                 </executions>
225                         </plugin>
226                         <plugin>
227                                 <groupId>org.apache.maven.plugins</groupId>
228                                 <artifactId>maven-source-plugin</artifactId>
229                                 <version>3.0.0</version>
230                                 <executions>
231                                         <execution>
232                                                 <id>attach-sources</id>
233                                                 <goals>
234                                                         <goal>jar-no-fork</goal>
235                                                 </goals>
236                                         </execution>
237                                 </executions>
238                         </plugin>
239                         <plugin>
240                                 <artifactId>maven-compiler-plugin</artifactId>
241                                 <version>3.1</version>
242                                 <configuration>
243                                         <source>1.7</source>
244                                         <target>1.7</target>
245                                 </configuration>
246                         </plugin>
247                 <plugin>
248           <groupId>org.jacoco</groupId>
249           <artifactId>jacoco-maven-plugin</artifactId>
250           <version>${jacoco.version}</version>
251           <configuration>
252             <!-- Note: This exclusion list should match <sonar.exclusions>
253          property above -->
254             <excludes>
255               <exclude>**/gen/**</exclude>
256               <exclude>**/generated-sources/**</exclude>
257               <exclude>**/yang-gen/**</exclude>
258               <exclude>**/pax/**</exclude>
259             </excludes>
260           </configuration>
261           <executions>
262             <!--
263         Prepares the property pointing to the JaCoCo runtime agent which
264         is passed as VM argument when Maven the Surefire plugin is executed.
265         -->
266             <execution>
267               <id>pre-unit-test</id>
268               <goals>
269                 <goal>prepare-agent</goal>
270               </goals>
271               <configuration>
272                 <!-- Sets the path to the file which contains the execution data. -->
273                 <destFile>${project.build.directory}/code-coverage/jacoco-ut.exec</destFile>
274                 <!--
275             Sets the name of the property containing the settings
276             for JaCoCo runtime agent.
277         -->
278                 <propertyName>surefireArgLine</propertyName>
279               </configuration>
280             </execution>
281             <!--
282         Ensures that the code coverage report for unit tests is created after
283         unit tests have been run.
284         -->
285             <execution>
286               <id>post-unit-test</id>
287               <phase>test</phase>
288               <goals>
289                 <goal>report</goal>
290               </goals>
291               <configuration>
292                 <!-- Sets the path to the file which contains the execution data. -->
293                 <dataFile>${project.build.directory}/code-coverage/jacoco-ut.exec</dataFile>
294                 <!-- Sets the output directory for the code coverage report. -->
295                 <outputDirectory>${project.reporting.outputDirectory}/jacoco-ut</outputDirectory>
296               </configuration>
297             </execution>
298             <execution>
299               <id>pre-integration-test</id>
300               <phase>pre-integration-test</phase>
301               <goals>
302                 <goal>prepare-agent</goal>
303               </goals>
304               <configuration>
305                 <!-- Sets the path to the file which contains the execution data. -->
306                 <destFile>${project.build.directory}/code-coverage/jacoco-it.exec</destFile>
307                 <!--
308             Sets the name of the property containing the settings
309             for JaCoCo runtime agent.
310         -->
311                 <propertyName>failsafeArgLine</propertyName>
312               </configuration>
313             </execution>
314             <!--
315         Ensures that the code coverage report for integration tests after
316         integration tests have been run.
317         -->
318             <execution>
319               <id>post-integration-test</id>
320               <phase>post-integration-test</phase>
321               <goals>
322                 <goal>report</goal>
323               </goals>
324               <configuration>
325                 <!-- Sets the path to the file which contains the execution data. -->
326                 <dataFile>${project.build.directory}/code-coverage/jacoco-it.exec</dataFile>
327                 <!-- Sets the output directory for the code coverage report. -->
328                 <outputDirectory>${project.reporting.outputDirectory}/jacoco-it</outputDirectory>
329               </configuration>
330             </execution>
331           </executions>
332         </plugin>
333                 </plugins>
334         </build>
335
336         <profiles>
337                 <!-- Add plugins here that should only be executed on the Jenkins server -->
338                 <profile>
339                         <id>jenkins</id>
340                         <activation>
341                                 <property>
342                                         <name>env.BUILD_NUMBER</name>
343                                 </property>
344                         </activation>
345                         <build>
346                                 <plugins>
347                                         <plugin>
348                                                 <groupId>org.codehaus.mojo</groupId>
349                                                 <artifactId>cobertura-maven-plugin</artifactId>
350                                         </plugin>
351                                 </plugins>
352                         </build>
353                 </profile>
354         </profiles>
355 </project>