blob: c7b7428e98110f32ee1e773c0dd21be55f00bcfe [file] [log] [blame]
Kalpesh Chaniyara5b759092017-08-15 23:40:34 +05301<?xml version="1.0"?>
2<project xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd" xmlns="http://maven.apache.org/POM/4.0.0"
3 xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
4 <modelVersion>4.0.0</modelVersion>
5 <parent>
6 <groupId>org.openecomp.appc</groupId>
7 <artifactId>appc-sequence-generator</artifactId>
8 <version>1.1.0-SNAPSHOT</version>
9 </parent>
10 <artifactId>appc-sequence-generator-installer</artifactId>
11 <name>Appc Sequence Generator : Karaf Installer</name>
12 <packaging>pom</packaging>
13
14 <properties>
15 <application.name>appc-sequence-generator</application.name>
16 <features.boot>appc-sequence-generator</features.boot>
17 <features.repositories>mvn:com.att.appc/appc-sequence-generator-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-sequence-generator-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-sequence-generator-bundle</artifactId>
40 <version>${project.version}</version>
41 </dependency>
42
43 <dependency>
44 <groupId>org.openecomp.appc</groupId>
45 <artifactId>appc-sequence-generator-bundle</artifactId>
46 <classifier>config</classifier>
47 <version>${project.version}</version>
48 <type>xml</type>
49 </dependency>
50
51 <dependency>
52 <groupId>org.openecomp.appc</groupId>
53 <artifactId>appc-sequence-generator-model</artifactId>
54 <version>${project.version}</version>
55 <!--<type>properties</type>-->
56 </dependency>
57
58 </dependencies>
59
60 <build>
61 <plugins>
62 <plugin>
63 <artifactId>maven-assembly-plugin</artifactId>
64 <executions>
65 <execution>
66 <id>maven-repo-zip</id>
67 <goals>
68 <goal>single</goal>
69 </goals>
70 <phase>package</phase>
71 <configuration>
72 <appendAssemblyId>false</appendAssemblyId>
73 <attach>false</attach>
74 <finalName>stage/${application.name}-${project.version}</finalName>
75 <descriptors>
76 <descriptor>src/assembly/assemble_mvnrepo_zip.xml</descriptor>
77 </descriptors>
78 </configuration>
79 </execution>
80 <execution>
81 <id>installer-zip</id>
82 <goals>
83 <goal>single</goal>
84 </goals>
85 <phase>package</phase>
86 <configuration>
87 <appendAssemblyId>false</appendAssemblyId>
88 <attach>true</attach>
89 <finalName>${application.name}-${project.version}</finalName>
90 <descriptors>
91 <descriptor>src/assembly/assemble_installer_zip.xml</descriptor>
92 </descriptors>
93 </configuration>
94 </execution>
95 </executions>
96 </plugin>
97 <plugin>
98 <groupId>org.apache.maven.plugins</groupId>
99 <artifactId>maven-dependency-plugin</artifactId>
100 <executions>
101 <execution>
102 <id>copy-dependencies</id>
103 <goals>
104 <goal>copy-dependencies</goal>
105 </goals>
106 <phase>prepare-package</phase>
107 <configuration>
108 <transitive>false</transitive>
109 <outputDirectory>${project.build.directory}/assembly/system</outputDirectory>
110 <overWriteReleases>false</overWriteReleases>
111 <overWriteSnapshots>true</overWriteSnapshots>
112 <overWriteIfNewer>true</overWriteIfNewer>
113 <useRepositoryLayout>true</useRepositoryLayout>
114 <addParentPoms>false</addParentPoms>
115 <copyPom>false</copyPom>
116 <excludeGroupIds>org.opendaylight</excludeGroupIds>
117 <scope>provided</scope>
118 </configuration>
119 </execution>
120 </executions>
121 </plugin>
122 <plugin>
123 <artifactId>maven-resources-plugin</artifactId>
124 <executions>
125 <execution>
126 <id>copy-version</id>
127 <goals>
128 <goal>copy-resources</goal>
129 </goals>
130 <!-- here the phase you need -->
131 <phase>validate</phase>
132 <configuration>
133 <outputDirectory>${basedir}/target/stage</outputDirectory>
134 <resources>
135 <resource>
136 <directory>src/main/resources/scripts</directory>
137 <includes>
138 <include>install-feature.sh</include>
139 </includes>
140 <filtering>true</filtering>
141 </resource>
142 </resources>
143 </configuration>
144 </execution>
145 </executions>
146 </plugin>
147 </plugins>
148 </build>
149</project>