Timoney, Dan (dt5972) | 428403f | 2019-06-12 14:45:15 +0200 | [diff] [blame] | 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> |
Dan Timoney | 0235021 | 2020-01-30 14:00:55 -0500 | [diff] [blame] | 8 | <version>0.7.1-SNAPSHOT</version> |
Timoney, Dan (dt5972) | 428403f | 2019-06-12 14:45:15 +0200 | [diff] [blame] | 9 | </parent> |
| 10 | |
Timoney, Dan (dt5972) | 707c6a1 | 2019-09-24 16:04:42 -0400 | [diff] [blame] | 11 | <artifactId>distribution-odl-neon-docker</artifactId> |
Dan Timoney | 0235021 | 2020-01-30 14:00:55 -0500 | [diff] [blame] | 12 | <version>0.7.1-SNAPSHOT</version> |
Timoney, Dan (dt5972) | 428403f | 2019-06-12 14:45:15 +0200 | [diff] [blame] | 13 | <packaging>pom</packaging> |
| 14 | |
Timoney, Dan (dt5972) | 707c6a1 | 2019-09-24 16:04:42 -0400 | [diff] [blame] | 15 | <name>ccsdk-distribution :: opendaylight :: neon :: docker</name> |
Timoney, Dan (dt5972) | 428403f | 2019-06-12 14:45:15 +0200 | [diff] [blame] | 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> |
Timoney, Dan (dt5972) | 4ec0326 | 2019-12-12 10:35:10 -0500 | [diff] [blame] | 23 | <odl.karaf.artifactId>onap-karaf</odl.karaf.artifactId> |
Timoney, Dan (dt5972) | 428403f | 2019-06-12 14:45:15 +0200 | [diff] [blame] | 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> |
Timoney, Dan (dt5972) | 2951652 | 2019-10-01 13:47:32 -0400 | [diff] [blame] | 61 | <groupId>org.opendaylight.integration</groupId> |
Timoney, Dan (dt5972) | 4ec0326 | 2019-12-12 10:35:10 -0500 | [diff] [blame] | 62 | <artifactId>${odl.karaf.artifactId}</artifactId> |
Timoney, Dan (dt5972) | 2951652 | 2019-10-01 13:47:32 -0400 | [diff] [blame] | 63 | <version>${ccsdk.opendaylight.version}</version> |
Timoney, Dan (dt5972) | 428403f | 2019-06-12 14:45:15 +0200 | [diff] [blame] | 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> |
Timoney, Dan (dt5972) | 428403f | 2019-06-12 14:45:15 +0200 | [diff] [blame] | 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> |
herbert | 5e5cc2b | 2020-02-18 17:53:52 +0100 | [diff] [blame^] | 98 | <resource> |
| 99 | <directory>src/main/odlscripts</directory> |
| 100 | <includes> |
| 101 | <include>*</include> |
| 102 | </includes> |
| 103 | <filtering>true</filtering> |
| 104 | </resource> |
Timoney, Dan (dt5972) | 428403f | 2019-06-12 14:45:15 +0200 | [diff] [blame] | 105 | </resources> |
| 106 | </configuration> |
| 107 | </execution> |
| 108 | </executions> |
| 109 | </plugin> |
| 110 | |
| 111 | |
| 112 | |
| 113 | </plugins> |
| 114 | </build> |
| 115 | |
| 116 | <profiles> |
| 117 | <profile> |
| 118 | <id>docker</id> |
| 119 | <build> |
| 120 | <plugins> |
| 121 | <plugin> |
| 122 | <groupId>io.fabric8</groupId> |
| 123 | <artifactId>docker-maven-plugin</artifactId> |
| 124 | <version>0.28.0</version> |
| 125 | <inherited>false</inherited> |
| 126 | <configuration> |
| 127 | <images> |
| 128 | <image> |
| 129 | <name>${image.name}</name> |
| 130 | <build> |
| 131 | <cleanup>try</cleanup> |
| 132 | <dockerFileDir>${basedir}/target/docker-stage</dockerFileDir> |
| 133 | <dockerFile>Dockerfile</dockerFile> |
| 134 | <tags> |
| 135 | <tag>${project.docker.latestminortag.version}</tag> |
| 136 | <tag>${project.docker.latestfulltag.version}</tag> |
| 137 | <tag>${project.docker.latesttagtimestamp.version}</tag> |
| 138 | </tags> |
| 139 | </build> |
| 140 | </image> |
| 141 | </images> |
| 142 | </configuration> |
| 143 | <executions> |
| 144 | <execution> |
| 145 | <id>generate-images</id> |
| 146 | <phase>package</phase> |
| 147 | <goals> |
| 148 | <goal>build</goal> |
| 149 | </goals> |
| 150 | </execution> |
| 151 | |
| 152 | <execution> |
| 153 | <id>push-images</id> |
| 154 | <phase>${docker.push.phase}</phase> |
| 155 | <goals> |
| 156 | <goal>build</goal> |
| 157 | <goal>push</goal> |
| 158 | </goals> |
| 159 | </execution> |
| 160 | </executions> |
| 161 | </plugin> |
| 162 | |
| 163 | </plugins> |
| 164 | </build> |
| 165 | </profile> |
| 166 | |
| 167 | </profiles> |
| 168 | </project> |