Skip to content
This repository was archived by the owner on Nov 11, 2025. It is now read-only.
This repository was archived by the owner on Nov 11, 2025. It is now read-only.

How to build S3 extension and to bundle it with HawkBit master? #83

@zyga

Description

@zyga

Hi

I've been trying to build S3 extension and to correctly bundle it with HawkBit master (since the tagged releases are very old). I've been trying several things but either, s3 extension is not bundled into HawkBit JAR or the build fails:

FROM ubuntu:22.04
ARG DEBIAN_FRONTEND=noninteractive
RUN apt-get update && apt-get install -y openjdk-11-jdk-headless maven git
WORKDIR /src
RUN git clone https://github.com/eclipse/hawkbit
RUN git clone https://github.com/eclipse/hawkbit-extensions hawkbit/hawkbit-extensions
WORKDIR /src/hawkbit
RUN mvn install --batch-mode -DskipTests -T $(nproc) -Dmaven.artifact.threads=$(nproc)
WORKDIR /src/hawkbit/hawkbit-extensions/hawkbit-extension-artifact-repository-s3
RUN mvn install --batch-mode -DskipTests -T $(nproc) -Dmaven.artifact.threads=$(nproc)

This dockerfile works, but the extension is just built, not doing anything beyond that.

By following advice spread around this repository, I've added the following part:

WORKDIR /src/hawkbit
ARG HAWKBIT_EXTRA_DEPENDENCIES_S3="\n\
       <!-- Extension for using S3 as artifact storage. -->\n\
       <dependency>\n\
           <groupId>org.eclipse.hawkbit</groupId>\n\
           <artifactId>hawkbit-extension-artifact-repository-s3</artifactId>\n\
           <version>\${project.version}</version>\n\
       </dependency>"
RUN sed -i "s|<dependencies>|<dependencies>${HAWKBIT_EXTRA_DEPENDENCIES_S3}|" hawkbit-runtime/hawkbit-update-
server/pom.xml
RUN cp /src/hawkbit/hawkbit-extensions/hawkbit-extension-artifact-repository-s3/target/hawkbit-extension-artifact-repository-s3-*.jar /src/hawkbit/hawkbit-runtime/hawkbit-update-server/src/main/resources/
RUN mvn install --batch-mode -DskipTests -T $(nproc) -Dmaven.artifact.threads=$(nproc)

But this fails to build with:

#26 30.58 [ERROR] Failed to execute goal on project hawkbit-update-server: Could not resolve dependencies for project org.eclipse.hawkbit:hawkbit-update-server:jar:0.3.0-SNAPSHOT: Failed to collect dependencies at org.eclipse.hawkbit:hawkbit-extension-artifact-repository-s3:jar:0.3.0-SNAPSHOT: Failed to read artifact descriptor for org.eclipse.hawkbit:hawkbit-extension-artifact-repository-s3:jar:0.3.0-SNAPSHOT: Could not find artifact org.eclipse.hawkbit:hawkbit-extensions-parent:pom:0.3.0-SNAPSHOT in vaadin-addons (https://maven.vaadin.com/vaadin-addons) -> [Help 1]

I'm unfamiliar with maven/pom files. What am I doing wrong? Is the location of the extension source code relative to hawkbit a factor?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions