392e82b1e2edcffe00af3da28e12a1b129b5eff6
[ccsdk/features.git] / aafshiro / installer / pom.xml
1 <?xml version="1.0" encoding="UTF-8"?>
2 <!--
3   ~ ============LICENSE_START=======================================================
4   ~ ONAP : ccsdk features
5   ~ ================================================================================
6   ~ Copyright (C) 2018 Bell Canada Intellectual Property. All rights reserved.
7   ~ ================================================================================
8   ~ Update Copyright (C) 2020 AT&T Intellectual Property. All rights reserved.
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   ~ ============LICENSE_END=======================================================
22   ~
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
27     <parent>
28         <groupId>org.onap.ccsdk.parent</groupId>
29         <artifactId>odlparent-lite</artifactId>
30         <version>2.3.3</version>
31         <relativePath/>
32     </parent>
33
34     <groupId>org.onap.ccsdk.features</groupId>
35     <artifactId>aafshiro-installer</artifactId>
36     <version>1.3.1-SNAPSHOT</version>
37     <packaging>pom</packaging>
38
39     <name>ccsdk-features :: ${project.artifactId}</name>
40
41     <properties>
42         <application.name>ccsdk-aafshiro</application.name>
43         <features.boot>${application.name}</features.boot>
44         <features.repositories>mvn:org.onap.ccsdk.features/${features.boot}/${project.version}/xml/features</features.repositories>
45         <include.transitive.dependencies>false</include.transitive.dependencies>
46         <aaf-shiro-bundle.version>2.1.13</aaf-shiro-bundle.version>
47     </properties>
48
49     <dependencies>
50
51         <dependency>
52             <groupId>org.onap.ccsdk.features</groupId>
53             <artifactId>${application.name}</artifactId>
54             <version>${project.version}</version>
55             <type>xml</type>
56             <classifier>features</classifier>
57             <exclusions>
58                 <exclusion>
59                     <groupId>*</groupId>
60                     <artifactId>*</artifactId>
61                 </exclusion>
62             </exclusions>
63         </dependency>
64         <dependency>
65             <groupId>org.onap.aaf.cadi</groupId>
66             <artifactId>aaf-shiro-aafrealm-osgi-bundle</artifactId>
67             <version>${aaf-shiro-bundle.version}</version>
68         </dependency>
69     </dependencies>
70
71     <build>
72         <plugins>
73             <plugin>
74                 <artifactId>maven-assembly-plugin</artifactId>
75                 <executions>
76                     <execution>
77                         <id>maven-repo-zip</id>
78                         <goals>
79                             <goal>single</goal>
80                         </goals>
81                         <phase>package</phase>
82                         <configuration>
83                             <attach>true</attach>
84                             <finalName>stage/${application.name}-${project.version}</finalName>
85                             <descriptors>
86                                 <descriptor>src/assembly/assemble_mvnrepo_zip.xml</descriptor>
87                             </descriptors>
88                             <appendAssemblyId>true</appendAssemblyId>
89                         </configuration>
90                     </execution>
91                     <execution>
92                         <id>installer-zip</id>
93                         <goals>
94                             <goal>single</goal>
95                         </goals>
96                         <phase>package</phase>
97                         <configuration>
98                             <attach>true</attach>
99                             <finalName>${application.name}-${project.version}-installer</finalName>
100                             <descriptors>
101                                 <descriptor>src/assembly/assemble_installer_zip.xml</descriptor>
102                             </descriptors>
103                             <appendAssemblyId>false</appendAssemblyId>
104                         </configuration>
105                     </execution>
106                 </executions>
107             </plugin>
108             <plugin>
109                 <groupId>org.apache.maven.plugins</groupId>
110                 <artifactId>maven-dependency-plugin</artifactId>
111                 <executions>
112                     <execution>
113                         <id>copy-dependencies</id>
114                         <goals>
115                             <goal>copy-dependencies</goal>
116                         </goals>
117                         <phase>prepare-package</phase>
118                         <configuration>
119                             <transitive>false</transitive>
120                             <outputDirectory>${project.build.directory}/assembly/system</outputDirectory>
121                             <overWriteReleases>false</overWriteReleases>
122                             <overWriteSnapshots>true</overWriteSnapshots>
123                             <overWriteIfNewer>true</overWriteIfNewer>
124                             <useRepositoryLayout>true</useRepositoryLayout>
125                             <addParentPoms>false</addParentPoms>
126                             <copyPom>false</copyPom>
127                             <scope>provided</scope>
128                             <!--        <includeGroupIds>org.onap.aaf,org.onap.ccsdk.features</includeGroupIds> -->
129                         </configuration>
130                     </execution>
131                 </executions>
132             </plugin>
133             <plugin>
134                 <artifactId>maven-resources-plugin</artifactId>
135                 <version>2.6</version>
136                 <executions>
137                     <execution>
138                         <id>copy-version</id>
139                         <goals>
140                             <goal>copy-resources</goal>
141                         </goals><!-- here the phase you need -->
142                         <phase>validate</phase>
143                         <configuration>
144                             <outputDirectory>${basedir}/target/stage</outputDirectory>
145                             <resources>
146                                 <resource>
147                                     <directory>src/main/resources/scripts</directory>
148                                     <includes>
149                                         <include>install-feature.sh</include>
150                                     </includes>
151                                     <filtering>true</filtering>
152                                 </resource>
153                             </resources>
154                         </configuration>
155                     </execution>
156
157                 </executions>
158             </plugin>
159
160         </plugins>
161     </build>
162 </project>