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