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