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