ecc73ec1e663f05db7f3a42d4b05ad98235eb5e2
[ccsdk/sli/core.git] / dblib / 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.parent</groupId>
7                 <artifactId>odlparent-lite</artifactId>
8                 <version>1.5.2-SNAPSHOT</version>
9                 <relativePath/>
10         </parent>
11
12         <groupId>org.onap.ccsdk.sli.core</groupId>
13         <artifactId>dblib-installer</artifactId>
14         <version>0.7.1-SNAPSHOT</version>
15         <packaging>pom</packaging>
16
17         <name>ccsdk-sli-core :: dblib :: ${project.artifactId}</name>
18
19         <properties>
20                 <application.name>ccsdk-dblib</application.name>
21                 <features.boot>${application.name}</features.boot>
22                 <features.repositories>mvn:org.onap.ccsdk.sli.core/${features.boot}/${project.version}/xml/features</features.repositories>
23                 <include.transitive.dependencies>false</include.transitive.dependencies>
24         </properties>
25
26         <dependencies>
27
28                 <dependency>
29                         <groupId>org.onap.ccsdk.sli.core</groupId>
30                         <artifactId>dblib-provider</artifactId>
31                         <version>${project.version}</version>
32                 </dependency>
33
34         </dependencies>
35
36         <build>
37                 <plugins>
38                         <plugin>
39                                 <artifactId>maven-assembly-plugin</artifactId>
40                                 <executions>
41                                         <execution>
42                                                 <id>maven-repo-zip</id>
43                                                 <goals>
44                                                         <goal>single</goal>
45                                                 </goals>
46                                                 <phase>package</phase>
47                                                 <configuration>
48                                                         <attach>true</attach>
49                                                         <finalName>stage/${application.name}-${project.version}</finalName>
50                                                         <descriptors>
51                                                                 <descriptor>src/assembly/assemble_mvnrepo_zip.xml</descriptor>
52                                                         </descriptors>
53                                                         <appendAssemblyId>true</appendAssemblyId>
54                                                 </configuration>
55                                         </execution>
56                                         <execution>
57                                                 <id>installer-zip</id>
58                                                 <goals>
59                                                         <goal>single</goal>
60                                                 </goals>
61                                                 <phase>package</phase>
62                                                 <configuration>
63                                                         <attach>true</attach>
64                                                         <finalName>${application.name}-${project.version}-installer</finalName>
65                                                         <descriptors>
66                                                                 <descriptor>src/assembly/assemble_installer_zip.xml</descriptor>
67                                                         </descriptors>
68                                                         <appendAssemblyId>false</appendAssemblyId>
69                                                 </configuration>
70                                         </execution>
71                                 </executions>
72                         </plugin>
73                         <plugin>
74                                 <groupId>org.apache.maven.plugins</groupId>
75                                 <artifactId>maven-dependency-plugin</artifactId>
76                                 <executions>
77                                         <execution>
78                                                 <id>copy-dependencies</id>
79                                                 <goals>
80                                                         <goal>copy-dependencies</goal>
81                                                 </goals>
82                                                 <phase>prepare-package</phase>
83                                                 <configuration>
84                                                         <transitive>false</transitive>
85                                                         <outputDirectory>${project.build.directory}/assembly/system</outputDirectory>
86                                                         <overWriteReleases>false</overWriteReleases>
87                                                         <overWriteSnapshots>true</overWriteSnapshots>
88                                                         <overWriteIfNewer>true</overWriteIfNewer>
89                                                         <useRepositoryLayout>true</useRepositoryLayout>
90                                                         <addParentPoms>false</addParentPoms>
91                                                         <copyPom>false</copyPom>
92                              <includeGroupIds>org.onap.ccsdk.sli.core</includeGroupIds>
93                                                         <excludeArtifactIds>utils-provider</excludeArtifactIds>
94                                                         <scope>provided</scope>
95                                                 </configuration>
96                                         </execution>
97                                 </executions>
98                         </plugin>
99                         <plugin>
100                                 <artifactId>maven-resources-plugin</artifactId>
101                                 <version>2.6</version>
102                                 <executions>
103                                         <execution>
104                                                 <id>copy-version</id>
105                                                 <goals>
106                                                         <goal>copy-resources</goal>
107                                                 </goals><!-- here the phase you need -->
108                                                 <phase>validate</phase>
109                                                 <configuration>
110                                                         <outputDirectory>${basedir}/target/stage</outputDirectory>
111                                                         <resources>
112                                                                 <resource>
113                                                                         <directory>src/main/resources/scripts</directory>
114                                                                         <includes>
115                                                                                 <include>install-feature.sh</include>
116                                                                         </includes>
117                                                                         <filtering>true</filtering>
118                                                                 </resource>
119                                                         </resources>
120                                                 </configuration>
121                                         </execution>
122
123                                 </executions>
124                         </plugin>
125
126                 </plugins>
127         </build>
128 </project>