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