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