Release version 1.1.0 of sli/plugins
[ccsdk/sli/plugins.git] / features / 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</version>
9                 <relativePath/>
10         </parent>
11
12         <groupId>org.onap.ccsdk.sli.plugins</groupId>
13         <artifactId>sliplugins-features-installer</artifactId>
14         <version>1.1.1-SNAPSHOT</version>
15         <packaging>pom</packaging>
16
17         <name>ccsdk-sli-plugins :: features :: ${project.artifactId}</name>
18
19         <properties>
20                 <application.name>ccsdk-sli-plugins-all</application.name>
21                 <features.boot>${application.name}</features.boot>
22                 <features.repositories>mvn:org.onap.ccsdk.sli.plugins/${features.boot}/${project.version}/xml/features</features.repositories>
23                 <include.transitive.dependencies>false</include.transitive.dependencies>
24         </properties>
25
26         <dependencies>
27                 <dependency>
28                         <groupId>org.onap.ccsdk.sli.plugins</groupId>
29                         <artifactId>ccsdk-gr-toolkit</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                 <dependency>
41                         <groupId>org.onap.ccsdk.sli.plugins</groupId>
42                         <artifactId>ccsdk-properties-node</artifactId>
43                         <version>${project.version}</version>
44                         <type>xml</type>
45                         <classifier>features</classifier>
46                         <exclusions>
47                                 <exclusion>
48                                         <groupId>*</groupId>
49                                         <artifactId>*</artifactId>
50                                 </exclusion>
51                         </exclusions>
52                 </dependency>
53                 <dependency>
54                         <groupId>org.onap.ccsdk.sli.plugins</groupId>
55                         <artifactId>ccsdk-restapi-call-node</artifactId>
56                         <version>${project.version}</version>
57                         <type>xml</type>
58                         <classifier>features</classifier>
59                         <exclusions>
60                                 <exclusion>
61                                         <groupId>*</groupId>
62                                         <artifactId>*</artifactId>
63                                 </exclusion>
64                         </exclusions>
65                 </dependency>
66                 <dependency>
67                         <groupId>org.onap.ccsdk.sli.plugins</groupId>
68                         <artifactId>ccsdk-restconf-client</artifactId>
69                         <version>${project.version}</version>
70                         <type>xml</type>
71                         <classifier>features</classifier>
72                         <exclusions>
73                                 <exclusion>
74                                         <groupId>*</groupId>
75                                         <artifactId>*</artifactId>
76                                 </exclusion>
77                         </exclusions>
78                 </dependency>
79                 <dependency>
80                         <groupId>org.onap.ccsdk.sli.plugins</groupId>
81                         <artifactId>ccsdk-sshapi-call-node</artifactId>
82                         <version>${project.version}</version>
83                         <type>xml</type>
84                         <classifier>features</classifier>
85                         <exclusions>
86                                 <exclusion>
87                                         <groupId>*</groupId>
88                                         <artifactId>*</artifactId>
89                                 </exclusion>
90                         </exclusions>
91                 </dependency>
92                 <dependency>
93                         <groupId>org.onap.ccsdk.sli.plugins</groupId>
94                         <artifactId>ccsdk-template-node</artifactId>
95                         <version>${project.version}</version>
96                         <type>xml</type>
97                         <classifier>features</classifier>
98                         <exclusions>
99                                 <exclusion>
100                                         <groupId>*</groupId>
101                                         <artifactId>*</artifactId>
102                                 </exclusion>
103                         </exclusions>
104                 </dependency>
105                 <dependency>
106                         <groupId>org.onap.ccsdk.sli.plugins</groupId>
107                         <artifactId>${application.name}</artifactId>
108                         <version>${project.version}</version>
109                         <type>xml</type>
110                         <classifier>features</classifier>
111                         <exclusions>
112                                 <exclusion>
113                                         <groupId>*</groupId>
114                                         <artifactId>*</artifactId>
115                                 </exclusion>
116                         </exclusions>
117                 </dependency>
118
119
120         </dependencies>
121
122         <build>
123                 <plugins>
124                         <plugin>
125                                 <artifactId>maven-assembly-plugin</artifactId>
126                                 <executions>
127                                         <execution>
128                                                 <id>maven-repo-zip</id>
129                                                 <goals>
130                                                         <goal>single</goal>
131                                                 </goals>
132                                                 <phase>package</phase>
133                                                 <configuration>
134                                                         <attach>true</attach>
135                                                         <finalName>stage/${application.name}-${project.version}</finalName>
136                                                         <descriptors>
137                                                                 <descriptor>src/assembly/assemble_mvnrepo_zip.xml</descriptor>
138                                                         </descriptors>
139                                                         <appendAssemblyId>true</appendAssemblyId>
140                                                 </configuration>
141                                         </execution>
142                                         <execution>
143                                                 <id>installer-zip</id>
144                                                 <goals>
145                                                         <goal>single</goal>
146                                                 </goals>
147                                                 <phase>package</phase>
148                                                 <configuration>
149                                                         <attach>true</attach>
150                                                         <finalName>${application.name}-${project.version}-installer</finalName>
151                                                         <descriptors>
152                                                                 <descriptor>src/assembly/assemble_installer_zip.xml</descriptor>
153                                                         </descriptors>
154                                                         <appendAssemblyId>false</appendAssemblyId>
155                                                 </configuration>
156                                         </execution>
157                                 </executions>
158                         </plugin>
159                         <plugin>
160                                 <groupId>org.apache.maven.plugins</groupId>
161                                 <artifactId>maven-dependency-plugin</artifactId>
162                                 <executions>
163                                         <execution>
164                                                 <id>copy-dependencies</id>
165                                                 <goals>
166                                                         <goal>copy-dependencies</goal>
167                                                 </goals>
168                                                 <phase>prepare-package</phase>
169                                                 <configuration>
170                                                         <transitive>false</transitive>
171                                                         <outputDirectory>${project.build.directory}/assembly/system</outputDirectory>
172                                                         <overWriteReleases>false</overWriteReleases>
173                                                         <overWriteSnapshots>true</overWriteSnapshots>
174                                                         <overWriteIfNewer>true</overWriteIfNewer>
175                                                         <useRepositoryLayout>true</useRepositoryLayout>
176                                                         <addParentPoms>false</addParentPoms>
177                                                         <copyPom>false</copyPom>
178                              <includeGroupIds>org.onap.ccsdk.sli.plugins</includeGroupIds>
179                                                         <scope>provided</scope>
180                                                 </configuration>
181                                         </execution>
182                                 </executions>
183                         </plugin>
184                         <plugin>
185                                 <artifactId>maven-resources-plugin</artifactId>
186                                 <version>2.6</version>
187                                 <executions>
188                                         <execution>
189                                                 <id>copy-version</id>
190                                                 <goals>
191                                                         <goal>copy-resources</goal>
192                                                 </goals><!-- here the phase you need -->
193                                                 <phase>validate</phase>
194                                                 <configuration>
195                                                         <outputDirectory>${basedir}/target/stage</outputDirectory>
196                                                         <resources>
197                                                                 <resource>
198                                                                         <directory>src/main/resources/scripts</directory>
199                                                                         <includes>
200                                                                                 <include>install-feature.sh</include>
201                                                                         </includes>
202                                                                         <filtering>true</filtering>
203                                                                 </resource>
204                                                         </resources>
205                                                 </configuration>
206                                         </execution>
207
208                                 </executions>
209                         </plugin>
210
211                 </plugins>
212         </build>
213 </project>