Skip to content

Commit 874ce0e

Browse files
committed
Use our build-repo for Maven downloads
1 parent 15acf1e commit 874ce0e

File tree

5 files changed

+42
-6
lines changed

5 files changed

+42
-6
lines changed

hadoop/Dockerfile

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,7 @@ COPY --chown=${STACKABLE_USER_UID}:0 hadoop/stackable/patches /stackable/patches
6565
RUN curl "https://repo.stackable.tech/repository/packages/hadoop/hadoop-${PRODUCT}-src.tar.gz" | tar -xzC . && \
6666
patches/apply_patches.sh ${PRODUCT} && \
6767
cd hadoop-${PRODUCT}-src && \
68-
mvn --no-transfer-progress clean package -Pdist,native -pl '!hadoop-tools/hadoop-pipes,!hadoop-yarn-project,!hadoop-mapreduce-project,!hadoop-minicluster' -Drequire.fuse=true -DskipTests -Dmaven.javadoc.skip=true && \
68+
mvn --batch-mode --no-transfer-progress clean package -Pdist,native -pl '!hadoop-tools/hadoop-pipes,!hadoop-yarn-project,!hadoop-mapreduce-project,!hadoop-minicluster' -Drequire.fuse=true -DskipTests -Dmaven.javadoc.skip=true && \
6969
cp -r hadoop-dist/target/hadoop-${PRODUCT} /stackable/hadoop-${PRODUCT} && \
7070
mv hadoop-dist/target/bom.json /stackable/hadoop-${PRODUCT}/hadoop-${PRODUCT}.cdx.json && \
7171
# HDFS fuse-dfs is not part of the regular dist output, so we need to copy it in ourselves
@@ -116,7 +116,7 @@ WORKDIR /stackable
116116

117117
RUN curl "https://github.com/stackabletech/hdfs-utils/archive/refs/tags/v${HDFS_UTILS}.tar.gz" | tar -xzC . && \
118118
cd hdfs-utils-${HDFS_UTILS} && \
119-
mvn --no-transfer-progress clean package -P hadoop-${PRODUCT} -DskipTests -Dmaven.javadoc.skip=true && \
119+
mvn --batch-mode --no-transfer-progress clean package -P hadoop-${PRODUCT} -DskipTests -Dmaven.javadoc.skip=true && \
120120
mkdir -p /stackable/hadoop-${PRODUCT}/share/hadoop/common/lib && \
121121
cp target/hdfs-utils-$HDFS_UTILS.jar /stackable/hadoop-${PRODUCT}/share/hadoop/common/lib/hdfs-utils-${HDFS_UTILS}.jar && \
122122
rm -rf /stackable/hdfs-utils-main

java-devel/stackable/settings.xml

Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,43 @@
11
<settings>
2+
<mirrors>
3+
<mirror>
4+
<id>nexus</id>
5+
<mirrorOf>*</mirrorOf>
6+
<url>https://build-repo.stackable.tech/repository/maven-public/</url>
7+
</mirror>
8+
</mirrors>
9+
210
<profiles>
311
<profile>
412
<id>stackable</id>
13+
14+
<!--Enable snapshots for the built-in central repo to direct -->
15+
<!--all requests to nexus via the mirror -->
16+
<repositories>
17+
<repository>
18+
<id>central</id>
19+
<url>http://central</url>
20+
<releases>
21+
<enabled>true</enabled>
22+
</releases>
23+
<snapshots>
24+
<enabled>true</enabled>
25+
</snapshots>
26+
</repository>
27+
</repositories>
28+
<pluginRepositories>
29+
<pluginRepository>
30+
<id>central</id>
31+
<url>http://central</url>
32+
<releases>
33+
<enabled>true</enabled>
34+
</releases>
35+
<snapshots>
36+
<enabled>true</enabled>
37+
</snapshots>
38+
</pluginRepository>
39+
</pluginRepositories>
40+
541
<properties>
642
<!--
743
This is to work around an issue where Maven builds in Github Actions would randomly fail.

nifi/Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ RUN curl 'https://repo.stackable.tech/repository/m2/tech/stackable/nifi/stackabl
4545
patches/apply_patches.sh ${PRODUCT} && \
4646
# Build NiFi
4747
cd /stackable/nifi-${PRODUCT}-src/ && \
48-
mvn clean install -Dmaven.javadoc.skip=true -DskipTests --activate-profiles include-iceberg,include-hadoop-aws,include-hadoop-azure,include-hadoop-gcp && \
48+
mvn --batch-mode --no-transfer-progress clean install -Dmaven.javadoc.skip=true -DskipTests --activate-profiles include-iceberg,include-hadoop-aws,include-hadoop-azure,include-hadoop-gcp && \
4949
# Copy the binaries to the /stackable folder
5050
mv /stackable/nifi-${PRODUCT}-src/nifi-assembly/target/nifi-${PRODUCT}-bin/nifi-${PRODUCT} /stackable/nifi-${PRODUCT} && \
5151
# Copy the SBOM as well

trino/Dockerfile

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ cd trino-storage-${STORAGE_CONNECTOR}-src
3333
mvn versions:set -DnewVersion=${STORAGE_CONNECTOR}
3434

3535
# We need to use ./mvnw instead of mvn to get a recent maven version (which is required to build Trino)
36-
./mvnw package -DskipTests -Dmaven.gitcommitid.skip=true
36+
./mvnw --batch-mode --no-transfer-progress package -DskipTests -Dmaven.gitcommitid.skip=true
3737
EOF
3838

3939
FROM stackable/image/java-devel AS trino-builder
@@ -79,7 +79,7 @@ git commit --allow-empty --message "Fake commit, so that we can create a tag"
7979
git tag ${PRODUCT}
8080

8181
# We need to use ./mvnw instead of mvn to get a recent maven version (which is required to build Trino)
82-
./mvnw package -DskipTests --projects="!docs,!core/trino-server-rpm"
82+
./mvnw --batch-mode --no-transfer-progress package -DskipTests --projects="!docs,!core/trino-server-rpm"
8383

8484
# Delete the worst intermediate build products to free some space
8585
rm -r /stackable/trino-server-${PRODUCT}-src/plugin/*/target /stackable/trino-server-${PRODUCT}-src/core/trino-server/target/trino-server-${PRODUCT}

zookeeper/Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ RUN curl "https://repo.stackable.tech/repository/packages/zookeeper/apache-zooke
2323
cd /stackable/apache-zookeeper-${PRODUCT}/ && \
2424
# Exclude the `zookeeper-client` submodule, this is not needed and has c parts
2525
# that created all kinds of issues for the build container
26-
mvn -pl "!zookeeper-client/zookeeper-client-c" clean install checkstyle:check spotbugs:check -DskipTests -Pfull-build && \
26+
mvn --batch-mode --no-transfer-progress -pl "!zookeeper-client/zookeeper-client-c" clean install checkstyle:check spotbugs:check -DskipTests -Pfull-build && \
2727
mv zookeeper-assembly/target/apache-zookeeper-${PRODUCT}-bin.tar.gz /stackable && \
2828
cd /stackable && \
2929
# Unpack the archive which contains the build artifacts from above. Remove some

0 commit comments

Comments
 (0)