Use Java 11 base docker image
[ccsdk/distribution.git] / platform-logic / installer / 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.ccsdk.distribution</groupId>
7         <artifactId>distribution-platform-logic</artifactId>
8         <version>1.0.1-SNAPSHOT</version>
9     </parent>
10
11     <artifactId>platform-logic-installer</artifactId>
12     <version>1.0.1-SNAPSHOT</version>
13     <packaging>pom</packaging>
14
15     <name>ccsdk-distribution :: platform-logic :: ${project.artifactId}</name>
16     <description>Contains platform-level service logic installer</description>
17
18     <properties>
19         <ccsdk.sli.core.version>1.0.0</ccsdk.sli.core.version>
20     </properties>
21     <dependencyManagement>
22         <dependencies>
23                 <dependency>
24                         <groupId>org.onap.ccsdk.sli.core</groupId>
25                         <artifactId>sli-core-artifacts</artifactId>
26                         <version>${ccsdk.sli.core.version}</version>
27                         <type>pom</type>
28                         <scope>import</scope>
29                 </dependency>
30         </dependencies>
31     </dependencyManagement>
32     <dependencies>
33         <dependency>
34             <groupId>org.slf4j</groupId>
35             <artifactId>slf4j-api</artifactId>
36             <version>${slf4j.version}</version>
37         </dependency>
38         <dependency>
39             <groupId>org.slf4j</groupId>
40             <artifactId>slf4j-simple</artifactId>
41             <version>${slf4j.version}</version>
42         </dependency>
43         <dependency>
44             <groupId>org.onap.ccsdk.sli.core</groupId>
45             <artifactId>sli-common</artifactId>
46         </dependency>
47         <!-- 1911: 8/22 We are missing org.osgi.framework.FrameworkUtil classes while activating DG -->
48         <dependency>
49             <groupId>org.apache.felix</groupId>
50             <artifactId>org.apache.felix.framework</artifactId>
51             <version>5.6.10</version>
52             <scope>provided</scope>
53         </dependency>
54         <dependency>
55             <groupId>org.antlr</groupId>
56             <artifactId>antlr4</artifactId>
57             <version>${antlr.version}</version>
58         </dependency>
59         <dependency>
60             <groupId>org.mariadb.jdbc</groupId>
61             <artifactId>mariadb-java-client</artifactId>
62             <version>${mariadb.connector.version}</version>
63         </dependency>
64         <!-- Java 11 : need to install JAXB implementation libraries-->
65         <dependency>
66             <groupId>javax.xml.bind</groupId>
67             <artifactId>jaxb-api</artifactId>
68         </dependency>
69         <dependency>
70             <groupId>com.sun.xml.bind</groupId>
71             <artifactId>jaxb-core</artifactId>
72         </dependency>
73         <dependency>
74             <groupId>com.sun.xml.bind</groupId>
75             <artifactId>jaxb-impl</artifactId>
76         </dependency>
77     </dependencies>
78
79     <build>
80         <plugins>
81             <plugin>
82                 <artifactId>maven-resources-plugin</artifactId>
83                 <version>2.6</version>
84                 <executions>
85                     <execution>
86                         <id>copy-version</id>
87                         <goals>
88                             <goal>copy-resources</goal>
89                         </goals><!-- here the phase you need -->
90                         <phase>validate</phase>
91                         <configuration>
92                             <outputDirectory>target/resources</outputDirectory>
93                             <resources>
94                                 <resource>
95                                     <directory>src/main/resources</directory>
96                                     <includes>
97                                         <include>*</include>
98                                     </includes>
99                                     <filtering>true</filtering>
100                                 </resource>
101                             </resources>
102                         </configuration>
103                     </execution>
104                 </executions>
105             </plugin>
106             <plugin>
107                 <artifactId>maven-assembly-plugin</artifactId>
108                 <version>2.6</version>
109                 <executions>
110                     <execution>
111                         <id>create-zip</id>
112                         <goals>
113                             <goal>single</goal>
114                         </goals>
115                         <phase>package</phase>
116                         <configuration>
117                             <attach>true</attach>
118                             <descriptors>
119                                 <descriptor>src/assembly/assemble_zip.xml</descriptor>
120                             </descriptors>
121                             <appendAssemblyId>false</appendAssemblyId>
122                         </configuration>
123                     </execution>
124
125                 </executions>
126             </plugin>
127             <plugin>
128                 <groupId>org.apache.maven.plugins</groupId>
129                 <artifactId>maven-dependency-plugin</artifactId>
130                 <executions>
131                     <execution>
132                         <id>copy-dependencies</id>
133                         <goals>
134                             <goal>copy-dependencies</goal>
135                         </goals>
136                         <phase>prepare-package</phase>
137                         <configuration>
138                             <transitive>false</transitive>
139                             <outputDirectory>${project.build.directory}/lib</outputDirectory>
140                             <overWriteReleases>false</overWriteReleases>
141                             <overWriteSnapshots>true</overWriteSnapshots>
142                             <overWriteIfNewer>true</overWriteIfNewer>
143                             <useRepositoryLayout>false</useRepositoryLayout>
144                             <addParentPoms>false</addParentPoms>
145                             <copyPom>false</copyPom>
146                             <scope>provided</scope>
147                         </configuration>
148                     </execution>
149                 </executions>
150             </plugin>
151         </plugins>
152     </build>
153 </project>