| <!-- |
| |
| Licensed to the Apache Software Foundation (ASF) under one |
| or more contributor license agreements. See the NOTICE file |
| distributed with this work for additional information |
| regarding copyright ownership. The ASF licenses this file |
| to you under the Apache License, Version 2.0 (the |
| "License"); you may not use this file except in compliance |
| with the License. You may obtain a copy of the License at |
| |
| http://www.apache.org/licenses/LICENSE-2.0 |
| |
| Unless required by applicable law or agreed to in writing, |
| software distributed under the License is distributed on an |
| "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY |
| KIND, either express or implied. See the License for the |
| specific language governing permissions and limitations |
| under the License. |
| |
| --> |
| <project xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://maven.apache.org/POM/4.0.0" |
| xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> |
| <parent> |
| <groupId>org.apache.inlong</groupId> |
| <artifactId>inlong-manager</artifactId> |
| <version>1.3.0</version> |
| </parent> |
| <artifactId>manager-docker</artifactId> |
| <modelVersion>4.0.0</modelVersion> |
| <name>Apache InLong - Manager Docker</name> |
| |
| <dependencies> |
| <!-- copy manager-web.tar.gz to the manager-docker/target path --> |
| <dependency> |
| <groupId>org.apache.inlong</groupId> |
| <artifactId>manager-web</artifactId> |
| <version>${project.parent.version}</version> |
| <classifier>bin</classifier> |
| <type>tar.gz</type> |
| <scope>provided</scope> |
| </dependency> |
| <!-- copy sort-dist.jar to the manager-docker/target path --> |
| <dependency> |
| <groupId>org.apache.inlong</groupId> |
| <artifactId>sort-dist</artifactId> |
| <version>${project.parent.version}</version> |
| </dependency> |
| <!-- copy sort-connectors to the manager-docker/target path --> |
| <dependency> |
| <groupId>org.apache.inlong</groupId> |
| <artifactId>sort-connector-pulsar</artifactId> |
| <version>${project.parent.version}</version> |
| </dependency> |
| <dependency> |
| <groupId>org.apache.inlong</groupId> |
| <artifactId>sort-connector-jdbc</artifactId> |
| <version>${project.parent.version}</version> |
| </dependency> |
| <dependency> |
| <groupId>org.apache.inlong</groupId> |
| <artifactId>sort-connector-hive</artifactId> |
| <version>${project.parent.version}</version> |
| </dependency> |
| </dependencies> |
| |
| <profiles> |
| <profile> |
| <id>docker</id> |
| <build> |
| <plugins> |
| <plugin> |
| <groupId>com.spotify</groupId> |
| <artifactId>dockerfile-maven-plugin</artifactId> |
| <version>${dockerfile.maven.version}</version> |
| <executions> |
| <execution> |
| <id>default</id> |
| <goals> |
| <goal>build</goal> |
| </goals> |
| </execution> |
| <execution> |
| <id>tag-and-push-latest</id> |
| <goals> |
| <goal>tag</goal> |
| <goal>push</goal> |
| </goals> |
| <configuration> |
| <repository>${docker.organization}/manager</repository> |
| <tag>latest</tag> |
| </configuration> |
| </execution> |
| </executions> |
| <configuration> |
| <repository>${docker.organization}/manager</repository> |
| <pullNewerImage>false</pullNewerImage> |
| <tag>${project.version}</tag> |
| <buildArgs> |
| <VERSION>${project.version}</VERSION> |
| </buildArgs> |
| </configuration> |
| </plugin> |
| <plugin> |
| <groupId>org.apache.maven.plugins</groupId> |
| <artifactId>maven-dependency-plugin</artifactId> |
| <version>3.1.0</version> |
| <executions> |
| <execution> |
| <id>copy-tarball</id> |
| <goals> |
| <goal>copy-dependencies</goal> |
| </goals> |
| <phase>generate-resources</phase> |
| <configuration> |
| <outputDirectory>target/</outputDirectory> |
| <includeArtifactIds>manager-web, |
| sort-dist,sort-connector-pulsar, |
| sort-connector-jdbc,sort-connector-hive</includeArtifactIds> |
| <excludeTransitive>true</excludeTransitive> |
| </configuration> |
| </execution> |
| </executions> |
| </plugin> |
| </plugins> |
| </build> |
| </profile> |
| </profiles> |
| </project> |