blob: ba82d8dcf0b70b30d44bb28be2c58f4803c2b082 [file] [log] [blame]
Dan Timoneyaf1e3812020-11-12 11:42:03 -05001<?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">
Singal, Kapil (ks220y)b6e7d962020-12-17 14:37:06 -05003 <modelVersion>4.0.0</modelVersion>
Dan Timoneyaf1e3812020-11-12 11:42:03 -05004
Singal, Kapil (ks220y)b6e7d962020-12-17 14:37:06 -05005 <parent>
6 <groupId>org.onap.ccsdk.distribution</groupId>
7 <artifactId>distribution-odl-aluminum</artifactId>
Dan Timoney486bd172021-03-22 13:52:45 -04008 <version>1.2.0-SNAPSHOT</version>
Singal, Kapil (ks220y)b6e7d962020-12-17 14:37:06 -05009 </parent>
Dan Timoneyaf1e3812020-11-12 11:42:03 -050010
Singal, Kapil (ks220y)b6e7d962020-12-17 14:37:06 -050011 <artifactId>distribution-odl-aluminum-docker</artifactId>
12 <packaging>pom</packaging>
Dan Timoneyaf1e3812020-11-12 11:42:03 -050013
Singal, Kapil (ks220y)b6e7d962020-12-17 14:37:06 -050014 <name>ccsdk-distribution :: opendaylight :: aluminum :: docker</name>
15 <description>Creates OpenDaylight container</description>
16 <organization>
17 <name>ONAP</name>
18 </organization>
Dan Timoneyaf1e3812020-11-12 11:42:03 -050019
Singal, Kapil (ks220y)b6e7d962020-12-17 14:37:06 -050020 <properties>
21 <image.name>onap/ccsdk-odl-aluminum-alpine-image</image.name>
22 <odl.karaf.artifactId>onap-karaf</odl.karaf.artifactId>
Michael DÜrree4922ac2021-02-11 06:58:43 +010023 <odl.shiro.version>0.12.1</odl.shiro.version>
Singal, Kapil (ks220y)b6e7d962020-12-17 14:37:06 -050024 </properties>
Dan Timoneyaf1e3812020-11-12 11:42:03 -050025
Singal, Kapil (ks220y)b6e7d962020-12-17 14:37:06 -050026 <build>
27 <plugins>
Dan Timoneyaf1e3812020-11-12 11:42:03 -050028
Singal, Kapil (ks220y)b6e7d962020-12-17 14:37:06 -050029 <plugin>
30 <groupId>org.codehaus.groovy.maven</groupId>
31 <artifactId>gmaven-plugin</artifactId>
32 <version>1.0</version>
33 <executions>
34 <execution>
35 <phase>validate</phase>
36 <goals>
37 <goal>execute</goal>
38 </goals>
39 <configuration>
40 <source>${basedir}/../../../src/main/scripts/TagVersion.groovy</source>
41 </configuration>
42 </execution>
43 </executions>
44 </plugin>
Dan Timoneyaf1e3812020-11-12 11:42:03 -050045
Singal, Kapil (ks220y)b6e7d962020-12-17 14:37:06 -050046 <plugin>
47 <groupId>org.apache.maven.plugins</groupId>
48 <artifactId>maven-dependency-plugin</artifactId>
49 <version>3.0.0</version>
50 <executions>
51 <execution>
52 <id>get-odl-distribution</id>
53 <phase>validate</phase>
54 <goals>
55 <goal>copy</goal>
56 </goals>
57 <configuration>
58 <artifactItems>
59 <artifactItem>
60 <groupId>org.opendaylight.integration</groupId>
61 <artifactId>${odl.karaf.artifactId}</artifactId>
62 <version>${ccsdk.opendaylight.version}</version>
63 <type>tar.gz</type>
Dan Timoneyaf1e3812020-11-12 11:42:03 -050064
Singal, Kapil (ks220y)b6e7d962020-12-17 14:37:06 -050065 <overWrite>true</overWrite>
66 <outputDirectory>${basedir}/target/docker-stage</outputDirectory>
67 </artifactItem>
68 </artifactItems>
69 <overWriteReleases>false</overWriteReleases>
70 <overWriteSnapshots>true</overWriteSnapshots>
71 <overWriteIfNewer>true</overWriteIfNewer>
72 </configuration>
73 </execution>
Michael DÜrree4922ac2021-02-11 06:58:43 +010074 <execution>
75 <id>copy-with-alternalte-repo-2</id>
76 <phase>generate-sources</phase>
77 <goals>
78 <goal>copy</goal>
79 </goals>
80 <configuration>
81 <artifactItems>
82 <artifactItem>
83 <groupId>com.highstreet-technologies.aaa</groupId>
84 <artifactId>aaa-shiro</artifactId>
85 <version>${odl.shiro.version}</version>
86 <outputDirectory>${project.build.directory}/docker-stage/system/org/opendaylight/aaa/aaa-shiro/${odl.shiro.version}</outputDirectory>
87 <destFileName>aaa-shiro-${odl.shiro.version}.jar</destFileName>
88 <excludes>*</excludes>
89 </artifactItem>
90 <artifactItem>
91 <groupId>com.highstreet-technologies.aaa</groupId>
92 <artifactId>aaa-authn-api</artifactId>
93 <version>${odl.shiro.version}</version>
94 <outputDirectory>${project.build.directory}/docker-stage/system/org/opendaylight/aaa/aaa-authn-api/${odl.shiro.version}</outputDirectory>
95 <destFileName>aaa-authn-api-${odl.shiro.version}.jar</destFileName>
96 <excludes>*</excludes>
97 </artifactItem>
98 </artifactItems>
99 <overWriteReleases>false</overWriteReleases>
100 <overWriteSnapshots>true</overWriteSnapshots>
101 <overWriteIfNewer>true</overWriteIfNewer>
102 </configuration>
103 </execution>
Singal, Kapil (ks220y)b6e7d962020-12-17 14:37:06 -0500104 </executions>
105 </plugin>
Dan Timoneyaf1e3812020-11-12 11:42:03 -0500106
Singal, Kapil (ks220y)b6e7d962020-12-17 14:37:06 -0500107 <plugin>
108 <artifactId>maven-resources-plugin</artifactId>
109 <version>2.6</version>
110 <executions>
111 <execution>
112 <id>copy-dockerfile</id>
113 <goals>
114 <goal>copy-resources</goal>
115 </goals><!-- here the phase you need -->
116 <phase>validate</phase>
117 <configuration>
118 <outputDirectory>${basedir}/target/docker-stage</outputDirectory>
119 <resources>
120 <resource>
121 <directory>src/main/docker</directory>
122 <includes>
123 <include>Dockerfile</include>
124 </includes>
125 <filtering>true</filtering>
126 </resource>
127 <resource>
128 <directory>src/main/odlscripts</directory>
129 <includes>
130 <include>*</include>
131 </includes>
132 <filtering>false</filtering>
133 </resource>
134 </resources>
135 </configuration>
136 </execution>
137 </executions>
138 </plugin>
Dan Timoneyaf1e3812020-11-12 11:42:03 -0500139
Singal, Kapil (ks220y)b6e7d962020-12-17 14:37:06 -0500140 </plugins>
141 </build>
Dan Timoneyaf1e3812020-11-12 11:42:03 -0500142
Singal, Kapil (ks220y)b6e7d962020-12-17 14:37:06 -0500143 <profiles>
144 <profile>
145 <id>docker</id>
146 <build>
147 <plugins>
148 <plugin>
149 <groupId>io.fabric8</groupId>
150 <artifactId>docker-maven-plugin</artifactId>
151 <version>0.34.0</version>
152 <inherited>false</inherited>
153 <configuration>
154 <images>
155 <image>
156 <name>${image.name}</name>
157 <build>
158 <cleanup>try</cleanup>
Singal, Kapil (ks220y)643e0322021-03-28 22:21:54 -0400159 <noCache>true</noCache>
Singal, Kapil (ks220y)b6e7d962020-12-17 14:37:06 -0500160 <contextDir>${basedir}/target/docker-stage</contextDir>
161 <dockerFile>Dockerfile</dockerFile>
162 <tags>
163 <tag>${project.docker.latestminortag.version}</tag>
164 <tag>${project.docker.latestfulltag.version}</tag>
165 <tag>${project.docker.latesttagtimestamp.version}</tag>
166 </tags>
167 </build>
168 </image>
169 </images>
170 <verbose>${docker.verbose}</verbose>
171 <skipPush>${docker.skip.push}</skipPush>
172 </configuration>
173 <executions>
174 <execution>
175 <id>build-push-images</id>
176 <goals>
177 <goal>build</goal>
178 <goal>push</goal>
179 </goals>
180 </execution>
181 </executions>
182 </plugin>
183 </plugins>
184 </build>
185 </profile>
186 </profiles>
Dan Timoneyaf1e3812020-11-12 11:42:03 -0500187</project>