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