mirror of
git://code.qt.io/qt/qt5.git
synced 2025-12-21 07:28:21 +08:00
Add maven provisioning for qtopenapi build
Change-Id: I4439cb8d8f1327e474d272819557e8e64ef17c83 Reviewed-by: Alexandru Croitor <alexandru.croitor@qt.io>
This commit is contained in:
34
coin/provisioning/common/unix/install-maven.sh
Executable file
34
coin/provisioning/common/unix/install-maven.sh
Executable file
@@ -0,0 +1,34 @@
|
||||
#!/usr/bin/env bash
|
||||
# Copyright (C) 2025 The Qt Company Ltd.
|
||||
# SPDX-License-Identifier: LicenseRef-Qt-Commercial OR LGPL-3.0-only OR GPL-2.0-only OR GPL-3.0-only
|
||||
|
||||
set -ex
|
||||
|
||||
# shellcheck source=./DownloadURL.sh
|
||||
source "${BASH_SOURCE%/*}/DownloadURL.sh"
|
||||
# shellcheck source=./SetEnvVar.sh
|
||||
source "${BASH_SOURCE%/*}/SetEnvVar.sh"
|
||||
|
||||
# This script will install maven 3.9.11
|
||||
version="3.9.11"
|
||||
|
||||
sha256="c084cde986ba878da4370bde009ab0a0a1936343"
|
||||
pkgname="apache-maven-$version-bin.tar.gz"
|
||||
dirname="apache-maven-$version"
|
||||
|
||||
internalUrl="http://ci-files01-hki.ci.qt.io/input/qtopenapi/maven/$pkgname"
|
||||
externalUrl="https://dlcdn.apache.org/maven/maven-3/3.9.11/binaries/$pkgname"
|
||||
|
||||
targetFile="$HOME/$pkgname"
|
||||
DownloadURL "$internalUrl" "$externalUrl" "$sha256" "$targetFile"
|
||||
echo "Installing Maven"
|
||||
tar -xzf "$targetFile" -C "$HOME"
|
||||
rm "$targetFile"
|
||||
|
||||
sudo mkdir -p "/opt/maven/"
|
||||
installPrefix="/opt/maven/$dirname"
|
||||
sudo mv "$HOME/$dirname" "$installPrefix"
|
||||
|
||||
SetEnvVar "PATH" "$installPrefix/bin:$PATH"
|
||||
echo "Maven = $version" >> ~/versions.txt
|
||||
|
||||
7
coin/provisioning/qtci-linux-Debian-11.6-aarch64/38-maven.sh
Executable file
7
coin/provisioning/qtci-linux-Debian-11.6-aarch64/38-maven.sh
Executable file
@@ -0,0 +1,7 @@
|
||||
#!/usr/bin/env bash
|
||||
#Copyright (C) 2025 The Qt Company Ltd
|
||||
#SPDX-License-Identifier: LicenseRef-Qt-Commercial OR LGPL-3.0-only OR GPL-2.0-only OR GPL-3.0-only
|
||||
|
||||
set -ex
|
||||
|
||||
source "${BASH_SOURCE%/*}/../common/unix/install-maven.sh"
|
||||
7
coin/provisioning/qtci-linux-RHEL-8.10-x86_64/38-maven.sh
Executable file
7
coin/provisioning/qtci-linux-RHEL-8.10-x86_64/38-maven.sh
Executable file
@@ -0,0 +1,7 @@
|
||||
#!/usr/bin/env bash
|
||||
#Copyright (C) 2025 The Qt Company Ltd
|
||||
#SPDX-License-Identifier: LicenseRef-Qt-Commercial OR LGPL-3.0-only OR GPL-2.0-only OR GPL-3.0-only
|
||||
|
||||
set -ex
|
||||
|
||||
source "${BASH_SOURCE%/*}/../common/unix/install-maven.sh"
|
||||
7
coin/provisioning/qtci-linux-RHEL-9.4-x86_64/38-maven.sh
Executable file
7
coin/provisioning/qtci-linux-RHEL-9.4-x86_64/38-maven.sh
Executable file
@@ -0,0 +1,7 @@
|
||||
#!/usr/bin/env bash
|
||||
#Copyright (C) 2025 The Qt Company Ltd
|
||||
#SPDX-License-Identifier: LicenseRef-Qt-Commercial OR LGPL-3.0-only OR GPL-2.0-only OR GPL-3.0-only
|
||||
|
||||
set -ex
|
||||
|
||||
source "${BASH_SOURCE%/*}/../common/unix/install-maven.sh"
|
||||
7
coin/provisioning/qtci-linux-SLES-15_SP6-x86_64/38-maven.sh
Executable file
7
coin/provisioning/qtci-linux-SLES-15_SP6-x86_64/38-maven.sh
Executable file
@@ -0,0 +1,7 @@
|
||||
#!/usr/bin/env bash
|
||||
#Copyright (C) 2025 The Qt Company Ltd
|
||||
#SPDX-License-Identifier: LicenseRef-Qt-Commercial OR LGPL-3.0-only OR GPL-2.0-only OR GPL-3.0-only
|
||||
|
||||
set -ex
|
||||
|
||||
source "${BASH_SOURCE%/*}/../common/unix/install-maven.sh"
|
||||
7
coin/provisioning/qtci-linux-Ubuntu-20.04-x86_64/38-maven.sh
Executable file
7
coin/provisioning/qtci-linux-Ubuntu-20.04-x86_64/38-maven.sh
Executable file
@@ -0,0 +1,7 @@
|
||||
#!/usr/bin/env bash
|
||||
#Copyright (C) 2025 The Qt Company Ltd
|
||||
#SPDX-License-Identifier: LicenseRef-Qt-Commercial OR LGPL-3.0-only OR GPL-2.0-only OR GPL-3.0-only
|
||||
|
||||
set -ex
|
||||
|
||||
source "${BASH_SOURCE%/*}/../common/unix/install-maven.sh"
|
||||
7
coin/provisioning/qtci-linux-Ubuntu-22.04-aarch64/38-maven.sh
Executable file
7
coin/provisioning/qtci-linux-Ubuntu-22.04-aarch64/38-maven.sh
Executable file
@@ -0,0 +1,7 @@
|
||||
#!/usr/bin/env bash
|
||||
#Copyright (C) 2025 The Qt Company Ltd
|
||||
#SPDX-License-Identifier: LicenseRef-Qt-Commercial OR LGPL-3.0-only OR GPL-2.0-only OR GPL-3.0-only
|
||||
|
||||
set -ex
|
||||
|
||||
source "${BASH_SOURCE%/*}/../common/unix/install-maven.sh"
|
||||
7
coin/provisioning/qtci-linux-Ubuntu-22.04-x86_64/38-maven.sh
Executable file
7
coin/provisioning/qtci-linux-Ubuntu-22.04-x86_64/38-maven.sh
Executable file
@@ -0,0 +1,7 @@
|
||||
#!/usr/bin/env bash
|
||||
#Copyright (C) 2025 The Qt Company Ltd
|
||||
#SPDX-License-Identifier: LicenseRef-Qt-Commercial OR LGPL-3.0-only OR GPL-2.0-only OR GPL-3.0-only
|
||||
|
||||
set -ex
|
||||
|
||||
source "${BASH_SOURCE%/*}/../common/unix/install-maven.sh"
|
||||
7
coin/provisioning/qtci-linux-Ubuntu-24.04-aarch64/38-maven.sh
Executable file
7
coin/provisioning/qtci-linux-Ubuntu-24.04-aarch64/38-maven.sh
Executable file
@@ -0,0 +1,7 @@
|
||||
#!/usr/bin/env bash
|
||||
#Copyright (C) 2025 The Qt Company Ltd
|
||||
#SPDX-License-Identifier: LicenseRef-Qt-Commercial OR LGPL-3.0-only OR GPL-2.0-only OR GPL-3.0-only
|
||||
|
||||
set -ex
|
||||
|
||||
source "${BASH_SOURCE%/*}/../common/unix/install-maven.sh"
|
||||
7
coin/provisioning/qtci-linux-Ubuntu-24.04-x86_64/38-maven.sh
Executable file
7
coin/provisioning/qtci-linux-Ubuntu-24.04-x86_64/38-maven.sh
Executable file
@@ -0,0 +1,7 @@
|
||||
#!/usr/bin/env bash
|
||||
#Copyright (C) 2025 The Qt Company Ltd
|
||||
#SPDX-License-Identifier: LicenseRef-Qt-Commercial OR LGPL-3.0-only OR GPL-2.0-only OR GPL-3.0-only
|
||||
|
||||
set -ex
|
||||
|
||||
source "${BASH_SOURCE%/*}/../common/unix/install-maven.sh"
|
||||
7
coin/provisioning/qtci-linux-openSUSE-15.6-x86_64/38-maven.sh
Executable file
7
coin/provisioning/qtci-linux-openSUSE-15.6-x86_64/38-maven.sh
Executable file
@@ -0,0 +1,7 @@
|
||||
#!/usr/bin/env bash
|
||||
#Copyright (C) 2025 The Qt Company Ltd
|
||||
#SPDX-License-Identifier: LicenseRef-Qt-Commercial OR LGPL-3.0-only OR GPL-2.0-only OR GPL-3.0-only
|
||||
|
||||
set -ex
|
||||
|
||||
source "${BASH_SOURCE%/*}/../common/unix/install-maven.sh"
|
||||
7
coin/provisioning/qtci-macos-13-arm/38-maven.sh
Executable file
7
coin/provisioning/qtci-macos-13-arm/38-maven.sh
Executable file
@@ -0,0 +1,7 @@
|
||||
#!/usr/bin/env bash
|
||||
#Copyright (C) 2025 The Qt Company Ltd
|
||||
#SPDX-License-Identifier: LicenseRef-Qt-Commercial OR LGPL-3.0-only OR GPL-2.0-only OR GPL-3.0-only
|
||||
|
||||
set -ex
|
||||
|
||||
source "${BASH_SOURCE%/*}/../common/unix/install-maven.sh"
|
||||
7
coin/provisioning/qtci-macos-14-arm/38-maven.sh
Executable file
7
coin/provisioning/qtci-macos-14-arm/38-maven.sh
Executable file
@@ -0,0 +1,7 @@
|
||||
#!/usr/bin/env bash
|
||||
#Copyright (C) 2025 The Qt Company Ltd
|
||||
#SPDX-License-Identifier: LicenseRef-Qt-Commercial OR LGPL-3.0-only OR GPL-2.0-only OR GPL-3.0-only
|
||||
|
||||
set -ex
|
||||
|
||||
source "${BASH_SOURCE%/*}/../common/unix/install-maven.sh"
|
||||
7
coin/provisioning/qtci-macos-14-x86_64/38-maven.sh
Executable file
7
coin/provisioning/qtci-macos-14-x86_64/38-maven.sh
Executable file
@@ -0,0 +1,7 @@
|
||||
#!/usr/bin/env bash
|
||||
#Copyright (C) 2025 The Qt Company Ltd
|
||||
#SPDX-License-Identifier: LicenseRef-Qt-Commercial OR LGPL-3.0-only OR GPL-2.0-only OR GPL-3.0-only
|
||||
|
||||
set -ex
|
||||
|
||||
source "${BASH_SOURCE%/*}/../common/unix/install-maven.sh"
|
||||
7
coin/provisioning/qtci-macos-15-arm/38-maven.sh
Executable file
7
coin/provisioning/qtci-macos-15-arm/38-maven.sh
Executable file
@@ -0,0 +1,7 @@
|
||||
#!/usr/bin/env bash
|
||||
#Copyright (C) 2025 The Qt Company Ltd
|
||||
#SPDX-License-Identifier: LicenseRef-Qt-Commercial OR LGPL-3.0-only OR GPL-2.0-only OR GPL-3.0-only
|
||||
|
||||
set -ex
|
||||
|
||||
source "${BASH_SOURCE%/*}/../common/unix/install-maven.sh"
|
||||
7
coin/provisioning/qtci-macos-15-x86_64/38-maven.sh
Executable file
7
coin/provisioning/qtci-macos-15-x86_64/38-maven.sh
Executable file
@@ -0,0 +1,7 @@
|
||||
#!/usr/bin/env bash
|
||||
#Copyright (C) 2025 The Qt Company Ltd
|
||||
#SPDX-License-Identifier: LicenseRef-Qt-Commercial OR LGPL-3.0-only OR GPL-2.0-only OR GPL-3.0-only
|
||||
|
||||
set -ex
|
||||
|
||||
source "${BASH_SOURCE%/*}/../common/unix/install-maven.sh"
|
||||
7
coin/provisioning/qtci-macos-26-arm/38-maven.sh
Executable file
7
coin/provisioning/qtci-macos-26-arm/38-maven.sh
Executable file
@@ -0,0 +1,7 @@
|
||||
#!/usr/bin/env bash
|
||||
#Copyright (C) 2025 The Qt Company Ltd
|
||||
#SPDX-License-Identifier: LicenseRef-Qt-Commercial OR LGPL-3.0-only OR GPL-2.0-only OR GPL-3.0-only
|
||||
|
||||
set -ex
|
||||
|
||||
source "${BASH_SOURCE%/*}/../common/unix/install-maven.sh"
|
||||
Reference in New Issue
Block a user