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