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