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