cc681d33aaa55994577c8feeaeefbd64450675eb
[ccsdk/sli/northbound.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-SNAPSHOT</version>
9         <relativePath/>
10     </parent>
11
12     <groupId>org.onap.ccsdk.sli.northbound</groupId>
13     <artifactId>slinorthbound-features-installer</artifactId>
14     <version>1.1.0-SNAPSHOT</version>
15     <packaging>pom</packaging>
16
17     <name>ccsdk-sli-northbound :: features :: ${project.artifactId}</name>
18
19     <properties>
20         <application.name>ccsdk-sli-northbound-all</application.name>
21         <features.boot>${application.name}</features.boot>
22         <features.repositories>mvn:org.onap.ccsdk.sli.northbound/${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.northbound</groupId>
29             <artifactId>ccsdk-asdcApi</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.northbound</groupId>
42             <artifactId>ccsdk-daexim-offsite-backup</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.northbound</groupId>
55             <artifactId>ccsdk-dataChange</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.northbound</groupId>
68             <artifactId>ccsdk-lcm</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
80
81         <dependency>
82             <groupId>org.onap.ccsdk.sli.northbound</groupId>
83             <artifactId>${application.name}</artifactId>
84             <version>${project.version}</version>
85             <type>xml</type>
86             <classifier>features</classifier>
87             <exclusions>
88                 <exclusion>
89                     <groupId>*</groupId>
90                     <artifactId>*</artifactId>
91                 </exclusion>
92             </exclusions>
93         </dependency>
94
95
96     </dependencies>
97
98     <build>
99         <plugins>
100             <plugin>
101                 <artifactId>maven-assembly-plugin</artifactId>
102                 <executions>
103                     <execution>
104                         <id>maven-repo-zip</id>
105                         <goals>
106                             <goal>single</goal>
107                         </goals>
108                         <phase>package</phase>
109                         <configuration>
110                             <attach>true</attach>
111                             <finalName>stage/${application.name}-${project.version}</finalName>
112                             <descriptors>
113                                 <descriptor>src/assembly/assemble_mvnrepo_zip.xml</descriptor>
114                             </descriptors>
115                             <appendAssemblyId>true</appendAssemblyId>
116                         </configuration>
117                     </execution>
118                     <execution>
119                         <id>installer-zip</id>
120                         <goals>
121                             <goal>single</goal>
122                         </goals>
123                         <phase>package</phase>
124                         <configuration>
125                             <attach>true</attach>
126                             <finalName>${application.name}-${project.version}-installer</finalName>
127                             <descriptors>
128                                 <descriptor>src/assembly/assemble_installer_zip.xml</descriptor>
129                             </descriptors>
130                             <appendAssemblyId>false</appendAssemblyId>
131                         </configuration>
132                     </execution>
133                 </executions>
134             </plugin>
135             <plugin>
136                 <groupId>org.apache.maven.plugins</groupId>
137                 <artifactId>maven-dependency-plugin</artifactId>
138                 <executions>
139                     <execution>
140                         <id>copy-dependencies</id>
141                         <goals>
142                             <goal>copy-dependencies</goal>
143                         </goals>
144                         <phase>prepare-package</phase>
145                         <configuration>
146                             <transitive>false</transitive>
147                             <outputDirectory>${project.build.directory}/assembly/system</outputDirectory>
148                             <overWriteReleases>false</overWriteReleases>
149                             <overWriteSnapshots>true</overWriteSnapshots>
150                             <overWriteIfNewer>true</overWriteIfNewer>
151                             <useRepositoryLayout>true</useRepositoryLayout>
152                             <addParentPoms>false</addParentPoms>
153                             <copyPom>false</copyPom>
154                              <includeGroupIds>org.onap.ccsdk.sli.northbound</includeGroupIds>
155                             <scope>provided</scope>
156                         </configuration>
157                     </execution>
158                 </executions>
159             </plugin>
160             <plugin>
161                 <artifactId>maven-resources-plugin</artifactId>
162                 <version>2.6</version>
163                 <executions>
164                     <execution>
165                         <id>copy-version</id>
166                         <goals>
167                             <goal>copy-resources</goal>
168                         </goals><!-- here the phase you need -->
169                         <phase>validate</phase>
170                         <configuration>
171                             <outputDirectory>${basedir}/target/stage</outputDirectory>
172                             <resources>
173                                 <resource>
174                                     <directory>src/main/resources/scripts</directory>
175                                     <includes>
176                                         <include>install-feature.sh</include>
177                                     </includes>
178                                     <filtering>true</filtering>
179                                 </resource>
180                             </resources>
181                         </configuration>
182                     </execution>
183
184                 </executions>
185             </plugin>
186
187         </plugins>
188     </build>
189 </project>