Update version for El Alto
[ccsdk/distribution.git] / opendaylight / fluorine / fluorine-ubuntu / pom.xml
1 <?xml version="1.0" encoding="UTF-8"?>
2 <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">
3         <modelVersion>4.0.0</modelVersion>
4
5         <parent>
6                 <groupId>org.onap.ccsdk.distribution</groupId>
7                 <artifactId>distribution-odl-fluorine</artifactId>
8                 <version>0.5.0-SNAPSHOT</version>
9         </parent>
10
11         <artifactId>distribution-odl-fluorine-ubuntu</artifactId>
12         <version>0.5.0-SNAPSHOT</version>
13         <packaging>pom</packaging>
14
15         <name>ccsdk-distribution :: opendaylight :: ${project.artifactId}</name>
16         <description>Creates OpenDaylight container</description>
17         <organization>
18                 <name>ONAP</name>
19         </organization>
20
21         <properties>
22                 <image.name>onap/ccsdk-odl-fluorine-ubuntu-image</image.name>
23         </properties>
24
25         <build>
26                 <plugins>
27
28
29                         <plugin>
30                                 <groupId>org.codehaus.groovy.maven</groupId>
31                                 <artifactId>gmaven-plugin</artifactId>
32                                 <executions>
33                                         <execution>
34                                                 <phase>validate</phase>
35                                                 <goals>
36                                                         <goal>execute</goal>
37                                                 </goals>
38                                                 <configuration>
39                                                         <source>${basedir}/../../../src/main/scripts/TagVersion.groovy</source>
40                                                 </configuration>
41                                         </execution>
42                                 </executions>
43                         </plugin>
44
45
46
47                         <plugin>
48                                 <groupId>org.apache.maven.plugins</groupId>
49                                 <artifactId>maven-dependency-plugin</artifactId>
50                                 <version>3.0.0</version>
51                                 <executions>
52                                         <execution>
53                                                 <id>get-odl-distribution</id>
54                                                 <phase>validate</phase>
55                                                 <goals>
56                                                         <goal>copy</goal>
57                                                 </goals>
58                                                 <configuration>
59                                                         <artifactItems>
60                                                                 <artifactItem>
61                                                                         <groupId>org.opendaylight.integration</groupId>
62                                                                         <artifactId>karaf</artifactId>
63                                                                         <version>${ccsdk.opendaylight.version}</version>
64                                                                         <type>tar.gz</type>
65
66                                                                         <overWrite>true</overWrite>
67                                                                         <outputDirectory>${basedir}/target/docker-stage</outputDirectory>
68                                                                 </artifactItem>
69                                                         </artifactItems>
70                                                         <overWriteReleases>false</overWriteReleases>
71                                                         <overWriteSnapshots>true</overWriteSnapshots>
72                                                         <overWriteIfNewer>true</overWriteIfNewer>
73                                                 </configuration>
74                                         </execution>
75
76                                         <execution>
77                                                 <id>get-mariadb-connector-jar</id>
78                                                 <phase>validate</phase>
79                                                 <goals>
80                                                         <goal>copy</goal>
81                                                 </goals>
82                                                 <configuration>
83                                                         <artifactItems>
84                                                                 <artifactItem>
85                                                                         <groupId>org.mariadb.jdbc</groupId>
86                                                                         <artifactId>mariadb-java-client</artifactId>
87                                                                         <version>${ccsdk.mariadb-connector-java.version}</version>
88                                                                         <type>jar</type>
89                                                                         <overWrite>true</overWrite>
90                                                                         <outputDirectory>${basedir}/target/docker-stage</outputDirectory>
91                                                                 </artifactItem>
92                                                         </artifactItems>
93                                                         <overWriteReleases>false</overWriteReleases>
94                                                         <overWriteSnapshots>true</overWriteSnapshots>
95                                                         <overWriteIfNewer>true</overWriteIfNewer>
96                                                 </configuration>
97                                         </execution>
98                                 </executions>
99                         </plugin>
100
101                         <plugin>
102                                 <artifactId>maven-resources-plugin</artifactId>
103                                 <version>2.6</version>
104                                 <executions>
105                                         <execution>
106                                                 <id>copy-dockerfile</id>
107                                                 <goals>
108                                                         <goal>copy-resources</goal>
109                                                 </goals><!-- here the phase you need -->
110                                                 <phase>validate</phase>
111                                                 <configuration>
112                                                         <outputDirectory>${basedir}/target/docker-stage</outputDirectory>
113                                                         <resources>
114                                                                 <resource>
115                                                                         <directory>src/main/docker</directory>
116                                                                         <includes>
117                                                                                 <include>Dockerfile</include>
118                                                                         </includes>
119                                                                         <filtering>true</filtering>
120                                                                 </resource>
121                                                         </resources>
122                                                 </configuration>
123                                         </execution>
124                                 </executions>
125                         </plugin>
126
127
128
129                 </plugins>
130         </build>
131
132         <profiles>
133                 <profile>
134                         <id>docker</id>
135                         <build>
136                                 <plugins>
137                                         <plugin>
138                                                 <groupId>io.fabric8</groupId>
139                                                 <artifactId>docker-maven-plugin</artifactId>
140                                                 <version>0.28.0</version>
141                                                 <inherited>false</inherited>
142                                                 <configuration>
143                                                         <images>
144                                                                 <image>
145                                                                         <name>${image.name}</name>
146                                                                         <build>
147                                                                                 <cleanup>try</cleanup>
148                                                                                 <dockerFileDir>${basedir}/target/docker-stage</dockerFileDir>
149                                                                                 <dockerFile>Dockerfile</dockerFile>
150                                                                                 <tags>
151                                                                                         <tag>${project.docker.latestminortag.version}</tag>
152                                                                                         <tag>${project.docker.latestfulltag.version}</tag>
153                                                                                         <tag>${project.docker.latesttagtimestamp.version}</tag>
154                                                                                 </tags>
155                                                                         </build>
156                                                                 </image>
157                                                         </images>
158                                                 </configuration>
159                                                 <executions>
160                                                         <execution>
161                                                                 <id>generate-images</id>
162                                                                 <phase>package</phase>
163                                                                 <goals>
164                                                                         <goal>build</goal>
165                                                                 </goals>
166                                                         </execution>
167
168                                                         <execution>
169                                                                 <id>push-images</id>
170                                                                 <phase>${docker.push.phase}</phase>
171                                                                 <goals>
172                                                                         <goal>build</goal>
173                                                                         <goal>push</goal>
174                                                                 </goals>
175                                                         </execution>
176                                                 </executions>
177                                         </plugin>
178
179                                 </plugins>
180                         </build>
181                 </profile>
182
183         </profiles>
184 </project>