Merge "Remove unnecessary stuff from northbound directory of A1 controller"
[nonrtric.git] / sdnc-a1-controller / oam / installation / sdnc-a1 / pom.xml
1 <?xml version="1.0" encoding="UTF-8"?>
2 <!--
3   ============LICENSE_START=======================================================
4    Modifications Copyright (C) 2019 Nordix Foundation.
5   ================================================================================
6   Licensed under the Apache License, Version 2.0 (the "License");
7   you may not use this file except in compliance with the License.
8   You may obtain a copy of the License at
9
10        http://www.apache.org/licenses/LICENSE-2.0
11
12   Unless required by applicable law or agreed to in writing, software
13   distributed under the License is distributed on an "AS IS" BASIS,
14   WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
15   See the License for the specific language governing permissions and
16   limitations under the License.
17
18   SPDX-License-Identifier: Apache-2.0
19   ============LICENSE_END=========================================================
20 -->
21 <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/maven-v4_0_0.xsd">
22
23     <parent>
24         <groupId>org.onap.ccsdk.parent</groupId>
25         <artifactId>odlparent-lite</artifactId>
26         <version>1.4.3</version>
27     </parent>
28
29     <modelVersion>4.0.0</modelVersion>
30     <packaging>pom</packaging>
31     <groupId>org.o-ran-sc.nonrtric.sdnc-a1.oam</groupId>
32     <artifactId>installation-sdnc-a1</artifactId>
33     <version>1.7.3-SNAPSHOT</version>
34
35     <name>sdnc-a1-oam :: installation :: ${project.artifactId}</name>
36     <description>Creates SDN Controller Docker container</description>
37
38     <properties>
39         <standalone.image.name>o-ran-sc/nonrtric-a1-controller</standalone.image.name>
40         <standalone.image.version>1.7.4-SNAPSHOT</standalone.image.version>
41         <sdnc.project.version>${project.version}</sdnc.project.version>
42         <sdnc.build.timestamp>${maven.build.timestamp}</sdnc.build.timestamp>
43         <sdnc.northbound.version>1.7.3-SNAPSHOT</sdnc.northbound.version>
44         <ccsdk.docker.version>0.6.3</ccsdk.docker.version>
45         <sdnc.keystore>org.onap.sdnc.p12</sdnc.keystore>
46         <sdnc.keypass><![CDATA[ff^G9D]yf&r}Ktum@BJ0YB?N]]></sdnc.keypass>
47         <sdnc.secureport>8443</sdnc.secureport>
48         <docker.push.phase>deploy</docker.push.phase>
49     </properties>
50
51     <dependencies>
52         <dependency>
53             <groupId>org.o-ran-sc.nonrtric.sdnc-a1.northbound</groupId>
54             <artifactId>nonrt-ric-api-installer</artifactId>
55             <version>${sdnc.northbound.version}</version>
56             <classifier>repo</classifier>
57             <type>zip</type>
58         </dependency>
59         <dependency>
60             <groupId>org.o-ran-sc.nonrtric.sdnc-a1.northbound</groupId>
61             <artifactId>sdnc-a1-northbound-features-installer</artifactId>
62             <version>${sdnc.northbound.version}</version>
63             <classifier>repo</classifier>
64             <type>zip</type>
65         </dependency>
66     </dependencies>
67
68     <build>
69         <plugins>
70
71             <plugin>
72                 <groupId>org.codehaus.groovy.maven</groupId>
73                 <artifactId>gmaven-plugin</artifactId>
74                 <executions>
75                     <execution>
76                         <phase>validate</phase>
77                         <goals>
78                             <goal>execute</goal>
79                         </goals>
80                         <configuration>
81                             <source>${basedir}/../TagVersion.groovy</source>
82                         </configuration>
83                     </execution>
84                 </executions>
85             </plugin>
86
87             <plugin>
88                 <groupId>io.fabric8</groupId>
89                 <artifactId>docker-maven-plugin</artifactId>
90                 <version>0.30.0</version>
91                 <inherited>false</inherited>
92                 <executions>
93                    <execution>
94                      <id>generate-standalone-images</id>
95                      <phase>package</phase>
96                      <goals>
97                       <goal>build</goal>
98                      </goals>
99                      <configuration>
100                       <images>
101                        <image>
102                         <name>${standalone.image.name}:${standalone.image.version}</name>
103                         <build>
104                          <cleanup>try</cleanup>
105                          <dockerFileDir>${basedir}/target/docker-stage</dockerFileDir>
106                          <dockerFile>standalone.Dockerfile</dockerFile>
107                          <tags>
108                              <tag>${standalone.image.version}</tag>
109                          </tags>
110                         </build>
111                        </image>
112                       </images>
113                      </configuration>
114                    </execution>
115                    <execution>
116                      <id>push-standalone-images</id>
117                      <phase>${docker.push.phase}</phase>
118                      <goals>
119                       <goal>build</goal>
120                       <goal>push</goal>
121                      </goals>
122                      <configuration>
123                        <pushRegistry>${env.CONTAINER_PUSH_REGISTRY}</pushRegistry>
124                        <images>
125                         <image>
126                          <name>${standalone.image.name}:${standalone.image.version}</name>
127                          <build>
128                           <cleanup>try</cleanup>
129                           <dockerFileDir>${basedir}/target/docker-stage</dockerFileDir>
130                           <dockerFile>standalone.Dockerfile</dockerFile>
131                           <tags>
132                              <tag>${standalone.image.version}</tag>
133                           </tags>
134                          </build>
135                         </image>
136                        </images>
137                      </configuration>
138                   </execution>
139                 </executions>
140             </plugin>
141             <plugin>
142                 <artifactId>maven-resources-plugin</artifactId>
143                 <version>2.6</version>
144                 <executions>
145                     <execution>
146                         <id>copy-dockerfile</id>
147                         <goals>
148                             <goal>copy-resources</goal>
149                         </goals><!-- here the phase you need -->
150                         <phase>validate</phase>
151                         <configuration>
152                             <outputDirectory>${basedir}/target/docker-stage</outputDirectory>
153                             <resources>
154                                 <resource>
155                                     <directory>src/main/docker</directory>
156                                     <includes>
157                                         <include>standalone.Dockerfile</include>
158                                     </includes>
159                                     <filtering>true</filtering>
160                                 </resource>
161                             </resources>
162                         </configuration>
163                     </execution>
164                     <execution>
165                         <id>copy-scripts</id>
166                         <goals>
167                             <goal>copy-resources</goal>
168                         </goals><!-- here the phase you need -->
169                         <phase>validate</phase>
170                         <configuration>
171                             <outputDirectory>${basedir}/target/docker-stage/opt/onap/sdnc/bin</outputDirectory>
172                             <resources>
173                                 <resource>
174                                     <directory>src/main/scripts</directory>
175                                     <includes>
176                                         <include>*.py</include>
177                                         <include>*.sh</include>
178                                     </includes>
179                                     <filtering>false</filtering>
180                                 </resource>
181                             </resources>
182                         </configuration>
183                     </execution>
184                     <execution>
185                         <id>copy-tarballs</id>
186                         <goals>
187                             <goal>copy-resources</goal>
188                         </goals><!-- here the phase you need -->
189                         <phase>validate</phase>
190                         <configuration>
191                             <outputDirectory>${basedir}/target/docker-stage</outputDirectory>
192                             <resources>
193                                 <resource>
194                                     <directory>src/main/resources</directory>
195                                     <includes>
196                                         <include>idmlight.db.mv.db</include>
197                                         <include>truststoreONAPall.jks</include>
198                                         <include>aaa-app-config.xml</include>
199                                     </includes>
200                                     <filtering>false</filtering>
201                                 </resource>
202                             </resources>
203                         </configuration>
204                     </execution>
205                     <execution>
206                         <id>copy-data</id>
207                         <goals>
208                             <goal>copy-resources</goal>
209                         </goals><!-- here the phase you need -->
210                         <phase>validate</phase>
211                         <configuration>
212                             <outputDirectory>${basedir}/target/docker-stage/opt/onap/sdnc/data</outputDirectory>
213                             <resources>
214                                 <resource>
215                                     <directory>src/main/resources</directory>
216                                     <includes>
217                                         <include>*.dump</include>
218                                     </includes>
219                                     <filtering>false</filtering>
220                                 </resource>
221                             </resources>
222                         </configuration>
223                     </execution>
224                     <execution>
225                         <id>copy-properties</id>
226                         <goals>
227                             <goal>copy-resources</goal>
228                         </goals><!-- here the phase you need -->
229                         <phase>validate</phase>
230                         <configuration>
231                             <outputDirectory>${basedir}/target/docker-stage/opt/onap/sdnc/data/properties</outputDirectory>
232                             <resources>
233                                 <resource>
234                                     <directory>../src/main/properties</directory>
235                                     <includes>
236                                         <include>*.properties</include>
237                                         <include>*.props</include>
238                                         <include>*.csv</include>
239                                     </includes>
240                                     <filtering>false</filtering>
241                                 </resource>
242                             </resources>
243                         </configuration>
244                     </execution>
245                     <execution>
246                         <id>copy-keystores</id>
247                         <goals>
248                             <goal>copy-resources</goal>
249                         </goals><!-- here the phase you need -->
250                         <phase>validate</phase>
251                         <configuration>
252                             <outputDirectory>${basedir}/target/docker-stage/opt/onap/sdnc/data/stores</outputDirectory>
253                             <resources>
254                                 <resource>
255                                     <directory>../src/main/stores</directory>
256                                     <includes>
257                                         <include>*.jks</include>
258                                         <include>*.keyfile</include>
259                                         <include>*.p12</include>
260                                     </includes>
261                                     <filtering>false</filtering>
262                                 </resource>
263                             </resources>
264                         </configuration>
265                     </execution>
266                 </executions>
267             </plugin>
268             <plugin>
269                 <groupId>org.apache.maven.plugins</groupId>
270                 <artifactId>maven-dependency-plugin</artifactId>
271                 <version>3.0.2</version>
272                 <executions>
273                     <execution>
274                         <id>unpack sdnc features</id>
275                         <phase>generate-sources</phase>
276                         <goals>
277                             <goal>unpack-dependencies</goal>
278                         </goals>
279                         <configuration>
280                             <outputDirectory>${basedir}/target/docker-stage</outputDirectory>
281                             <excludeTransitive>true</excludeTransitive>
282                         </configuration>
283                     </execution>
284                     <execution>
285                         <id>unpack dgs</id>
286                         <phase>generate-sources</phase>
287                         <goals>
288                             <goal>unpack</goal>
289                         </goals>
290                         <configuration>
291                             <outputDirectory>${basedir}/target/docker-stage/opt/onap/sdnc</outputDirectory>
292                             <artifactItems>
293                                 <artifactItem>
294                                     <groupId>${project.groupId}</groupId>
295                                     <artifactId>platform-logic-installer</artifactId>
296                                     <version>${project.version}</version>
297                                     <type>zip</type>
298                                 </artifactItem>
299                             </artifactItems>
300                         </configuration>
301                     </execution>
302                 </executions>
303             </plugin>
304             <plugin>
305                 <artifactId>exec-maven-plugin</artifactId>
306                 <groupId>org.codehaus.mojo</groupId>
307                 <version>1.5.0</version>
308                 <executions>
309                     <execution>
310                         <id>change shell permissions</id>
311                         <phase>process-sources</phase>
312                         <goals>
313                             <goal>exec</goal>
314                         </goals>
315                         <configuration>
316                             <executable>/usr/bin/find</executable>
317                             <arguments>
318                                 <argument>${basedir}/target/docker-stage/opt/onap/sdnc</argument>
319                                 <argument>-name</argument>
320                                 <argument>*.sh</argument>
321                                 <argument>-exec</argument>
322                                 <argument>chmod</argument>
323                                 <argument>+x</argument>
324                                 <argument>{}</argument>
325                                 <argument>;</argument>
326                             </arguments>
327                         </configuration>
328                     </execution>
329                 </executions>
330             </plugin>
331         </plugins>
332     </build>
333     <organization>
334         <name>ONAP</name>
335     </organization>
336 </project>