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