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