Release appc
[appc.git] / appc-sequence-generator / appc-sequence-generator-installer / pom.xml
1 <?xml version="1.0" encoding="UTF-8"?>
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 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">
25   <modelVersion>4.0.0</modelVersion>
26     <parent>
27         <groupId>org.onap.appc.parent</groupId>
28         <artifactId>odlparent-lite</artifactId>
29         <version>2.7.2</version>
30         <relativePath/>
31     </parent>
32         <groupId>org.onap.appc</groupId>
33   <artifactId>appc-sequence-generator-installer</artifactId>
34   <version>1.7.2</version>
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-model</artifactId>
71       <version>${project.version}</version>
72       <!--<type>properties</type>-->
73       <exclusions>
74             <exclusion>
75                   <groupId>com.fasterxml.jackson.core</groupId>
76                   <artifactId>jackson-databind</artifactId>
77                   </exclusion>
78                   </exclusions>
79             </dependency>
80
81       <dependency>
82             <groupId>com.fasterxml.jackson.core</groupId>
83             <artifactId>jackson-databind</artifactId>
84             <version>2.8.11.3</version>
85       </dependency>
86   </dependencies>
87
88   <build>
89     <plugins>
90       <plugin>
91         <artifactId>maven-assembly-plugin</artifactId>
92         <executions>
93           <execution>
94             <id>maven-repo-zip</id>
95             <goals>
96               <goal>single</goal>
97             </goals>
98             <phase>package</phase>
99             <configuration>
100               <appendAssemblyId>false</appendAssemblyId>
101               <attach>false</attach>
102               <finalName>stage/${application.name}-${project.version}</finalName>
103               <descriptors>
104                 <descriptor>src/assembly/assemble_mvnrepo_zip.xml</descriptor>
105               </descriptors>
106             </configuration>
107           </execution>
108           <execution>
109             <id>installer-zip</id>
110             <goals>
111               <goal>single</goal>
112             </goals>
113             <phase>package</phase>
114             <configuration>
115               <appendAssemblyId>false</appendAssemblyId>
116               <attach>true</attach>
117               <finalName>${application.name}-${project.version}</finalName>
118               <descriptors>
119                 <descriptor>src/assembly/assemble_installer_zip.xml</descriptor>
120               </descriptors>
121             </configuration>
122           </execution>
123         </executions>
124       </plugin>
125       <plugin>
126         <groupId>org.apache.maven.plugins</groupId>
127         <artifactId>maven-dependency-plugin</artifactId>
128         <executions>
129           <execution>
130             <id>copy-dependencies</id>
131             <goals>
132               <goal>copy-dependencies</goal>
133             </goals>
134             <phase>prepare-package</phase>
135             <configuration>
136               <transitive>false</transitive>
137               <outputDirectory>${project.build.directory}/assembly/system</outputDirectory>
138               <overWriteReleases>false</overWriteReleases>
139               <overWriteSnapshots>true</overWriteSnapshots>
140               <overWriteIfNewer>true</overWriteIfNewer>
141               <useRepositoryLayout>true</useRepositoryLayout>
142               <addParentPoms>false</addParentPoms>
143               <copyPom>false</copyPom>
144               <excludeGroupIds>org.opendaylight</excludeGroupIds>
145               <scope>provided</scope>
146             </configuration>
147           </execution>
148         </executions>
149       </plugin>
150       <plugin>
151         <artifactId>maven-resources-plugin</artifactId>
152         <executions>
153           <execution>
154             <id>copy-version</id>
155             <goals>
156               <goal>copy-resources</goal>
157             </goals>
158             <!-- here the phase you need -->
159             <phase>validate</phase>
160             <configuration>
161               <outputDirectory>${basedir}/target/stage</outputDirectory>
162               <resources>
163                 <resource>
164                   <directory>src/main/resources/scripts</directory>
165                   <includes>
166                     <include>install-feature.sh</include>
167                   </includes>
168                   <filtering>true</filtering>
169                 </resource>
170               </resources>
171             </configuration>
172           </execution>
173         </executions>
174       </plugin>
175     </plugins>
176   </build>
177 </project>