Improve code coverage for aaf cadi modules
[aaf/cadi.git] / client / pom.xml
1 <!--\r
2   ============LICENSE_START====================================================\r
3   * org.onap.aaf\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" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">\r
24 <parent>\r
25                 <groupId>org.onap.aaf.cadi</groupId>\r
26                 <artifactId>parent</artifactId>\r
27                 <version>1.0.0-SNAPSHOT</version>\r
28                 <relativePath>..</relativePath>\r
29         </parent>\r
30         \r
31         <name>CADI Client</name>\r
32         <artifactId>cadi-client</artifactId>\r
33         <packaging>jar</packaging>\r
34         <url>https://github.com/att/AAF</url>\r
35         <description>CADI</description>\r
36         <modelVersion>4.0.0</modelVersion>\r
37 <properties>\r
38                 <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>\r
39                 <project.cadiVersion>1.0.0-SNAPSHOT</project.cadiVersion>\r
40                 <sonar.language>java</sonar.language>\r
41                 <sonar.java.coveragePlugin>jacoco</sonar.java.coveragePlugin>\r
42                 <sonar.surefire.reportsPath>${project.build.directory}/surefire-reports</sonar.surefire.reportsPath>\r
43                 <sonar.jacoco.reportPath>${project.build.directory}/coverage-reports/jacoco.exec</sonar.jacoco.reportPath>\r
44                 <sonar.jacoco.itReportPath>${project.build.directory}/coverage-reports/jacoco-it.exec</sonar.jacoco.itReportPath>\r
45                 <sonar.jacoco.reportMissing.force.zero>false</sonar.jacoco.reportMissing.force.zero>\r
46                 <sonar.projectVersion>${project.version}</sonar.projectVersion>\r
47         <nexusproxy>https://nexus.onap.org</nexusproxy>\r
48                 <snapshotNexusPath>/content/repositories/snapshots/</snapshotNexusPath>\r
49                 <releaseNexusPath>/content/repositories/releases/</releaseNexusPath>\r
50                 <stagingNexusPath>/content/repositories/staging/</stagingNexusPath>\r
51                 <sitePath>/content/sites/site/org/onap/aaf/cadi/${project.artifactId}/${project.version}</sitePath>\r
52         </properties>\r
53         <dependencies>\r
54                 <dependency>\r
55                         <groupId>org.onap.aaf.inno</groupId>\r
56                         <artifactId>rosetta</artifactId>\r
57                 </dependency>\r
58                 <dependency>\r
59                         <groupId>org.onap.aaf.cadi</groupId>\r
60                         <artifactId>cadi-core</artifactId>\r
61                 </dependency>\r
62                 <dependency>\r
63                         <groupId>com.att.aft</groupId>\r
64                         <artifactId>dme2</artifactId>\r
65                         <scope>compile</scope>\r
66                 </dependency>\r
67                 \r
68         </dependencies>\r
69 \r
70         <build>\r
71                 <plugins>\r
72                         <plugin>\r
73                                 <groupId>org.apache.maven.plugins</groupId>\r
74                                 <artifactId>maven-jarsigner-plugin</artifactId>\r
75                         </plugin>\r
76                         <plugin>\r
77                         <groupId>org.apache.maven.plugins</groupId>\r
78                         <artifactId>maven-javadoc-plugin</artifactId>\r
79                         <version>2.10.4</version>\r
80                         <configuration>\r
81                         <failOnError>false</failOnError>\r
82                         </configuration>\r
83                         <executions>\r
84                                 <execution>\r
85                                         <id>attach-javadocs</id>\r
86                                         <goals>\r
87                                                 <goal>jar</goal>\r
88                                         </goals>\r
89                                 </execution>\r
90                         </executions>\r
91                 </plugin> \r
92            \r
93            \r
94                <plugin>\r
95                       <groupId>org.apache.maven.plugins</groupId>\r
96                       <artifactId>maven-source-plugin</artifactId>\r
97                       <version>2.2.1</version>\r
98                       <executions>\r
99                         <execution>\r
100                           <id>attach-sources</id>\r
101                           <goals>\r
102                             <goal>jar-no-fork</goal>\r
103                           </goals>\r
104                         </execution>\r
105                       </executions>\r
106                     </plugin>\r
107         \r
108   <plugin>\r
109                                 <groupId>org.sonatype.plugins</groupId>\r
110                                 <artifactId>nexus-staging-maven-plugin</artifactId>\r
111                                 <version>1.6.7</version>\r
112                                 <extensions>true</extensions>\r
113                                 <configuration>\r
114                                         <nexusUrl>${nexusproxy}</nexusUrl>\r
115                                         <stagingProfileId>176c31dfe190a</stagingProfileId>\r
116                                         <serverId>ecomp-staging</serverId>\r
117                                 </configuration>\r
118                         </plugin>\r
119 \r
120 <plugin>\r
121                                 <groupId>org.jacoco</groupId>\r
122                                 <artifactId>jacoco-maven-plugin</artifactId>\r
123                                 <version>0.7.7.201606060606</version>\r
124                                 <configuration>\r
125                                         <dumpOnExit>true</dumpOnExit>\r
126                                 </configuration>\r
127                                 <executions>\r
128                                         <execution>\r
129                                                 <id>pre-unit-test</id>\r
130                                                 <goals>\r
131                                                         <goal>prepare-agent</goal>\r
132                                                 </goals>\r
133                                                 <configuration>\r
134                                                         <destFile>${project.build.directory}/coverage-reports/jacoco.exec</destFile>\r
135                                                         <!-- <append>true</append> -->\r
136                                                 </configuration>\r
137                                         </execution>\r
138                                         <execution>\r
139                                                 <id>pre-integration-test</id>\r
140                                                 <phase>pre-integration-test</phase>\r
141                                                 <goals>\r
142                                                         <goal>prepare-agent</goal>\r
143                                                 </goals>\r
144                                                 <configuration>\r
145                                                         <destFile>${project.build.directory}/coverage-reports/jacoco-it.exec</destFile>\r
146                                                         <!-- <append>true</append> -->\r
147                                                 </configuration>\r
148                                         </execution>\r
149                                         <execution>\r
150                         <goals>\r
151                             <goal>merge</goal>\r
152                         </goals>\r
153                         <phase>post-integration-test</phase>\r
154                         <configuration>\r
155                             <fileSets>\r
156                                 <fileSet implementation="org.apache.maven.shared.model.fileset.FileSet">\r
157                                     <directory>${project.build.directory}/coverage-reports</directory>\r
158                                     <includes>\r
159                                         <include>*.exec</include>\r
160                                     </includes>\r
161                                 </fileSet>\r
162                             </fileSets>\r
163                             <destFile>${project.build.directory}/jacoco-dev.exec</destFile>\r
164                         </configuration>\r
165                     </execution>\r
166                                 </executions>\r
167                         </plugin>                       \r
168                 </plugins>\r
169         </build>\r
170                 <distributionManagement>\r
171                 <repository>\r
172                         <id>ecomp-releases</id>\r
173                         <name>AAF Release Repository</name>\r
174                         <url>${nexusproxy}${releaseNexusPath}</url>\r
175                 </repository>\r
176                 <snapshotRepository>\r
177                         <id>ecomp-snapshots</id>\r
178                         <name>AAF Snapshot Repository</name>\r
179                         <url>${nexusproxy}${snapshotNexusPath}</url>\r
180                 </snapshotRepository>\r
181                 <site>\r
182                         <id>ecomp-site</id>\r
183                         <url>dav:${nexusproxy}${sitePath}</url>\r
184                 </site>\r
185         </distributionManagement>\r
186 \r
187 </project>\r