Upgraded antrun plugin for JaCoCo to 1.6
[sdc.git] / openecomp-be / pom.xml
1 <project xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://maven.apache.org/POM/4.0.0"
2          xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
3     <modelVersion>4.0.0</modelVersion>
4
5     <name>openecomp-sdc</name>
6     <groupId>org.openecomp.sdc</groupId>
7     <artifactId>openecomp-sdc</artifactId>
8     <packaging>pom</packaging>
9
10     <url>http://maven.apache.org</url>
11
12     <parent>
13         <groupId>org.openecomp.sdc</groupId>
14         <artifactId>sdc-onboarding</artifactId>
15         <version>1.2.0-SNAPSHOT</version>
16         <relativePath>../onboarding</relativePath>
17     </parent>
18
19     <modules>
20         <module>/api</module>
21         <module>/lib</module>
22         <module>/configuration</module>
23         <module>/tools/swagger-ui</module>
24         <module>/tools/migration/1702_to_1707_zusammen</module>
25         <module>/tools/zusammen-tools</module>
26         <module>/backend</module>
27     </modules>
28
29     <dependencies>
30         <dependency>
31             <groupId>com.fasterxml.jackson.core</groupId>
32             <artifactId>jackson-annotations</artifactId>
33             <version>${jackson.version}</version>
34         </dependency>
35     </dependencies>
36
37     <build>
38         <plugins>
39
40             <!-- ================================================== -->
41             <!-- Set the JDK compiler version.                      -->
42             <!-- ================================================== -->
43             <plugin>
44                 <groupId>org.apache.maven.plugins</groupId>
45                 <artifactId>maven-compiler-plugin</artifactId>
46                 <version>${mvn.compiler.version}</version>
47                 <inherited>true</inherited>
48                 <configuration>
49                     <source>${java.source}</source>
50                     <target>${java.target}</target>
51                 </configuration>
52             </plugin>
53             <!-- blackduck maven plugin -->
54             <!--
55             <plugin>
56                 <groupId>com.blackducksoftware.integration</groupId>
57                 <artifactId>hub-maven-plugin</artifactId>
58                 <version>${mvn.hub.version}</version>
59                 <inherited>false</inherited>
60                 <configuration>
61                     <target>${project.basedir}</target>
62                 </configuration>
63                 <executions>
64                     <execution>
65                         <id>create-bdio-file</id>
66                         <phase>package</phase>
67                         <goals>
68                             <goal>createHubOutput</goal>
69                         </goals>
70                     </execution>
71                 </executions>
72             </plugin>-->
73
74             <plugin>
75                 <groupId>org.codehaus.mojo</groupId>
76                 <artifactId>license-maven-plugin</artifactId>
77                 <version>${mvn.license.version}</version>
78                 <configuration>
79                     <addJavaLicenseAfterPackage>false</addJavaLicenseAfterPackage>
80                     <processStartTag>============LICENSE_START=======================================================</processStartTag>
81                     <processEndTag>============LICENSE_END=========================================================</processEndTag>
82                     <sectionDelimiter>================================================================================</sectionDelimiter>
83                     <licenseName>apache_v2</licenseName>
84                     <inceptionYear>2017</inceptionYear>
85                     <organizationName>AT&amp;T Intellectual Property. All rights reserved.</organizationName>
86                     <projectName>SDC</projectName>
87                     <canUpdateCopyright>true</canUpdateCopyright>
88                     <canUpdateDescription>true</canUpdateDescription>
89                     <canUpdateLicense>true</canUpdateLicense>
90                     <emptyLineAfterHeader>true</emptyLineAfterHeader>
91                     <verbose>false</verbose>
92                     <includes>
93                         <include>**/*.java</include>
94                         <include>**/*.js</include>
95                         <include>**/*.ts</include>
96                     </includes>
97                     <roots>
98                         <root>src</root>
99                         <root>app</root>
100                         <root>server-mock</root>
101                         <root>typings</root>
102                     </roots>
103                 </configuration>
104                 <executions>
105                     <execution>
106                         <id>first</id>
107                         <goals>
108                             <goal>update-file-header</goal>
109                         </goals>
110                         <!--phase>process-sources</phase-->
111                     </execution>
112                 </executions>
113             </plugin>
114             <plugin>
115                 <groupId>org.jacoco</groupId>
116                 <artifactId>jacoco-maven-plugin</artifactId>
117                 <version>${jacoco.version}</version>
118                 <executions>
119                     <execution>
120                         <goals>
121                             <goal>prepare-agent</goal>
122                         </goals>
123                     </execution>
124                     <execution>
125                         <id>report</id>
126                         <phase>prepare-package</phase>
127                         <goals>
128                             <goal>report</goal>
129                         </goals>
130                     </execution>
131                     <execution>
132                         <id>post-unit-test</id>
133                         <phase>test</phase>
134                         <goals>
135                             <goal>report</goal>
136                         </goals>
137                         <configuration>
138                             <!-- Sets the path to the file which contains the execution data. -->
139
140                             <dataFile>target/jacoco.exec</dataFile>
141                             <!-- Sets the output directory for the code coverage report. -->
142                             <outputDirectory>target/jacoco-ut</outputDirectory>
143                         </configuration>
144                     </execution>
145                 </executions>
146             </plugin>
147             <!-- Jacoco consolidation Report -->
148             <plugin>
149                 <groupId>org.apache.maven.plugins</groupId>
150                 <artifactId>maven-antrun-plugin</artifactId>
151                 <version>${mvn.antrun.version}</version>
152                 <executions>
153                     <execution>
154                         <phase>post-integration-test</phase>
155                         <goals>
156                             <goal>run</goal>
157                         </goals>
158                         <configuration>
159                             <target>
160                                 <!-- Execute an ant task within maven -->
161                                 <echo message="Generating JaCoCo Reports" />
162                                 <taskdef name="report" classname="org.jacoco.ant.ReportTask">
163                                     <classpath path="${basedir}/target/jacoco-jars/org.jacoco.ant.jar" />
164                                 </taskdef>
165                                 <mkdir dir="${basedir}/target/coverage-report" />
166                                 <report>
167                                     <executiondata>
168                                         <fileset dir="${basedir}">
169                                             <include name="**/*jacoco.exec" />
170                                         </fileset>
171                                     </executiondata>
172                                     <structure name="jacoco-multi Coverage Project">
173                                         <group name="jacoco-multi">
174                                             <classfiles>
175                                                 <fileset dir="${basedir}">
176                                                     <include name="**/target/classes/**" />
177                                                 </fileset>
178                                             </classfiles>
179                                             <sourcefiles encoding="UTF-8">
180                                                 <fileset dir="${basedir}">
181                                                     <include name="**/target/generated-sources/**" />
182                                                 </fileset>
183                                             </sourcefiles>
184                                         </group>
185                                     </structure>
186                                     <html destdir="${basedir}/target/coverage-report/html" />
187                                     <xml destfile="${basedir}/target/coverage-report/coverage-report.xml" />
188                                     <csv destfile="${basedir}/target/coverage-report/coverage-report.csv" />
189                                 </report>
190                             </target>
191                         </configuration>
192                     </execution>
193                 </executions>
194                 <dependencies>
195                     <dependency>
196                         <groupId>org.jacoco</groupId>
197                         <artifactId>org.jacoco.ant</artifactId>
198                         <version>${jacoco.version}</version>
199                     </dependency>
200                 </dependencies>
201             </plugin>
202
203         </plugins>
204     </build>
205
206     <!--Added to resolve blackduck operational risks for indirect dependencies referred -->
207     <dependencyManagement>
208         <dependencies>
209             <!-- https://mvnrepository.com/artifact/commons-beanutils/commons-beanutils -->
210             <dependency>
211                 <groupId>commons-beanutils</groupId>
212                 <artifactId>commons-beanutils</artifactId>
213                 <version>${commons.beanutils.version}</version>
214             </dependency>
215             <!-- https://mvnrepository.com/artifact/com.beust/jcommander -->
216             <dependency>
217                 <groupId>com.beust</groupId>
218                 <artifactId>jcommander</artifactId>
219                 <version>${jcommander.version}</version>
220             </dependency>
221             <!-- https://mvnrepository.com/artifact/org.apache.httpcomponents/httpasyncclient -->
222             <dependency>
223                 <groupId>org.apache.httpcomponents</groupId>
224                 <artifactId>httpasyncclient</artifactId>
225                 <version>${httpasyncclient.version}</version>
226             </dependency>
227             <!-- https://mvnrepository.com/artifact/com.sun.xml.bind/jaxb-impl -->
228             <dependency>
229                 <groupId>com.sun.xml.bind</groupId>
230                 <artifactId>jaxb-impl</artifactId>
231                 <version>${jaxb.impl.version}</version>
232             </dependency>
233             <!-- https://mvnrepository.com/artifact/org.beanshell/bsh -->
234             <dependency>
235                 <groupId>org.beanshell</groupId>
236                 <artifactId>bsh</artifactId>
237                 <version>${bsh.version}</version>
238             </dependency>
239             <!-- https://mvnrepository.com/artifact/commons-digester/commons-digester -->
240             <dependency>
241                 <groupId>commons-digester</groupId>
242                 <artifactId>commons-digester</artifactId>
243                 <version>${commons.digester.version}</version>
244             </dependency>
245             <!-- https://mvnrepository.com/artifact/com.fasterxml/classmate -->
246             <dependency>
247                 <groupId>com.fasterxml</groupId>
248                 <artifactId>classmate</artifactId>
249                 <version>${classmate.version}</version>
250             </dependency>
251             <!--1702 -->
252             <!-- https://mvnrepository.com/artifact/org.slf4j/slf4j-api -->
253             <dependency>
254                 <groupId>org.slf4j</groupId>
255                 <artifactId>slf4j-api</artifactId>
256                 <version>${slf4j.version}</version>
257             </dependency>
258             <dependency>
259                 <groupId>org.codehaus.groovy</groupId>
260                 <artifactId>groovy-all</artifactId>
261                 <version>${groovy.version}</version>
262             </dependency>
263              <dependency>
264                 <groupId>org.codehaus.janino</groupId>
265                 <artifactId>janino</artifactId>
266                 <version>${janino.version}</version>
267                 <scope>provided</scope>
268             </dependency>
269         </dependencies>
270     </dependencyManagement>
271
272 </project>
273