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