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