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