Create base Sodium 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.0-SNAPSHOT</version>
9     </parent>
10
11     <artifactId>platform-logic-installer</artifactId>
12     <version>1.0.0-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-SNAPSHOT</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     </dependencies>
65
66     <build>
67         <plugins>
68             <plugin>
69                 <artifactId>maven-resources-plugin</artifactId>
70                 <version>2.6</version>
71                 <executions>
72                     <execution>
73                         <id>copy-version</id>
74                         <goals>
75                             <goal>copy-resources</goal>
76                         </goals><!-- here the phase you need -->
77                         <phase>validate</phase>
78                         <configuration>
79                             <outputDirectory>target/resources</outputDirectory>
80                             <resources>
81                                 <resource>
82                                     <directory>src/main/resources</directory>
83                                     <includes>
84                                         <include>*</include>
85                                     </includes>
86                                     <filtering>true</filtering>
87                                 </resource>
88                             </resources>
89                         </configuration>
90                     </execution>
91                 </executions>
92             </plugin>
93             <plugin>
94                 <artifactId>maven-assembly-plugin</artifactId>
95                 <version>2.6</version>
96                 <executions>
97                     <execution>
98                         <id>create-zip</id>
99                         <goals>
100                             <goal>single</goal>
101                         </goals>
102                         <phase>package</phase>
103                         <configuration>
104                             <attach>true</attach>
105                             <descriptors>
106                                 <descriptor>src/assembly/assemble_zip.xml</descriptor>
107                             </descriptors>
108                             <appendAssemblyId>false</appendAssemblyId>
109                         </configuration>
110                     </execution>
111
112                 </executions>
113             </plugin>
114             <plugin>
115                 <groupId>org.apache.maven.plugins</groupId>
116                 <artifactId>maven-dependency-plugin</artifactId>
117                 <executions>
118                     <execution>
119                         <id>copy-dependencies</id>
120                         <goals>
121                             <goal>copy-dependencies</goal>
122                         </goals>
123                         <phase>prepare-package</phase>
124                         <configuration>
125                             <transitive>false</transitive>
126                             <outputDirectory>${project.build.directory}/lib</outputDirectory>
127                             <overWriteReleases>false</overWriteReleases>
128                             <overWriteSnapshots>true</overWriteSnapshots>
129                             <overWriteIfNewer>true</overWriteIfNewer>
130                             <useRepositoryLayout>false</useRepositoryLayout>
131                             <addParentPoms>false</addParentPoms>
132                             <copyPom>false</copyPom>
133                             <scope>provided</scope>
134                         </configuration>
135                     </execution>
136                 </executions>
137             </plugin>
138         </plugins>
139     </build>
140 </project>