Add plugins for test coverage report
[aaf/inno.git] / xgen / 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"\r
24         xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">\r
25         <parent>\r
26                 <groupId>org.onap.aaf.inno</groupId>\r
27                 <artifactId>parent</artifactId>\r
28                 <version>1.0.0-SNAPSHOT</version>\r
29                 <relativePath>..</relativePath>\r
30         </parent>\r
31         \r
32         <modelVersion>4.0.0</modelVersion>\r
33         <artifactId>xgen</artifactId>\r
34         <name>XGen</name>\r
35         \r
36         <packaging>jar</packaging>\r
37         <url>https://github.com/att/AAF</url>\r
38         <description>INNO</description>\r
39         <licenses>\r
40                 <license>\r
41                 <name>BSD License</name>\r
42                 <url> </url>\r
43                 </license>\r
44         </licenses>\r
45 \r
46         <developers>\r
47                 <developer>\r
48                 <name>Jonathan Gathman</name>\r
49                 <email></email>\r
50         <organization>ATT</organization>\r
51         <organizationUrl></organizationUrl>\r
52                 </developer>\r
53         </developers>\r
54         <properties>\r
55                 <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>\r
56                 <project.cadiVersion>1.0.0-SNAPSHOT</project.cadiVersion>\r
57                 <sonar.language>java</sonar.language>\r
58                 <sonar.java.coveragePlugin>jacoco</sonar.java.coveragePlugin>\r
59                 <sonar.surefire.reportsPath>${project.build.directory}/surefire-reports</sonar.surefire.reportsPath>\r
60                 <sonar.jacoco.reportPath>${project.build.directory}/coverage-reports/jacoco.exec</sonar.jacoco.reportPath>\r
61                 <sonar.jacoco.itReportPath>${project.build.directory}/coverage-reports/jacoco-it.exec</sonar.jacoco.itReportPath>\r
62                 <sonar.jacoco.reportMissing.force.zero>true</sonar.jacoco.reportMissing.force.zero>\r
63                 <sonar.projectVersion>${project.version}</sonar.projectVersion>\r
64                 <nexusproxy>https://nexus.onap.org</nexusproxy>\r
65                 <snapshotNexusPath>/content/repositories/snapshots/</snapshotNexusPath>\r
66                 <releaseNexusPath>/content/repositories/releases/</releaseNexusPath>\r
67                 <stagingNexusPath>/content/repositories/staging/</stagingNexusPath>\r
68                 <sitePath>/content/sites/site/${project.groupId}/${project.artifactId}/${project.version}</sitePath>\r
69 \r
70         </properties>\r
71         <dependencies>\r
72                 <dependency>\r
73                         <groupId>org.onap.aaf.inno</groupId>\r
74                         <artifactId>env</artifactId>\r
75                         <version>${project.version}</version>\r
76                 </dependency>\r
77         </dependencies>\r
78         \r
79                 \r
80         <build>\r
81                 \r
82            <plugins>\r
83                <plugin>\r
84                       <groupId>org.apache.maven.plugins</groupId>\r
85                       <artifactId>maven-source-plugin</artifactId>\r
86                       <version>2.2.1</version>\r
87                       <executions>\r
88                         <execution>\r
89                           <id>attach-sources</id>\r
90                           <goals>\r
91                             <goal>jar-no-fork</goal>\r
92                           </goals>\r
93                         </execution>\r
94                       </executions>\r
95                     </plugin>\r
96 \r
97         <plugin>\r
98                                 <groupId>org.sonatype.plugins</groupId>\r
99                                 <artifactId>nexus-staging-maven-plugin</artifactId>\r
100                                 <version>1.6.7</version>\r
101                                 <extensions>true</extensions>\r
102                                 <configuration>\r
103                                         <nexusUrl>${nexusproxy}</nexusUrl>\r
104                                         <stagingProfileId>176c31dfe190a</stagingProfileId>\r
105                                         <serverId>ecomp-staging</serverId>\r
106                                         <skipNexusStagingDeployMojo>${skip.staging.artifacts}</skipNexusStagingDeployMojo>\r
107                                 </configuration>\r
108                         </plugin>               \r
109                         <plugin>\r
110                                 <groupId>org.jacoco</groupId>\r
111                                 <artifactId>jacoco-maven-plugin</artifactId>\r
112                                 <version>0.7.7.201606060606</version>\r
113                                 <configuration>\r
114                                         <dumpOnExit>true</dumpOnExit>\r
115                                         <includes>\r
116                                                 <include>org.onap.aaf.*</include>\r
117                                         </includes>\r
118                                 </configuration>\r
119                                 <executions>\r
120                                         <execution>\r
121                                                 <id>pre-unit-test</id>\r
122                                                 <goals>\r
123                                                         <goal>prepare-agent</goal>\r
124                                                 </goals>\r
125                                                 <configuration>\r
126                                                         <destFile>${project.build.directory}/coverage-reports/jacoco.exec</destFile>\r
127                                                         <!-- <append>true</append> -->\r
128                                                 </configuration>\r
129                                         </execution>\r
130                                         <execution>\r
131                                                 <id>pre-integration-test</id>\r
132                                                 <phase>pre-integration-test</phase>\r
133                                                 <goals>\r
134                                                         <goal>prepare-agent</goal>\r
135                                                 </goals>\r
136                                                 <configuration>\r
137                                                         <destFile>${project.build.directory}/coverage-reports/jacoco-it.exec</destFile>\r
138                                                         <!-- <append>true</append> -->\r
139                                                 </configuration>\r
140                                         </execution>\r
141                                         <execution>\r
142                         <goals>\r
143                             <goal>merge</goal>\r
144                         </goals>\r
145                         <phase>post-integration-test</phase>\r
146                         <configuration>\r
147                             <fileSets>\r
148                                 <fileSet implementation="org.apache.maven.shared.model.fileset.FileSet">\r
149                                     <directory>${project.build.directory}/coverage-reports</directory>\r
150                                     <includes>\r
151                                         <include>*.exec</include>\r
152                                     </includes>\r
153                                 </fileSet>\r
154                             </fileSets>\r
155                             <destFile>${project.build.directory}/jacoco-dev.exec</destFile>\r
156                         </configuration>\r
157                     </execution>\r
158                                 </executions>\r
159                         </plugin>\r
160                         \r
161                 </plugins>\r
162         </build>\r
163                 \r
164 <distributionManagement>\r
165                 <repository>\r
166                         <id>ecomp-releases</id>\r
167                         <name>AAF Release Repository</name>\r
168                         <url>${nexusproxy}${releaseNexusPath}</url>\r
169                 </repository>\r
170                 <snapshotRepository>\r
171                         <id>ecomp-snapshots</id>\r
172                         <name>AAF Snapshot Repository</name>\r
173                         <url>${nexusproxy}${snapshotNexusPath}</url>\r
174                 </snapshotRepository>\r
175                 <site>\r
176                         <id>ecomp-site</id>\r
177                         <url>dav:${nexusproxy}${sitePath}</url>\r
178                 </site>\r
179         </distributionManagement>\r
180     <pluginRepositories>\r
181         <pluginRepository>\r
182             <id>onap-plugin-snapshots</id>\r
183             <url>https://nexus.onap.org/content/repositories/snapshots/</url>\r
184         </pluginRepository>\r
185     </pluginRepositories>\r
186         \r
187         <repositories>\r
188                 <repository>\r
189                         <id>central</id>\r
190                         <name>Maven 2 repository 2</name>\r
191                         <url>http://repo2.maven.org/maven2/</url>\r
192                 </repository>\r
193                 <repository>\r
194             <id>onap-jar-snapshots</id>\r
195             <url>https://nexus.onap.org/content/repositories/snapshots</url>\r
196         </repository>\r
197                 <repository>\r
198                         <id>spring-repo</id>\r
199                         <name>Spring repo</name>\r
200                         <url>https://artifacts.alfresco.com/nexus/content/repositories/public/</url>\r
201                 </repository>\r
202                 <repository>\r
203                         <id>repository.jboss.org-public</id>\r
204                         <name>JBoss.org Maven repository</name>\r
205                         <url>https://repository.jboss.org/nexus/content/groups/public</url>\r
206                 </repository>\r
207         </repositories>\r
208         \r
209         \r
210 </project>\r