Effort to reduce image layer and size
[sdnc/oam.git] / data-migrator / pom.xml
1 <?xml version="1.0" encoding="UTF-8"?>
2 <project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" 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     <parent>
6         <groupId>org.onap.sdnc.oam</groupId>
7         <artifactId>sdnc-oam</artifactId>
8         <version>2.2.0-SNAPSHOT</version>
9     </parent>
10
11     <artifactId>data-migrator</artifactId>
12     <packaging>jar</packaging>
13
14     <name>sdnc-oam :: data-migrator</name>
15     <description>MDSAL Data Migrator</description>
16
17     <properties>
18         <skip.SWM>true</skip.SWM>
19         <java.version>11</java.version>
20         <maven.build.timestamp.format>yyyyMMdd'T'HHmmss'Z'</maven.build.timestamp.format>
21         <build.number>${maven.build.timestamp}</build.number>
22         <SWM_VERSION>${project.version}-${build.number}</SWM_VERSION>
23     </properties>
24
25     <dependencies>
26         <dependency>
27             <groupId>org.slf4j</groupId>
28             <artifactId>slf4j-api</artifactId>
29         </dependency>
30         <dependency>
31             <groupId>org.slf4j</groupId>
32             <artifactId>slf4j-log4j12</artifactId>
33             <scope>compile</scope>
34         </dependency>
35         <dependency>
36             <groupId>log4j</groupId>
37             <artifactId>log4j</artifactId>
38         </dependency>
39         <dependency>
40             <groupId>junit</groupId>
41             <artifactId>junit</artifactId>
42             <version>${junit.version}</version>
43             <scope>test</scope>
44         </dependency>
45         <dependency>
46             <groupId>com.google.code.gson</groupId>
47             <artifactId>gson</artifactId>
48         </dependency>
49         <dependency>
50             <groupId>org.apache.commons</groupId>
51             <artifactId>commons-lang3</artifactId>
52         </dependency>
53         <dependency>
54             <groupId>org.reflections</groupId>
55             <artifactId>reflections</artifactId>
56             <version>0.9.9-RC1</version>
57         </dependency>
58         <dependency>
59             <groupId>com.beust</groupId>
60             <artifactId>jcommander</artifactId>
61             <version>1.48</version>
62         </dependency>
63         <dependency>
64             <groupId>com.github.tomakehurst</groupId>
65             <artifactId>wiremock-standalone</artifactId>
66             <version>2.18.0</version>
67             <scope>test</scope>
68         </dependency>
69         <dependency>
70             <groupId>org.onap.ccsdk.sli.core</groupId>
71             <artifactId>utils-provider</artifactId>
72             <version>${ccsdk.sli.version}</version>
73         </dependency>
74     </dependencies>
75
76     <build>
77         <plugins>
78             <plugin>
79                 <groupId>org.apache.maven.plugins</groupId>
80                 <artifactId>maven-compiler-plugin</artifactId>
81                 <version>${maven-compiler-plugin.version}</version>
82                 <configuration>
83                     <release>${java.version}</release>
84                     <!--explicitly remove source and target-->
85                     <source combine.self="override"/>
86                     <target combine.self="override"/>
87                 </configuration>
88             </plugin>
89             <plugin>
90                 <groupId>org.apache.maven.plugins</groupId>
91                 <artifactId>maven-jar-plugin</artifactId>
92                 <configuration>
93                     <archive>
94                         <manifest>
95                             <addClasspath>true</addClasspath>
96                             <mainClass>org.onap.sdnc.oam.datamigrator.DataMigration</mainClass>
97                         </manifest>
98                     </archive>
99                 </configuration>
100             </plugin>
101             <plugin>
102                 <artifactId>maven-assembly-plugin</artifactId>
103                 <executions>
104                     <execution>
105                         <id>create-zip</id>
106                         <goals>
107                             <goal>single</goal>
108                         </goals>
109                         <phase>package</phase>
110                         <configuration>
111                             <attach>true</attach>
112                             <finalName>${project.artifactId}.${project.version}</finalName>
113                             <attach>true</attach>
114                             <descriptors>
115                                 <descriptor>src/assembly/assemble_zip.xml</descriptor>
116                             </descriptors>
117                             <appendAssemblyId>false</appendAssemblyId>
118                         </configuration>
119                     </execution>
120                 </executions>
121             </plugin>
122
123         </plugins>
124     </build>
125 </project>