Karaf 4 for 2 features
[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-2018 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  ============LICENSE_END=========================================================
23 -->
24 <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"
25     xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
26   <modelVersion>4.0.0</modelVersion>
27     <parent>
28         <groupId>org.onap.appc.parent</groupId>
29         <artifactId>odlparent-lite</artifactId>
30         <version>1.4.0-SNAPSHOT</version>
31         <relativePath />
32     </parent>
33         <groupId>org.onap.appc</groupId>
34   <artifactId>appc-sequence-generator-installer</artifactId>
35   <name>Appc Sequence Generator : Karaf Installer</name>
36   <packaging>pom</packaging>
37
38   <properties>
39     <application.name>appc-sequence-generator</application.name>
40     <features.boot>appc-sequence-generator</features.boot>
41     <features.repositories>mvn:org.onap.appc/onap-appc-sequence-generator/${project.version}/xml/features</features.repositories>
42     <include.transitive.dependencies>false</include.transitive.dependencies>
43     <feature-name>appc-sequence-generator</feature-name>
44   </properties>
45
46   <dependencies>
47
48     <dependency>
49       <groupId>org.onap.appc</groupId>
50       <artifactId>onap-appc-sequence-generator</artifactId>
51       <version>${project.version}</version>
52       <classifier>features</classifier>
53       <type>xml</type>
54       <exclusions>
55         <exclusion>
56           <groupId>*</groupId>
57           <artifactId>*</artifactId>
58         </exclusion>
59       </exclusions>
60     </dependency>
61
62     <dependency>
63       <groupId>org.onap.appc</groupId>
64       <artifactId>appc-sequence-generator-bundle</artifactId>
65       <version>${project.version}</version>
66     </dependency>
67
68     <dependency>
69       <groupId>org.onap.appc</groupId>
70       <artifactId>appc-sequence-generator-bundle</artifactId>
71       <classifier>config</classifier>
72       <version>${project.version}</version>
73       <type>xml</type>
74     </dependency>
75
76     <dependency>
77       <groupId>org.onap.appc</groupId>
78       <artifactId>appc-sequence-generator-model</artifactId>
79       <version>${project.version}</version>
80       <!--<type>properties</type>-->
81     </dependency>
82
83   </dependencies>
84
85   <build>
86     <plugins>
87       <plugin>
88         <artifactId>maven-assembly-plugin</artifactId>
89         <executions>
90           <execution>
91             <id>maven-repo-zip</id>
92             <goals>
93               <goal>single</goal>
94             </goals>
95             <phase>package</phase>
96             <configuration>
97               <appendAssemblyId>false</appendAssemblyId>
98               <attach>false</attach>
99               <finalName>stage/${application.name}-${project.version}</finalName>
100               <descriptors>
101                 <descriptor>src/assembly/assemble_mvnrepo_zip.xml</descriptor>
102               </descriptors>
103             </configuration>
104           </execution>
105           <execution>
106             <id>installer-zip</id>
107             <goals>
108               <goal>single</goal>
109             </goals>
110             <phase>package</phase>
111             <configuration>
112               <appendAssemblyId>false</appendAssemblyId>
113               <attach>true</attach>
114               <finalName>${application.name}-${project.version}</finalName>
115               <descriptors>
116                 <descriptor>src/assembly/assemble_installer_zip.xml</descriptor>
117               </descriptors>
118             </configuration>
119           </execution>
120         </executions>
121       </plugin>
122       <plugin>
123         <groupId>org.apache.maven.plugins</groupId>
124         <artifactId>maven-dependency-plugin</artifactId>
125         <executions>
126           <execution>
127             <id>copy-dependencies</id>
128             <goals>
129               <goal>copy-dependencies</goal>
130             </goals>
131             <phase>prepare-package</phase>
132             <configuration>
133               <transitive>false</transitive>
134               <outputDirectory>${project.build.directory}/assembly/system</outputDirectory>
135               <overWriteReleases>false</overWriteReleases>
136               <overWriteSnapshots>true</overWriteSnapshots>
137               <overWriteIfNewer>true</overWriteIfNewer>
138               <useRepositoryLayout>true</useRepositoryLayout>
139               <addParentPoms>false</addParentPoms>
140               <copyPom>false</copyPom>
141               <excludeGroupIds>org.opendaylight</excludeGroupIds>
142               <scope>provided</scope>
143             </configuration>
144           </execution>
145         </executions>
146       </plugin>
147       <plugin>
148         <artifactId>maven-resources-plugin</artifactId>
149         <executions>
150           <execution>
151             <id>copy-version</id>
152             <goals>
153               <goal>copy-resources</goal>
154             </goals>
155             <!-- here the phase you need -->
156             <phase>validate</phase>
157             <configuration>
158               <outputDirectory>${basedir}/target/stage</outputDirectory>
159               <resources>
160                 <resource>
161                   <directory>src/main/resources/scripts</directory>
162                   <includes>
163                     <include>install-feature.sh</include>
164                   </includes>
165                   <filtering>true</filtering>
166                 </resource>
167               </resources>
168             </configuration>
169           </execution>
170         </executions>
171       </plugin>
172     </plugins>
173   </build>
174 </project>