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