a84cd1448c49433171a2a7c6384b2d8b98f0b31a
[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>0.5.0-SNAPSHOT</version>
9     </parent>
10
11     <artifactId>platform-logic-installer</artifactId>
12     <version>0.5.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     <dependencyManagement>
18         <dependencies>
19                 <dependency>
20                         <groupId>org.onap.ccsdk.sli.core</groupId>
21                         <artifactId>sli-core-artifacts</artifactId>
22                         <version>${ccsdk.sli.core.version}</version>
23                         <type>pom</type>
24                         <scope>import</scope>
25                 </dependency>
26         </dependencies>
27     </dependencyManagement>
28     <dependencies>
29         <dependency>
30             <groupId>org.slf4j</groupId>
31             <artifactId>slf4j-api</artifactId>
32             <version>${slf4j.version}</version>
33         </dependency>
34         <dependency>
35             <groupId>org.slf4j</groupId>
36             <artifactId>slf4j-simple</artifactId>
37             <version>${slf4j.version}</version>
38         </dependency>
39         <dependency>
40             <groupId>org.onap.ccsdk.sli.core</groupId>
41             <artifactId>sli-common</artifactId>
42         </dependency>
43         <dependency>
44             <groupId>org.antlr</groupId>
45             <artifactId>antlr4</artifactId>
46             <version>${antlr.version}</version>
47         </dependency>
48         <dependency>
49             <groupId>org.mariadb.jdbc</groupId>
50             <artifactId>mariadb-java-client</artifactId>
51             <version>${mariadb.connector.version}</version>
52         </dependency>
53     </dependencies>
54
55     <build>
56         <plugins>
57             <plugin>
58                 <artifactId>maven-resources-plugin</artifactId>
59                 <version>2.6</version>
60                 <executions>
61                     <execution>
62                         <id>copy-version</id>
63                         <goals>
64                             <goal>copy-resources</goal>
65                         </goals><!-- here the phase you need -->
66                         <phase>validate</phase>
67                         <configuration>
68                             <outputDirectory>target/resources</outputDirectory>
69                             <resources>
70                                 <resource>
71                                     <directory>src/main/resources</directory>
72                                     <includes>
73                                         <include>*</include>
74                                     </includes>
75                                     <filtering>true</filtering>
76                                 </resource>
77                             </resources>
78                         </configuration>
79                     </execution>
80                 </executions>
81             </plugin>
82             <plugin>
83                 <artifactId>maven-assembly-plugin</artifactId>
84                 <version>2.6</version>
85                 <executions>
86                     <execution>
87                         <id>create-zip</id>
88                         <goals>
89                             <goal>single</goal>
90                         </goals>
91                         <phase>package</phase>
92                         <configuration>
93                             <attach>true</attach>
94                             <descriptors>
95                                 <descriptor>src/assembly/assemble_zip.xml</descriptor>
96                             </descriptors>
97                             <appendAssemblyId>false</appendAssemblyId>
98                         </configuration>
99                     </execution>
100
101                 </executions>
102             </plugin>
103             <plugin>
104                 <groupId>org.apache.maven.plugins</groupId>
105                 <artifactId>maven-dependency-plugin</artifactId>
106                 <executions>
107                     <execution>
108                         <id>copy-dependencies</id>
109                         <goals>
110                             <goal>copy-dependencies</goal>
111                         </goals>
112                         <phase>prepare-package</phase>
113                         <configuration>
114                             <transitive>false</transitive>
115                             <outputDirectory>${project.build.directory}/lib</outputDirectory>
116                             <overWriteReleases>false</overWriteReleases>
117                             <overWriteSnapshots>true</overWriteSnapshots>
118                             <overWriteIfNewer>true</overWriteIfNewer>
119                             <useRepositoryLayout>false</useRepositoryLayout>
120                             <addParentPoms>false</addParentPoms>
121                             <copyPom>false</copyPom>
122                             <scope>provided</scope>
123                         </configuration>
124                     </execution>
125                 </executions>
126             </plugin>
127         </plugins>
128     </build>
129 </project>