b49d23c3cac88280b8e2974ed7815ed78b9af350
[appc.git] / appc-sequence-generator / appc-sequence-generator-installer / pom.xml
1 <?xml version="1.0"?>
2 <!--
3  ============LICENSE_START=======================================================
4  ONAP : APPC
5  ================================================================================
6  Copyright (C) 2017 AT&T Intellectual Property. All rights reserved.
7  ================================================================================
8  Copyright (C) 2017 Amdocs
9  =============================================================================
10  Licensed under the Apache License, Version 2.0 (the "License");
11  you may not use this file except in compliance with the License.
12  You may obtain a copy of the License at
13
14       http://www.apache.org/licenses/LICENSE-2.0
15
16  Unless required by applicable law or agreed to in writing, software
17  distributed under the License is distributed on an "AS IS" BASIS,
18  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
19  See the License for the specific language governing permissions and
20  limitations under the License.
21
22  ECOMP is a trademark and service mark of AT&T Intellectual Property.
23  ============LICENSE_END=========================================================
24 -->
25 <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"
26     xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
27   <modelVersion>4.0.0</modelVersion>
28   <parent>
29     <groupId>org.openecomp.appc</groupId>
30     <artifactId>appc-sequence-generator</artifactId>
31     <version>1.2.0-SNAPSHOT</version>
32   </parent>
33   <artifactId>appc-sequence-generator-installer</artifactId>
34   <name>Appc Sequence Generator : Karaf Installer</name>
35   <packaging>pom</packaging>
36
37   <properties>
38     <application.name>appc-sequence-generator</application.name>
39     <features.boot>appc-sequence-generator</features.boot>
40     <features.repositories>mvn:org.openecomp.appc/appc-sequence-generator-features/${project.version}/xml/features</features.repositories>
41     <include.transitive.dependencies>false</include.transitive.dependencies>
42   </properties>
43
44   <dependencies>
45
46     <dependency>
47       <groupId>org.openecomp.appc</groupId>
48       <artifactId>appc-sequence-generator-features</artifactId>
49       <version>${project.version}</version>
50       <classifier>features</classifier>
51       <type>xml</type>
52       <exclusions>
53         <exclusion>
54           <groupId>*</groupId>
55           <artifactId>*</artifactId>
56         </exclusion>
57       </exclusions>
58     </dependency>
59
60     <dependency>
61       <groupId>org.openecomp.appc</groupId>
62       <artifactId>appc-sequence-generator-bundle</artifactId>
63       <version>${project.version}</version>
64     </dependency>
65
66     <dependency>
67       <groupId>org.openecomp.appc</groupId>
68       <artifactId>appc-sequence-generator-bundle</artifactId>
69       <classifier>config</classifier>
70       <version>${project.version}</version>
71       <type>xml</type>
72     </dependency>
73
74     <dependency>
75       <groupId>org.openecomp.appc</groupId>
76       <artifactId>appc-sequence-generator-model</artifactId>
77       <version>${project.version}</version>
78       <!--<type>properties</type>-->
79     </dependency>
80
81   </dependencies>
82
83   <build>
84     <plugins>
85       <plugin>
86         <artifactId>maven-assembly-plugin</artifactId>
87         <executions>
88           <execution>
89             <id>maven-repo-zip</id>
90             <goals>
91               <goal>single</goal>
92             </goals>
93             <phase>package</phase>
94             <configuration>
95               <appendAssemblyId>false</appendAssemblyId>
96               <attach>false</attach>
97               <finalName>stage/${application.name}-${project.version}</finalName>
98               <descriptors>
99                 <descriptor>src/assembly/assemble_mvnrepo_zip.xml</descriptor>
100               </descriptors>
101             </configuration>
102           </execution>
103           <execution>
104             <id>installer-zip</id>
105             <goals>
106               <goal>single</goal>
107             </goals>
108             <phase>package</phase>
109             <configuration>
110               <appendAssemblyId>false</appendAssemblyId>
111               <attach>true</attach>
112               <finalName>${application.name}-${project.version}</finalName>
113               <descriptors>
114                 <descriptor>src/assembly/assemble_installer_zip.xml</descriptor>
115               </descriptors>
116             </configuration>
117           </execution>
118         </executions>
119       </plugin>
120       <plugin>
121         <groupId>org.apache.maven.plugins</groupId>
122         <artifactId>maven-dependency-plugin</artifactId>
123         <executions>
124           <execution>
125             <id>copy-dependencies</id>
126             <goals>
127               <goal>copy-dependencies</goal>
128             </goals>
129             <phase>prepare-package</phase>
130             <configuration>
131               <transitive>false</transitive>
132               <outputDirectory>${project.build.directory}/assembly/system</outputDirectory>
133               <overWriteReleases>false</overWriteReleases>
134               <overWriteSnapshots>true</overWriteSnapshots>
135               <overWriteIfNewer>true</overWriteIfNewer>
136               <useRepositoryLayout>true</useRepositoryLayout>
137               <addParentPoms>false</addParentPoms>
138               <copyPom>false</copyPom>
139               <excludeGroupIds>org.opendaylight</excludeGroupIds>
140               <scope>provided</scope>
141             </configuration>
142           </execution>
143         </executions>
144       </plugin>
145       <plugin>
146         <artifactId>maven-resources-plugin</artifactId>
147         <executions>
148           <execution>
149             <id>copy-version</id>
150             <goals>
151               <goal>copy-resources</goal>
152             </goals>
153             <!-- here the phase you need -->
154             <phase>validate</phase>
155             <configuration>
156               <outputDirectory>${basedir}/target/stage</outputDirectory>
157               <resources>
158                 <resource>
159                   <directory>src/main/resources/scripts</directory>
160                   <includes>
161                     <include>install-feature.sh</include>
162                   </includes>
163                   <filtering>true</filtering>
164                 </resource>
165               </resources>
166             </configuration>
167           </execution>
168         </executions>
169       </plugin>
170     </plugins>
171   </build>
172 </project>