Update parent version to 1.3.1
[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.3.1-SNAPSHOT</version>
9                 <relativePath/>
10         </parent>
11
12         <groupId>org.onap.ccsdk.sli.core</groupId>
13         <artifactId>filters-installer</artifactId>
14         <version>0.5.0-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         <dependencyManagement>
27                 <dependencies>
28                 
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         
47
48         <dependencies>
49
50                 <dependency>
51                         <groupId>org.onap.ccsdk.sli.core</groupId>
52                         <artifactId>${application.name}</artifactId>
53                         <version>${project.version}</version>
54                         <type>xml</type>
55                         <classifier>features</classifier>
56                         <exclusions>
57                                 <exclusion>
58                                         <groupId>*</groupId>
59                                         <artifactId>*</artifactId>
60                                 </exclusion>
61                         </exclusions>
62                 </dependency>
63
64                 <dependency>
65                         <groupId>org.onap.ccsdk.sli.core</groupId>
66                         <artifactId>filters-provider</artifactId>
67                         <version>${project.version}</version>
68                 </dependency>
69
70
71         </dependencies>
72
73         <build>
74                 <plugins>
75                         <plugin>
76                                 <artifactId>maven-assembly-plugin</artifactId>
77                                 <executions>
78                                         <execution>
79                                                 <id>maven-repo-zip</id>
80                                                 <goals>
81                                                         <goal>single</goal>
82                                                 </goals>
83                                                 <phase>package</phase>
84                                                 <configuration>
85                                                         <attach>true</attach>
86                                                         <finalName>stage/${application.name}-${project.version}</finalName>
87                                                         <descriptors>
88                                                                 <descriptor>src/assembly/assemble_mvnrepo_zip.xml</descriptor>
89                                                         </descriptors>
90                                                         <appendAssemblyId>true</appendAssemblyId>
91                                                 </configuration>
92                                         </execution>
93                                         <execution>
94                                                 <id>installer-zip</id>
95                                                 <goals>
96                                                         <goal>single</goal>
97                                                 </goals>
98                                                 <phase>package</phase>
99                                                 <configuration>
100                                                         <attach>true</attach>
101                                                         <finalName>${application.name}-${project.version}-installer</finalName>
102                                                         <descriptors>
103                                                                 <descriptor>src/assembly/assemble_installer_zip.xml</descriptor>
104                                                         </descriptors>
105                                                         <appendAssemblyId>false</appendAssemblyId>
106                                                 </configuration>
107                                         </execution>
108                                 </executions>
109                         </plugin>
110                         <plugin>
111                                 <groupId>org.apache.maven.plugins</groupId>
112                                 <artifactId>maven-dependency-plugin</artifactId>
113                                 <executions>
114                                         <execution>
115                                                 <id>copy-dependencies</id>
116                                                 <goals>
117                                                         <goal>copy-dependencies</goal>
118                                                 </goals>
119                                                 <phase>prepare-package</phase>
120                                                 <configuration>
121                                                         <transitive>false</transitive>
122                                                         <outputDirectory>${project.build.directory}/assembly/system</outputDirectory>
123                                                         <overWriteReleases>false</overWriteReleases>
124                                                         <overWriteSnapshots>true</overWriteSnapshots>
125                                                         <overWriteIfNewer>true</overWriteIfNewer>
126                                                         <useRepositoryLayout>true</useRepositoryLayout>
127                                                         <addParentPoms>false</addParentPoms>
128                                                         <copyPom>false</copyPom>
129                                                         <includeGroupIds>org.onap.ccsdk.sli.core</includeGroupIds>
130                                                         <excludeArtifactIds>sli-common,sli-provider,utils-provider,dblib-provider</excludeArtifactIds>
131                                                         <scope>provided</scope>
132                                                 </configuration>
133                                         </execution>
134                                 </executions>
135                         </plugin>
136                         <plugin>
137                                 <artifactId>maven-resources-plugin</artifactId>
138                                 <version>2.6</version>
139                                 <executions>
140                                         <execution>
141                                                 <id>copy-version</id>
142                                                 <goals>
143                                                         <goal>copy-resources</goal>
144                                                 </goals><!-- here the phase you need -->
145                                                 <phase>validate</phase>
146                                                 <configuration>
147                                                         <outputDirectory>${basedir}/target/stage</outputDirectory>
148                                                         <resources>
149                                                                 <resource>
150                                                                         <directory>src/main/resources/scripts</directory>
151                                                                         <includes>
152                                                                                 <include>install-feature.sh</include>
153                                                                         </includes>
154                                                                         <filtering>true</filtering>
155                                                                 </resource>
156                                                         </resources>
157                                                 </configuration>
158                                         </execution>
159
160                                 </executions>
161                         </plugin>
162
163                 </plugins>
164         </build>
165 </project>