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