Corrected relative path to parent POM
[sdc.git] / openecomp-be / dist / sdc-onboard-db-init-docker / pom.xml
1 <project xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://maven.apache.org/POM/4.0.0"
2          xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
3     <modelVersion>4.0.0</modelVersion>
4
5     <name>openecomp-sdc-docker-db-init</name>
6     <groupId>org.openecomp.sdc</groupId>
7     <artifactId>openecomp-sdc-docker-db-init</artifactId>
8     <packaging>pom</packaging>
9
10     <url>http://maven.apache.org</url>
11
12     <parent>
13         <groupId>org.openecomp.sdc</groupId>
14         <artifactId>openecomp-sdc-docker-dist</artifactId>
15         <version>1.3.0-SNAPSHOT</version>
16     </parent>
17
18
19     <properties>
20         <docker.image.name>sdc-onboard-cassandra-init</docker.image.name>
21     </properties>
22     <build>
23         <plugins>
24             <plugin>
25                 <artifactId>maven-resources-plugin</artifactId>
26                 <version>3.0.2</version>
27                 <executions>
28                     <execution>
29                         <id>copy-resources-war</id>
30                         <phase>verify</phase>
31                         <goals>
32                             <goal>copy-resources</goal>
33                         </goals>
34                         <configuration>
35                             <outputDirectory>${project.basedir}/artifacts</outputDirectory>
36                             <resources>
37                                 <resource>
38                                     <directory>
39                                         ${project.parent.basedir}/../../openecomp-be/tools/install/database
40                                     </directory>
41                                     <includes>
42                                         <include>init_keyspaces.cql</include>
43                                         <include>init_schemas.cql</include>
44                                     </includes>
45                                 </resource>
46                             </resources>
47                         </configuration>
48                     </execution>
49                 </executions>
50             </plugin>
51             <plugin>
52                 <groupId>io.fabric8</groupId>
53                 <artifactId>docker-maven-plugin</artifactId>
54                 <version>${fabric8.version}</version>
55
56                 <configuration>
57                     <verbose>true</verbose>
58                     <apiVersion>1.23</apiVersion>
59                     <registry>nexus3.onap.org:10001</registry>
60                     <authConfig>
61                         <pull>
62                             <username>docker</username>
63                             <password>docker</password>
64                         </pull>
65                     </authConfig>
66                     <images>
67
68                         <!-- Build backend image -->
69                         <image>
70                             <name>onap/${docker.image.name}</name>
71                             <alias>${docker.image.name}</alias>
72                             <build>
73                                 <cleanup>try</cleanup>
74                                 <dockerFileDir>${project.basedir}/artifacts</dockerFileDir>
75                                 <tags>
76                                     <tag>${docker.tag}</tag>
77                                     <tag>${parsedVersion.majorVersion}.${parsedVersion.minorVersion}-STAGING-latest</tag>
78                                 </tags>
79                             </build>
80                         </image>
81                     </images>
82                 </configuration>
83                 <executions>
84                     <execution>
85                         <id>clean-images</id>
86                         <phase>pre-clean</phase>
87                         <goals>
88                             <goal>remove</goal>
89                         </goals>
90                         <configuration>
91                             <removeAll>true</removeAll>
92                             <image>onap/${docker.image.name}</image>
93                         </configuration>
94                     </execution>
95
96                     <execution>
97                         <id>generate-images</id>
98                         <phase>install</phase>
99                         <goals>
100                             <goal>build</goal>
101                         </goals>
102                     </execution>
103
104                     <execution>
105                         <id>push-images</id>
106                         <phase>deploy</phase>
107                         <goals>
108                             <goal>push</goal>
109                         </goals>
110                         <configuration>
111                             <image>onap/${docker.image.name}</image>
112                         </configuration>
113                     </execution>
114                 </executions>
115             </plugin>
116         </plugins>
117     </build>
118 </project>