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