Clean up installers
[ccsdk/sli/core.git] / sli / 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.1-SNAPSHOT</version>
9                 <relativePath/>
10         </parent>
11
12         <groupId>org.onap.ccsdk.sli.core</groupId>
13         <artifactId>sli-installer</artifactId>
14         <version>0.7.0-SNAPSHOT</version>
15         <packaging>pom</packaging>
16
17         <name>ccsdk-sli-core :: sli :: ${project.artifactId}</name>
18
19         <properties>
20                 <application.name>ccsdk-sli</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         <dependencyManagement>
27                 <dependencies>
28                         <dependency>
29                                 <groupId>org.onap.ccsdk.sli.core</groupId>
30                                 <artifactId>dblib-provider</artifactId>
31                                 <version>${project.version}</version>
32                         </dependency>
33                 </dependencies>
34         </dependencyManagement>
35         
36         <dependencies>
37
38                 <dependency>
39                         <groupId>org.onap.ccsdk.sli.core</groupId>
40                         <artifactId>${application.name}</artifactId>
41                         <version>${project.version}</version>
42                         <type>xml</type>
43                         <classifier>features</classifier>
44                         <exclusions>
45                                 <exclusion>
46                                         <groupId>*</groupId>
47                                         <artifactId>*</artifactId>
48                                 </exclusion>
49                         </exclusions>
50                 </dependency>
51
52                 <dependency>
53                         <groupId>org.onap.ccsdk.sli.core</groupId>
54                         <artifactId>sli-common</artifactId>
55                         <version>${project.version}</version>
56                 </dependency>
57
58                 <dependency>
59                         <groupId>org.onap.ccsdk.sli.core</groupId>
60                         <artifactId>sli-provider</artifactId>
61                         <version>${project.version}</version>
62                 </dependency>
63
64                 <dependency>
65                         <groupId>org.onap.ccsdk.sli.core</groupId>
66                         <artifactId>sli-recording</artifactId>
67                         <version>${project.version}</version>
68                 </dependency>
69
70         </dependencies>
71
72         <build>
73                 <plugins>
74                         <plugin>
75                                 <artifactId>maven-assembly-plugin</artifactId>
76                                 <executions>
77                                         <execution>
78                                                 <id>maven-repo-zip</id>
79                                                 <goals>
80                                                         <goal>single</goal>
81                                                 </goals>
82                                                 <phase>package</phase>
83                                                 <configuration>
84                                                         <attach>true</attach>
85                                                         <finalName>stage/${application.name}-${project.version}</finalName>
86                                                         <descriptors>
87                                                                 <descriptor>src/assembly/assemble_mvnrepo_zip.xml</descriptor>
88                                                         </descriptors>
89                                                         <appendAssemblyId>true</appendAssemblyId>
90                                                 </configuration>
91                                         </execution>
92                                         <execution>
93                                                 <id>installer-zip</id>
94                                                 <goals>
95                                                         <goal>single</goal>
96                                                 </goals>
97                                                 <phase>package</phase>
98                                                 <configuration>
99                                                         <attach>true</attach>
100                                                         <finalName>${application.name}-${project.version}-installer</finalName>
101                                                         <descriptors>
102                                                                 <descriptor>src/assembly/assemble_installer_zip.xml</descriptor>
103                                                         </descriptors>
104                                                         <appendAssemblyId>false</appendAssemblyId>
105                                                 </configuration>
106                                         </execution>
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}/assembly/system</outputDirectory>
122                                                         <overWriteReleases>false</overWriteReleases>
123                                                         <overWriteSnapshots>true</overWriteSnapshots>
124                                                         <overWriteIfNewer>true</overWriteIfNewer>
125                                                         <useRepositoryLayout>true</useRepositoryLayout>
126                                                         <addParentPoms>false</addParentPoms>
127                                                         <copyPom>false</copyPom>
128                                                         <includeGroupIds>org.onap.ccsdk.sli.core</includeGroupIds>
129                                                         <excludeArtifactIds>utils-provider,dblib-provider</excludeArtifactIds>
130                                                         <scope>provided</scope>
131                                                 </configuration>
132                                         </execution>
133                                 </executions>
134                         </plugin>
135                         <plugin>
136                                 <artifactId>maven-resources-plugin</artifactId>
137                                 <version>2.6</version>
138                                 <executions>
139                                         <execution>
140                                                 <id>copy-version</id>
141                                                 <goals>
142                                                         <goal>copy-resources</goal>
143                                                 </goals><!-- here the phase you need -->
144                                                 <phase>validate</phase>
145                                                 <configuration>
146                                                         <outputDirectory>${basedir}/target/stage</outputDirectory>
147                                                         <resources>
148                                                                 <resource>
149                                                                         <directory>src/main/resources/scripts</directory>
150                                                                         <includes>
151                                                                                 <include>install-feature.sh</include>
152                                                                         </includes>
153                                                                         <filtering>true</filtering>
154                                                                 </resource>
155                                                         </resources>
156                                                 </configuration>
157                                         </execution>
158
159                                 </executions>
160                         </plugin>
161
162                 </plugins>
163         </build>
164 </project>