blob: 2d3083d6e977ef9ecdef8eb7bda0961cce40caea [file] [log] [blame]
Timoney, Dan (dt5972)9b0e1e42018-12-20 13:40:40 -05001<?xml version="1.0" encoding="UTF-8"?>
Timoney, Dan (dt5972)268c4ba2019-02-12 14:35:10 -05002<project xmlns="http://maven.apache.org/POM/4.0.0"
3 xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
4 xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
5 <modelVersion>4.0.0</modelVersion>
Timoney, Dan (dt5972)9b0e1e42018-12-20 13:40:40 -05006
Timoney, Dan (dt5972)268c4ba2019-02-12 14:35:10 -05007 <parent>
8 <groupId>org.onap.ccsdk.distribution</groupId>
9 <artifactId>distribution-odl-fluorine</artifactId>
10 <version>0.4.1-SNAPSHOT</version>
11 </parent>
Timoney, Dan (dt5972)9b0e1e42018-12-20 13:40:40 -050012
Timoney, Dan (dt5972)268c4ba2019-02-12 14:35:10 -050013 <artifactId>distribution-odl-fluorine-alpine</artifactId>
14 <version>0.4.1-SNAPSHOT</version>
15 <packaging>pom</packaging>
Timoney, Dan (dt5972)9b0e1e42018-12-20 13:40:40 -050016
Timoney, Dan (dt5972)268c4ba2019-02-12 14:35:10 -050017 <name>ccsdk-distribution :: opendaylight :: ${project.artifactId}</name>
18 <description>Creates OpenDaylight container</description>
19 <organization>
20 <name>ONAP</name>
21 </organization>
Timoney, Dan (dt5972)9b0e1e42018-12-20 13:40:40 -050022
Timoney, Dan (dt5972)268c4ba2019-02-12 14:35:10 -050023 <properties>
24 <image.name>onap/ccsdk-odl-fluorine-alpine-image</image.name>
25 <ccsdk.project.version>${project.version}</ccsdk.project.version>
26 <ccsdk.build.timestamp>${maven.build.timestamp}</ccsdk.build.timestamp>
27 <ccsdk.opendaylight.version>0.9.1</ccsdk.opendaylight.version>
28 <ccsdk.mariadb-connector-java.version>2.1.1</ccsdk.mariadb-connector-java.version>
29 <docker.buildArg.https_proxy>${https_proxy}</docker.buildArg.https_proxy>
30 <docker.push.phase>deploy</docker.push.phase>
31 </properties>
Timoney, Dan (dt5972)9b0e1e42018-12-20 13:40:40 -050032
Timoney, Dan (dt5972)268c4ba2019-02-12 14:35:10 -050033 <dependencyManagement>
34 <dependencies>
35 <dependency>
36 <groupId>org.opendaylight.integration</groupId>
37 <artifactId>karaf</artifactId>
38 <version>${ccsdk.opendaylight.version}</version>
39 <type>tar.gz</type>
40 </dependency>
41 <dependency>
42 <groupId>org.mariadb.jdbc</groupId>
43 <artifactId>mariadb-java-client</artifactId>
44 <version>${ccsdk.mariadb-connector-java.version}</version>
45 <type>jar</type>
46 </dependency>
47 </dependencies>
48 </dependencyManagement>
Timoney, Dan (dt5972)9b0e1e42018-12-20 13:40:40 -050049
Timoney, Dan (dt5972)268c4ba2019-02-12 14:35:10 -050050 <build>
51 <plugins>
Timoney, Dan (dt5972)9b0e1e42018-12-20 13:40:40 -050052
53
Timoney, Dan (dt5972)268c4ba2019-02-12 14:35:10 -050054 <plugin>
55 <groupId>org.codehaus.groovy.maven</groupId>
56 <artifactId>gmaven-plugin</artifactId>
57 <executions>
58 <execution>
59 <phase>validate</phase>
60 <goals>
61 <goal>execute</goal>
62 </goals>
63 <configuration>
64 <source>${basedir}/../../../src/main/scripts/TagVersion.groovy</source>
65 </configuration>
66 </execution>
67 </executions>
68 </plugin>
Timoney, Dan (dt5972)9b0e1e42018-12-20 13:40:40 -050069
70
71
Timoney, Dan (dt5972)268c4ba2019-02-12 14:35:10 -050072 <plugin>
73 <groupId>org.apache.maven.plugins</groupId>
74 <artifactId>maven-dependency-plugin</artifactId>
75 <version>3.0.0</version>
76 <executions>
77 <execution>
78 <id>get-odl-distribution</id>
79 <phase>validate</phase>
80 <goals>
81 <goal>copy</goal>
82 </goals>
83 <configuration>
84 <artifactItems>
85 <artifactItem>
86 <groupId>org.opendaylight.integration</groupId>
87 <artifactId>karaf</artifactId>
88 <version>${ccsdk.opendaylight.version}</version>
89 <type>tar.gz</type>
Timoney, Dan (dt5972)9b0e1e42018-12-20 13:40:40 -050090
Timoney, Dan (dt5972)268c4ba2019-02-12 14:35:10 -050091 <overWrite>true</overWrite>
92 <outputDirectory>${basedir}/target/docker-stage</outputDirectory>
93 </artifactItem>
94 </artifactItems>
95 <overWriteReleases>false</overWriteReleases>
96 <overWriteSnapshots>true</overWriteSnapshots>
97 <overWriteIfNewer>true</overWriteIfNewer>
98 </configuration>
99 </execution>
Timoney, Dan (dt5972)9b0e1e42018-12-20 13:40:40 -0500100
Timoney, Dan (dt5972)268c4ba2019-02-12 14:35:10 -0500101 <execution>
102 <id>get-mariadb-connector-jar</id>
103 <phase>validate</phase>
104 <goals>
105 <goal>copy</goal>
106 </goals>
107 <configuration>
108 <artifactItems>
109 <artifactItem>
110 <groupId>org.mariadb.jdbc</groupId>
111 <artifactId>mariadb-java-client</artifactId>
112 <version>${ccsdk.mariadb-connector-java.version}</version>
113 <type>jar</type>
114 <overWrite>true</overWrite>
115 <outputDirectory>${basedir}/target/docker-stage</outputDirectory>
116 </artifactItem>
117 </artifactItems>
118 <overWriteReleases>false</overWriteReleases>
119 <overWriteSnapshots>true</overWriteSnapshots>
120 <overWriteIfNewer>true</overWriteIfNewer>
121 </configuration>
122 </execution>
123 </executions>
124 </plugin>
Timoney, Dan (dt5972)9b0e1e42018-12-20 13:40:40 -0500125
Timoney, Dan (dt5972)268c4ba2019-02-12 14:35:10 -0500126 <plugin>
127 <artifactId>maven-resources-plugin</artifactId>
128 <version>2.6</version>
129 <executions>
130 <execution>
131 <id>copy-dockerfile</id>
132 <goals>
133 <goal>copy-resources</goal>
134 </goals><!-- here the phase you need -->
135 <phase>validate</phase>
136 <configuration>
137 <outputDirectory>${basedir}/target/docker-stage</outputDirectory>
138 <resources>
139 <resource>
140 <directory>src/main/docker</directory>
141 <includes>
142 <include>Dockerfile</include>
143 </includes>
144 <filtering>true</filtering>
145 </resource>
146 </resources>
147 </configuration>
148 </execution>
149 </executions>
150 </plugin>
Timoney, Dan (dt5972)9b0e1e42018-12-20 13:40:40 -0500151
152
153
Timoney, Dan (dt5972)268c4ba2019-02-12 14:35:10 -0500154 </plugins>
155 </build>
Timoney, Dan (dt5972)9b0e1e42018-12-20 13:40:40 -0500156
Timoney, Dan (dt5972)268c4ba2019-02-12 14:35:10 -0500157 <profiles>
158 <profile>
159 <id>docker</id>
160 <build>
161 <plugins>
162 <plugin>
163 <groupId>io.fabric8</groupId>
164 <artifactId>docker-maven-plugin</artifactId>
165 <version>0.16.5</version>
166 <inherited>false</inherited>
167 <configuration>
168 <images>
169 <image>
170 <name>${image.name}</name>
171 <build>
172 <cleanup>try</cleanup>
173 <dockerFileDir>${basedir}/target/docker-stage</dockerFileDir>
174 <dockerFile>${basedir}/target/docker-stage/Dockerfile</dockerFile>
175 <tags>
176 <tag>${project.docker.latestminortag.version}</tag>
177 <tag>${project.docker.latestfulltag.version}</tag>
178 <tag>${project.docker.latesttagtimestamp.version}</tag>
179 </tags>
180 </build>
181 </image>
182 </images>
183 </configuration>
184 <executions>
185 <execution>
186 <id>generate-images</id>
187 <phase>package</phase>
188 <goals>
189 <goal>build</goal>
190 </goals>
191 </execution>
Timoney, Dan (dt5972)9b0e1e42018-12-20 13:40:40 -0500192
Timoney, Dan (dt5972)268c4ba2019-02-12 14:35:10 -0500193 <execution>
194 <id>push-images</id>
195 <phase>${docker.push.phase}</phase>
196 <goals>
197 <goal>build</goal>
198 <goal>push</goal>
199 </goals>
200 </execution>
201 </executions>
202 </plugin>
Timoney, Dan (dt5972)9b0e1e42018-12-20 13:40:40 -0500203
Timoney, Dan (dt5972)268c4ba2019-02-12 14:35:10 -0500204 </plugins>
205 </build>
206 </profile>
Timoney, Dan (dt5972)9b0e1e42018-12-20 13:40:40 -0500207
Timoney, Dan (dt5972)268c4ba2019-02-12 14:35:10 -0500208 </profiles>
Timoney, Dan (dt5972)9b0e1e42018-12-20 13:40:40 -0500209</project>