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