File tree Expand file tree Collapse file tree 16 files changed +43
-70
lines changed Expand file tree Collapse file tree 16 files changed +43
-70
lines changed Original file line number Diff line number Diff line change @@ -12,10 +12,12 @@ All notable changes to this project will be documented in this file.
12
12
### Changed
13
13
14
14
- all: Use our build-repo to cache NPM dependencies ([ #1219 ] )
15
+ - java: Use a more recent Maven version for all Java based products ([ #1220 ] )
15
16
16
17
[ #1207 ] : https://github.com/stackabletech/docker-images/pull/1207
17
18
[ #1215 ] : https://github.com/stackabletech/docker-images/pull/1215
18
19
[ #1219 ] : https://github.com/stackabletech/docker-images/pull/1219
20
+ [ #1220 ] : https://github.com/stackabletech/docker-images/pull/1220
19
21
20
22
## [ 25.7.0] - 2025-07-23
21
23
Original file line number Diff line number Diff line change @@ -73,8 +73,6 @@ cp -r /stackable/patched-libs/maven/* /stackable/.m2/repository
73
73
tar -czf /stackable/druid-${NEW_VERSION}-src.tar.gz .
74
74
75
75
mvn \
76
- --batch-mode \
77
- --no-transfer-progress \
78
76
clean install \
79
77
-Pdist,stackable-bundle-contrib-exts \
80
78
-Dhadoop.compile.version=${HADOOP_VERSION}-stackable${RELEASE} \
Original file line number Diff line number Diff line change @@ -52,8 +52,6 @@ cp -r /stackable/patched-libs/maven/* /stackable/.m2/repository
52
52
tar -czf /stackable/hdfs-utils-${HDFS_UTILS}-src.tar.gz .
53
53
54
54
mvn \
55
- --batch-mode \
56
- --no-transfer-progress\
57
55
clean package \
58
56
-P hadoop-${HADOOP_VERSION} \
59
57
-Dhadoop.version=${HADOOP_VERSION}-stackable${RELEASE} \
Original file line number Diff line number Diff line change @@ -76,8 +76,6 @@ tar -czf /stackable/hadoop-${NEW_VERSION}-src.tar.gz .
76
76
# Therefore, this build does work but the final image does NOT contain the openssl-devel package which is why it fails there which is why we have to create the symlink over there manually.
77
77
# We still leave this flag in to automatically fail should anything with the packages or symlinks ever fail.
78
78
mvn \
79
- --batch-mode \
80
- --no-transfer-progress \
81
79
clean package install \
82
80
-Pdist,native \
83
81
-pl '!hadoop-tools/hadoop-pipes' \
Original file line number Diff line number Diff line change @@ -20,8 +20,6 @@ if [[ -n "$PRODUCT" ]]; then
20
20
# Create snapshot of the source code including custom patches
21
21
tar -czf /stackable/hbase-opa-authorizer-${PRODUCT}-src.tar.gz .
22
22
mvn \
23
- --batch-mode \
24
- --no-transfer-progress \
25
23
-DskipTests \
26
24
-Dmaven.test.skip=true \
27
25
package
Original file line number Diff line number Diff line change @@ -51,8 +51,6 @@ mvn versions:set -DnewVersion=$NEW_VERSION
51
51
tar -czf /stackable/hbase-operator-tools-${FULL_HBASE_OPERATOR_TOOLS_VERSION}-src.tar.gz .
52
52
53
53
mvn \
54
- --batch-mode \
55
- --no-transfer-progress \
56
54
-Dhbase.version=${PATCHED_HBASE_VERSION} \
57
55
-Dhbase-thirdparty.version=${HBASE_THIRDPARTY} \
58
56
-DskipTests \
Original file line number Diff line number Diff line change @@ -54,16 +54,12 @@ tar -czf /stackable/hbase-${NEW_VERSION}-src.tar.gz .
54
54
# I chose to replicate that exact behavior for consistency so please don't merge the two mvn runs into one unless you really know what you're doing!
55
55
# Cannot skip building tests here because the assembly plugin needs a shell script from the test directory.
56
56
mvn \
57
- --batch-mode \
58
- --no-transfer-progress \
59
57
-Dhadoop.profile=3.0 \
60
58
-Dhadoop-three.version=${HADOOP_VERSION}-stackable${RELEASE} \
61
59
-DskipTests \
62
60
clean install
63
61
64
62
mvn \
65
- --batch-mode \
66
- --no-transfer-progress \
67
63
-Dhadoop.profile=3.0 \
68
64
-Dhadoop-three.version=${HADOOP_VERSION}-stackable${RELEASE} \
69
65
-DskipTests \
Original file line number Diff line number Diff line change @@ -47,8 +47,6 @@ tar -czf /stackable/phoenix-${PRODUCT}-stackable${RELEASE}-src.tar.gz .
47
47
# The Maven command can be found inside of the scripts in the create-release folder (release-util.sh as of Phoenix 5.2.0)
48
48
# https://github.com/apache/phoenix/tree/5.2.0/dev/create-release
49
49
mvn \
50
- --batch-mode \
51
- --no-transfer-progress \
52
50
-Dhbase.version=${HBASE_VERSION}-stackable${RELEASE} \
53
51
-Dhbase.profile=${HBASE_PROFILE} \
54
52
-Dhadoop.version=${HADOOP_VERSION}-stackable${RELEASE} \
Original file line number Diff line number Diff line change @@ -56,13 +56,19 @@ mvn versions:set -DnewVersion=$NEW_VERSION -DartifactId=* -DgroupId=* -Dgenerate
56
56
tar -czf /stackable/hive-${NEW_VERSION}-src.tar.gz .
57
57
58
58
if [[ "${PRODUCT}" == "3.1.3" ]] ; then
59
- mvn --batch-mode --no-transfer-progress clean package -DskipTests --projects standalone-metastore
59
+ mvn \
60
+ clean package \
61
+ -DskipTests \
62
+ --projects standalone-metastore
60
63
mv standalone-metastore/target/apache-hive-metastore-${NEW_VERSION}-bin/apache-hive-metastore-${NEW_VERSION}-bin /stackable
61
64
mv standalone-metastore/target/bom.json /stackable/apache-hive-metastore-${NEW_VERSION}-bin/apache-hive-metastore-${NEW_VERSION}.cdx.json
62
65
else
63
66
(
64
67
# https://issues.apache.org/jira/browse/HIVE-20451 switched the metastore server packaging starting with 4.0.0
65
- mvn --batch-mode --no-transfer-progress clean package -DskipTests -Dhadoop.version=${HADOOP_VERSION}-stackable${RELEASE}
68
+ mvn \
69
+ clean package \
70
+ -DskipTests \
71
+ -Dhadoop.version=${HADOOP_VERSION}-stackable${RELEASE}
66
72
67
73
# We only seem to get a .tar.gz archive, so let's extract that to the correct location
68
74
tar --extract --directory=/stackable -f standalone-metastore/metastore-server/target/apache-hive-standalone-metastore-server-${NEW_VERSION}-bin.tar.gz
Original file line number Diff line number Diff line change @@ -10,6 +10,10 @@ FROM stackable/image/stackable-devel
10
10
ARG PRODUCT
11
11
ARG STACKABLE_USER_UID
12
12
13
+ # Find the latest version here: https://github.com/apache/maven
14
+ # renovate: datasource=github-tags packageName=apache/maven
15
+ ARG MAVEN_VERSION="3.9.10"
16
+
13
17
# See: https://adoptium.net/en-gb/installation/linux/#_centosrhelfedora_instructions
14
18
RUN cat <<EOF > /etc/yum.repos.d/adoptium.repo
15
19
[Adoptium]
@@ -46,7 +50,6 @@ microdnf install \
46
50
krb5-devel \
47
51
libcurl-devel \
48
52
make \
49
- maven \
50
53
openssl-devel \
51
54
`# Required to unpack Omid tarball` \
52
55
tar \
@@ -56,9 +59,15 @@ microdnf install \
56
59
zlib-devel
57
60
microdnf clean all
58
61
rm -rf /var/cache/yum
62
+
63
+ curl "https://repo.stackable.tech/repository/packages/maven/apache-maven-${MAVEN_VERSION}-bin.tar.gz" | tar -xzC /tmp
64
+ mv /tmp/apache-maven-${MAVEN_VERSION} /opt/maven
65
+ ln -s /opt/maven/bin/mvn /usr/bin/mvn
66
+
59
67
EOF
60
68
61
69
ENV JAVA_HOME="/usr/lib/jvm/temurin-${PRODUCT}-jdk"
70
+ ENV MAVEN_ARGS="--batch-mode --no-transfer-progress"
62
71
63
72
COPY --chown=${STACKABLE_USER_UID}:0 java-devel/stackable/settings.xml /stackable/.m2/settings.xml
64
73
COPY --chown=${STACKABLE_USER_UID}:0 java-devel/stackable/settings.xml /root/.m2/settings.xml
You can’t perform that action at this time.
0 commit comments