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