blob: e40d7ba7f469628542eed499824fde4bbddd4679 [file] [log] [blame]
Patrick Brady57b5eef2017-02-10 15:00:49 -08001<?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>
Patrick Brady88439692017-02-24 00:04:10 -08007 <version>1.0.0-SNAPSHOT</version>
Patrick Brady57b5eef2017-02-10 15:00:49 -08008 </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 </dependencies>
41
42 <build>
43 <plugins>
44 <plugin>
45 <artifactId>maven-assembly-plugin</artifactId>
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 <appendAssemblyId>false</appendAssemblyId>
55 <attach>false</attach>
56 <finalName>stage/${application.name}-${project.version}</finalName>
57 <descriptors>
58 <descriptor>src/assembly/assemble_mvnrepo_zip.xml</descriptor>
59 </descriptors>
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 <appendAssemblyId>false</appendAssemblyId>
70 <attach>true</attach>
71 <finalName>${application.name}-${project.version}</finalName>
72 <descriptors>
73 <descriptor>src/assembly/assemble_installer_zip.xml</descriptor>
74 </descriptors>
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 <excludeGroupIds>org.opendaylight</excludeGroupIds>
99 <scope>provided</scope>
100 </configuration>
101 </execution>
102 </executions>
103 </plugin>
104 <plugin>
105 <artifactId>maven-resources-plugin</artifactId>
106 <executions>
107 <execution>
108 <id>copy-version</id>
109 <goals>
110 <goal>copy-resources</goal>
111 </goals>
112 <!-- 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 </executions>
128 </plugin>
129
130 </plugins>
131 </build>
132
133</project>