dcbe6b8d274dd11dc6af41615cfb46a5d3b66bdc
[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.2-SNAPSHOT</version>
9                 <relativePath/>
10         </parent>
11
12         <groupId>org.onap.ccsdk.sli.core</groupId>
13         <artifactId>sli-installer</artifactId>
14         <version>0.7.1-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>sli-common</artifactId>
41                         <version>${project.version}</version>
42                 </dependency>
43
44                 <dependency>
45                         <groupId>org.onap.ccsdk.sli.core</groupId>
46                         <artifactId>sli-provider</artifactId>
47                         <version>${project.version}</version>
48                 </dependency>
49
50
51         </dependencies>
52
53         <build>
54                 <plugins>
55                         <plugin>
56                                 <artifactId>maven-assembly-plugin</artifactId>
57                                 <executions>
58                                         <execution>
59                                                 <id>maven-repo-zip</id>
60                                                 <goals>
61                                                         <goal>single</goal>
62                                                 </goals>
63                                                 <phase>package</phase>
64                                                 <configuration>
65                                                         <attach>true</attach>
66                                                         <finalName>stage/${application.name}-${project.version}</finalName>
67                                                         <descriptors>
68                                                                 <descriptor>src/assembly/assemble_mvnrepo_zip.xml</descriptor>
69                                                         </descriptors>
70                                                         <appendAssemblyId>true</appendAssemblyId>
71                                                 </configuration>
72                                         </execution>
73                                         <execution>
74                                                 <id>installer-zip</id>
75                                                 <goals>
76                                                         <goal>single</goal>
77                                                 </goals>
78                                                 <phase>package</phase>
79                                                 <configuration>
80                                                         <attach>true</attach>
81                                                         <finalName>${application.name}-${project.version}-installer</finalName>
82                                                         <descriptors>
83                                                                 <descriptor>src/assembly/assemble_installer_zip.xml</descriptor>
84                                                         </descriptors>
85                                                         <appendAssemblyId>false</appendAssemblyId>
86                                                 </configuration>
87                                         </execution>
88                                 </executions>
89                         </plugin>
90                         <plugin>
91                                 <groupId>org.apache.maven.plugins</groupId>
92                                 <artifactId>maven-dependency-plugin</artifactId>
93                                 <executions>
94                                         <execution>
95                                                 <id>copy-dependencies</id>
96                                                 <goals>
97                                                         <goal>copy-dependencies</goal>
98                                                 </goals>
99                                                 <phase>prepare-package</phase>
100                                                 <configuration>
101                                                         <transitive>false</transitive>
102                                                         <outputDirectory>${project.build.directory}/assembly/system</outputDirectory>
103                                                         <overWriteReleases>false</overWriteReleases>
104                                                         <overWriteSnapshots>true</overWriteSnapshots>
105                                                         <overWriteIfNewer>true</overWriteIfNewer>
106                                                         <useRepositoryLayout>true</useRepositoryLayout>
107                                                         <addParentPoms>false</addParentPoms>
108                                                         <copyPom>false</copyPom>
109                                                         <includeGroupIds>org.onap.ccsdk.sli.core</includeGroupIds>
110                                                         <excludeArtifactIds>utils-provider,dblib-provider</excludeArtifactIds>
111                                                         <scope>provided</scope>
112                                                 </configuration>
113                                         </execution>
114                                 </executions>
115                         </plugin>
116                         <plugin>
117                                 <artifactId>maven-resources-plugin</artifactId>
118                                 <version>2.6</version>
119                                 <executions>
120                                         <execution>
121                                                 <id>copy-version</id>
122                                                 <goals>
123                                                         <goal>copy-resources</goal>
124                                                 </goals><!-- here the phase you need -->
125                                                 <phase>validate</phase>
126                                                 <configuration>
127                                                         <outputDirectory>${basedir}/target/stage</outputDirectory>
128                                                         <resources>
129                                                                 <resource>
130                                                                         <directory>src/main/resources/scripts</directory>
131                                                                         <includes>
132                                                                                 <include>install-feature.sh</include>
133                                                                         </includes>
134                                                                         <filtering>true</filtering>
135                                                                 </resource>
136                                                         </resources>
137                                                 </configuration>
138                                         </execution>
139
140                                 </executions>
141                         </plugin>
142
143                 </plugins>
144         </build>
145 </project>