Fixing Merge Build issue and Sonar issues.
[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.3.0-SNAPSHOT</version>
16         <relativePath>../onboarding</relativePath>
17     </parent>
18
19     <dependencies>
20         <dependency>
21             <groupId>com.fasterxml.jackson.core</groupId>
22             <artifactId>jackson-annotations</artifactId>
23             <version>${jackson.version}</version>
24         </dependency>
25
26         <!-- Feature Toggle support libraries-->
27         <dependency>
28             <groupId>org.togglz</groupId>
29             <artifactId>togglz-core</artifactId>
30             <version>${togglz.version}</version>
31         </dependency>
32
33         <dependency>
34             <groupId>org.togglz</groupId>
35             <artifactId>togglz-testing</artifactId>
36             <version>${togglz.version}</version>
37             <scope>test</scope>
38         </dependency>
39     </dependencies>
40
41     <build>
42         <plugins>
43
44             <!-- ================================================== -->
45             <!-- Set the JDK compiler version.                      -->
46             <!-- ================================================== -->
47             <plugin>
48                 <groupId>org.apache.maven.plugins</groupId>
49                 <artifactId>maven-compiler-plugin</artifactId>
50                 <version>${mvn.compiler.version}</version>
51                 <inherited>true</inherited>
52                 <executions>
53                     <execution>
54                         <id>default-compile</id>
55                         <configuration>
56                             <skipMain>${skipMainSourceCompile}</skipMain>
57                         </configuration>
58                     </execution>
59                     <execution>
60                         <id>default-testCompile</id>
61                         <configuration>
62                             <skip>${skipTestSourceCompile}</skip>
63                         </configuration>
64                     </execution>
65                 </executions>
66                 <configuration>
67                     <source>${java.source}</source>
68                     <target>${java.target}</target>
69                 </configuration>
70             </plugin>
71             <plugin>
72                 <groupId>org.openecomp.sdc.onboarding</groupId>
73                 <artifactId>artifact-copy-plugin</artifactId>
74                 <version>${project.version}</version>
75                 <executions>
76                     <execution>
77                         <goals>
78                             <goal>init-artifact-helper</goal>
79                             <!--<goal>copy-helper</goal>-->
80                             <goal>calibrate-artifact-helper</goal>
81                         </goals>
82                     </execution>
83                 </executions>
84                 <configuration>
85                     <groupId>org.openecomp.sdc</groupId>
86                     <artifactId>build-data-installer</artifactId>
87                     <version>${project.version}</version>
88                     <artifactHelper>
89                         <project>${project}</project>
90                         <session>${session}</session>
91                         <unicornRoot>org.openecomp.sdc:sdc-onboarding/target/build-data</unicornRoot>
92                     </artifactHelper>
93                 </configuration>
94             </plugin>
95             <plugin>
96                 <groupId>org.openecomp.sdc.onboarding</groupId>
97                 <artifactId>compile-helper-plugin</artifactId>
98                 <version>${project.version}</version>
99                 <dependencies>
100                     <dependency>
101                         <groupId>org.openecomp.sdc.onboarding</groupId>
102                         <artifactId>pmd-helper-plugin</artifactId>
103                         <version>${project.version}</version>
104                     </dependency>
105                 </dependencies>
106                 <executions>
107                     <execution>
108                         <goals>
109                             <goal>init-helper</goal>
110                             <goal>pre-compile-helper</goal>
111                             <goal>post-compile-helper</goal>
112                             <goal>pre-test-compile-helper</goal>
113                             <goal>post-test-run-helper</goal>
114                         </goals>
115                     </execution>
116                 </executions>
117                 <configuration>
118                     <excludePackaging>pom</excludePackaging>
119                     <excludeDependencies>test,runtime</excludeDependencies>
120                     <generatedSourceLocation>${project.build.directory}/generated-sources</generatedSourceLocation>
121                     <buildState>
122                         <project>${project}</project>
123                         <compileStateFilePath>org.openecomp.sdc:sdc-onboarding/target/build-data/compileState.dat</compileStateFilePath>
124                     </buildState>
125                 </configuration>
126             </plugin>
127             <plugin>
128                 <groupId>org.apache.maven.plugins</groupId>
129                 <artifactId>maven-pmd-plugin</artifactId>
130                 <version>${maven.pmd.plugin.version}</version>
131                 <dependencies>
132                     <dependency>
133                         <groupId>org.openecomp.sdc</groupId>
134                         <artifactId>build-tools</artifactId>
135                         <version>${build.tools.version}</version>
136                     </dependency>
137                     <dependency>
138                         <groupId>net.sourceforge.pmd</groupId>
139                         <artifactId>pmd-core</artifactId>
140                         <version>${pmd.core.version}</version>
141                     </dependency>
142                     <dependency>
143                         <groupId>net.sourceforge.pmd</groupId>
144                         <artifactId>pmd-java</artifactId>
145                         <version>${pmd.java.version}</version>
146                     </dependency>
147                 </dependencies>
148                 <configuration>
149                     <skip>${skipPMD}</skip>
150                     <showPmdLog>false</showPmdLog>
151                     <analysisCache>false</analysisCache>
152                     <analysisCacheLocation>${project.build.directory}/pmd/pmd.cache</analysisCacheLocation>
153                     <failOnViolation>false</failOnViolation>
154                     <printFailingErrors>false</printFailingErrors>
155                     <format>csv</format>
156                     <targetDirectory>${project.build.directory}/pmd</targetDirectory>
157                     <includeTests>true</includeTests>
158                     <linkXRef>false</linkXRef>
159                     <aggregate>false</aggregate>
160                     <rulesets>
161                         <ruleset>/category/java/bestpractices.xml</ruleset>
162                         <ruleset>/category/java/codestyle.xml</ruleset>
163                         <ruleset>/category/java/design.xml</ruleset>
164                         <ruleset>/category/java/errorprone.xml</ruleset>
165                         <ruleset>/category/java/multithreading.xml</ruleset>
166                         <ruleset>/category/java/performance.xml</ruleset>
167                         <ruleset>/category/java/security.xml</ruleset>
168                     </rulesets>
169                 </configuration>
170                 <executions>
171                     <execution>
172                         <goals>
173                             <goal>check</goal>
174                         </goals>
175                         <phase>integration-test</phase>
176                     </execution>
177                 </executions>
178             </plugin>
179             <plugin>
180                 <groupId>org.openecomp.sdc.onboarding</groupId>
181                 <artifactId>pmd-helper-plugin</artifactId>
182                 <version>${project.version}</version>
183                 <executions>
184                     <execution>
185                         <goals>
186                             <goal>init-pmd-helper</goal>
187                             <goal>post-verify-helper</goal>
188                         </goals>
189                     </execution>
190                 </executions>
191                 <configuration>
192                     <excludePackaging>pom</excludePackaging>
193                     <pmdTargetLocation>${project.build.directory}/pmd/pmd.xml</pmdTargetLocation>
194                     <pmdFailureReportLocation>${project.build.directory}/pmd.txt</pmdFailureReportLocation>
195                     <pmdReportFile>${project.build.directory}/pmd/pmd.csv</pmdReportFile>
196                     <persistingModuleCoordinates>org.openecomp.sdc:build-data-installer</persistingModuleCoordinates>
197                     <pmdCurrentStateFilePath>org.openecomp.sdc:sdc-onboarding/target/build-data/pmdState.dat</pmdCurrentStateFilePath>
198                     <pmdStateFile>${project.build.outputDirectory}/pmd.dat</pmdStateFile>
199                     <compiledFilesList>${project.build.directory}/maven-status/maven-compiler-plugin/compile/default-compile/createdFiles.lst</compiledFilesList>
200                     <compiledTestFilesList>${project.build.directory}/maven-status/maven-compiler-plugin/testCompile/default-testCompile/createdFiles.lst</compiledTestFilesList>
201                 </configuration>
202             </plugin>
203             <plugin>
204                 <groupId>org.apache.maven.plugins</groupId>
205                 <artifactId>maven-jar-plugin</artifactId>
206                 <version>${mvn.jar.version}</version>
207                 <configuration>
208                     <archive>
209                         <addMavenDescriptor>${mvnDsc}</addMavenDescriptor>
210                     </archive>
211                     <excludes>
212                         <exclude>${emptyJAR}</exclude>
213                     </excludes>
214                 </configuration>
215             </plugin>
216             <plugin>
217                 <groupId>org.codehaus.mojo</groupId>
218                 <artifactId>license-maven-plugin</artifactId>
219                 <version>${mvn.license.version}</version>
220                 <configuration>
221                     <addJavaLicenseAfterPackage>false</addJavaLicenseAfterPackage>
222                     <processStartTag>============LICENSE_START=======================================================</processStartTag>
223                     <processEndTag>============LICENSE_END=========================================================</processEndTag>
224                     <sectionDelimiter>================================================================================</sectionDelimiter>
225                     <licenseName>apache_v2</licenseName>
226                     <inceptionYear>2017</inceptionYear>
227                     <organizationName>AT&amp;T Intellectual Property. All rights reserved.</organizationName>
228                     <projectName>SDC</projectName>
229                     <canUpdateCopyright>true</canUpdateCopyright>
230                     <canUpdateDescription>true</canUpdateDescription>
231                     <canUpdateLicense>true</canUpdateLicense>
232                     <emptyLineAfterHeader>true</emptyLineAfterHeader>
233                     <verbose>false</verbose>
234                     <includes>
235                         <include>**/*.java</include>
236                         <include>**/*.js</include>
237                         <include>**/*.ts</include>
238                     </includes>
239                     <roots>
240                         <root>src</root>
241                         <root>app</root>
242                         <root>server-mock</root>
243                         <root>typings</root>
244                     </roots>
245                 </configuration>
246                 <executions>
247                     <execution>
248                         <id>first</id>
249                         <goals>
250                             <goal>update-file-header</goal>
251                         </goals>
252                     </execution>
253                 </executions>
254             </plugin>
255             <plugin>
256                 <groupId>org.jacoco</groupId>
257                 <artifactId>jacoco-maven-plugin</artifactId>
258                 <version>${jacoco.version}</version>
259                 <executions>
260                     <execution>
261                         <goals>
262                             <goal>prepare-agent</goal>
263                         </goals>
264                     </execution>
265                     <execution>
266                         <id>report</id>
267                         <phase>prepare-package</phase>
268                         <goals>
269                             <goal>report</goal>
270                         </goals>
271                     </execution>
272                     <execution>
273                         <id>post-unit-test</id>
274                         <phase>test</phase>
275                         <goals>
276                             <goal>report</goal>
277                         </goals>
278                         <configuration>
279                             <!-- Sets the path to the file which contains the execution data. -->
280                             <dataFile>target/jacoco.exec</dataFile>
281                             <!-- Sets the output directory for the code coverage report. -->
282                             <outputDirectory>target/jacoco-ut</outputDirectory>
283                         </configuration>
284                     </execution>
285                 </executions>
286             </plugin>
287
288         </plugins>
289     </build>
290
291     <!--Added to resolve blackduck operational risks for indirect dependencies referred -->
292     <dependencyManagement>
293         <dependencies>
294             <!-- https://mvnrepository.com/artifact/commons-beanutils/commons-beanutils -->
295             <dependency>
296                 <groupId>commons-beanutils</groupId>
297                 <artifactId>commons-beanutils</artifactId>
298                 <version>${commons.beanutils.version}</version>
299             </dependency>
300             <!-- https://mvnrepository.com/artifact/com.beust/jcommander -->
301             <dependency>
302                 <groupId>com.beust</groupId>
303                 <artifactId>jcommander</artifactId>
304                 <version>${jcommander.version}</version>
305             </dependency>
306             <!-- https://mvnrepository.com/artifact/org.apache.httpcomponents/httpasyncclient -->
307             <dependency>
308                 <groupId>org.apache.httpcomponents</groupId>
309                 <artifactId>httpasyncclient</artifactId>
310                 <version>${httpasyncclient.version}</version>
311             </dependency>
312             <!-- https://mvnrepository.com/artifact/com.sun.xml.bind/jaxb-impl -->
313             <dependency>
314                 <groupId>com.sun.xml.bind</groupId>
315                 <artifactId>jaxb-impl</artifactId>
316                 <version>${jaxb.impl.version}</version>
317             </dependency>
318             <!-- https://mvnrepository.com/artifact/org.beanshell/bsh -->
319             <dependency>
320                 <groupId>org.beanshell</groupId>
321                 <artifactId>bsh</artifactId>
322                 <version>${bsh.version}</version>
323             </dependency>
324             <!-- https://mvnrepository.com/artifact/commons-digester/commons-digester -->
325             <dependency>
326                 <groupId>commons-digester</groupId>
327                 <artifactId>commons-digester</artifactId>
328                 <version>${commons.digester.version}</version>
329             </dependency>
330             <!-- https://mvnrepository.com/artifact/com.fasterxml/classmate -->
331             <dependency>
332                 <groupId>com.fasterxml</groupId>
333                 <artifactId>classmate</artifactId>
334                 <version>${classmate.version}</version>
335             </dependency>
336             <!--1702 -->
337             <!-- https://mvnrepository.com/artifact/org.slf4j/slf4j-api -->
338             <dependency>
339                 <groupId>org.slf4j</groupId>
340                 <artifactId>slf4j-api</artifactId>
341                 <version>${slf4j.version}</version>
342             </dependency>
343             <dependency>
344                 <groupId>org.codehaus.groovy</groupId>
345                 <artifactId>groovy-all</artifactId>
346                 <version>${groovy.version}</version>
347             </dependency>
348             <dependency>
349                 <groupId>org.codehaus.janino</groupId>
350                 <artifactId>janino</artifactId>
351                 <version>${janino.version}</version>
352                 <scope>provided</scope>
353             </dependency>
354         </dependencies>
355     </dependencyManagement>
356
357     <modules>
358         <module>/api</module>
359         <module>/lib</module>
360         <module>/tools/swagger-ui</module>
361         <module>/tools/zusammen-tools</module>
362         <module>/backend</module>
363     </modules>
364     <profiles>
365         <!--<profile>-->
366         <!--<id>docker-staging</id>-->
367         <!--<properties>-->
368         <!--<docker.tag>${project.version}-STAGING-${maven.build.timestamp}</docker.tag>-->
369         <!--<docker.latest.tag>${project.version}-STAGING-latest</docker.latest.tag>-->
370         <!--</properties>-->
371         <!--</profile>-->
372
373         <profile>
374             <id>docker</id>
375             <activation>
376                 <activeByDefault>false</activeByDefault>
377             </activation>
378
379             <modules>
380                 <module>/dist</module>
381             </modules>
382         </profile>
383     </profiles>
384 </project>
385