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