blob: 9af28bf6a209676a2d95b10c1d34146b357b4771 [file] [log] [blame]
Skip Wonnellab6c2c02017-08-14 17:47:10 -05001<?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"
3 xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
4 <modelVersion>4.0.0</modelVersion>
5 <parent>
6 <artifactId>appc-artifact-handler</artifactId>
7 <groupId>org.openecomp.appc</groupId>
8 <version>1.1.0-SNAPSHOT</version>
9 </parent>
10 <artifactId>appc-artifact-handler-installer</artifactId>
11 <name>appc-artifact-handler-installer</name>
12 <packaging>pom</packaging>
13
14 <properties>
15 <application.name>appc-artifact-handler</application.name>
16 <features.boot>appc-artifact-handler</features.boot>
17 <features.repositories>mvn:org.openecomp.appc/appc-artifact-handler-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-artifact-handler-features</artifactId>
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 <dependency>
36 <groupId>org.openecomp.appc</groupId>
37 <artifactId>appc-artifact-handler-provider</artifactId>
38 </dependency>
39
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 </plugins>
130 </build>
131
132</project>