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