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