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