Roll to initial Honolulu snapshot
[ccsdk/distribution.git] / opendaylight / neon / neon-alpine / 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-neon</artifactId>
8                 <version>0.7.0-SNAPSHOT</version>
9         </parent>
10
11         <artifactId>distribution-odl-neon-docker</artifactId>
12         <version>0.7.0-SNAPSHOT</version>
13         <packaging>pom</packaging>
14
15         <name>ccsdk-distribution :: opendaylight :: neon :: docker</name>
16         <description>Creates OpenDaylight container</description>
17         <organization>
18                 <name>ONAP</name>
19         </organization>
20
21         <properties>
22                 <image.name>onap/ccsdk-odl-neon-alpine-image</image.name>
23                 <odl.karaf.artifactId>onap-karaf</odl.karaf.artifactId>
24         </properties>
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>${odl.karaf.artifactId}</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                                 </executions>
76                         </plugin>
77
78                         <plugin>
79                                 <artifactId>maven-resources-plugin</artifactId>
80                                 <version>2.6</version>
81                                 <executions>
82                                         <execution>
83                                                 <id>copy-dockerfile</id>
84                                                 <goals>
85                                                         <goal>copy-resources</goal>
86                                                 </goals><!-- here the phase you need -->
87                                                 <phase>validate</phase>
88                                                 <configuration>
89                                                         <outputDirectory>${basedir}/target/docker-stage</outputDirectory>
90                                                         <resources>
91                                                                 <resource>
92                                                                         <directory>src/main/docker</directory>
93                                                                         <includes>
94                                                                                 <include>Dockerfile</include>
95                                                                         </includes>
96                                                                         <filtering>true</filtering>
97                                                                 </resource>
98                                                         </resources>
99                                                 </configuration>
100                                         </execution>
101                                 </executions>
102                         </plugin>
103
104
105
106                 </plugins>
107         </build>
108
109         <profiles>
110                 <profile>
111                         <id>docker</id>
112                         <build>
113                                 <plugins>
114                                         <plugin>
115                                                 <groupId>io.fabric8</groupId>
116                                                 <artifactId>docker-maven-plugin</artifactId>
117                                                 <version>0.28.0</version>
118                                                 <inherited>false</inherited>
119                                                 <configuration>
120                                                         <images>
121                                                                 <image>
122                                                                         <name>${image.name}</name>
123                                                                         <build>
124                                                                                 <cleanup>try</cleanup>
125                                                                                 <dockerFileDir>${basedir}/target/docker-stage</dockerFileDir>
126                                                                                 <dockerFile>Dockerfile</dockerFile>
127                                                                                 <tags>
128                                                                                         <tag>${project.docker.latestminortag.version}</tag>
129                                                                                         <tag>${project.docker.latestfulltag.version}</tag>
130                                                                                         <tag>${project.docker.latesttagtimestamp.version}</tag>
131                                                                                 </tags>
132                                                                         </build>
133                                                                 </image>
134                                                         </images>
135                                                 </configuration>
136                                                 <executions>
137                                                         <execution>
138                                                                 <id>generate-images</id>
139                                                                 <phase>package</phase>
140                                                                 <goals>
141                                                                         <goal>build</goal>
142                                                                 </goals>
143                                                         </execution>
144
145                                                         <execution>
146                                                                 <id>push-images</id>
147                                                                 <phase>${docker.push.phase}</phase>
148                                                                 <goals>
149                                                                         <goal>build</goal>
150                                                                         <goal>push</goal>
151                                                                 </goals>
152                                                         </execution>
153                                                 </executions>
154                                         </plugin>
155
156                                 </plugins>
157                         </build>
158                 </profile>
159
160         </profiles>
161 </project>

© 2017 ONAP. Copyright © The Linux Foundation ®. All Rights Reserved.
The Linux Foundation has registered trademarks and uses trademarks.
For a list of trademarks of The Linux Foundation, please see our Trademark Usage page.
Linux is a registered trademark of Linus Torvalds.
Privacy Policy and Terms of Use