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