This is an automated email from the ASF dual-hosted git repository.

gaurava pushed a commit to branch trunk
in repository https://gitbox.apache.org/repos/asf/hadoop.git


The following commit(s) were added to refs/heads/trunk by this push:
     new 3e54ecc0730 HADOOP-19537. Document skip.platformToolsetDetection 
option in BUILDING.txt (#7600)
3e54ecc0730 is described below

commit 3e54ecc0730c9d47ff725618eab5aac35f01906f
Author: Istvan Toth <st...@apache.org>
AuthorDate: Fri Apr 11 11:31:53 2025 +0200

    HADOOP-19537. Document skip.platformToolsetDetection option in BUILDING.txt 
(#7600)
---
 BUILDING.txt | 7 ++++---
 1 file changed, 4 insertions(+), 3 deletions(-)

diff --git a/BUILDING.txt b/BUILDING.txt
index 0376b8a76c3..b7b6197abd7 100644
--- a/BUILDING.txt
+++ b/BUILDING.txt
@@ -635,11 +635,12 @@ hadoop-dist/target upon successful build. Run these 
commands from an
 "x64 Native Tools Command Prompt for VS 2019" which can be found under "Visual 
Studio 2019" in the
 Windows start menu. If you're using the Docker image from 
Dockerfile_windows_10, you'll be
 logged into "x64 Native Tools Command Prompt for VS 2019" automatically when 
you start the
-container.
+container. The Docker image does not have a full VS install, so you need to 
add the
+-Dskip.platformToolsetDetection option (already included below in the 
examples).
 
 > set classpath=
 > set PROTOBUF_HOME=C:\vcpkg\installed\x64-windows
-> mvn clean package -Dhttps.protocols=TLSv1.2 -DskipTests -DskipDocs 
-Pnative-win,dist^
+> mvn clean package -Dhttps.protocols=TLSv1.2 -DskipTests -DskipDocs 
-Pnative-win,dist -Dskip.platformToolsetDetection^
     -Drequire.openssl -Drequire.test.libhadoop -Pyarn-ui 
-Dshell-executable=C:\Git\bin\bash.exe^
     -Dtar -Dopenssl.prefix=C:\vcpkg\installed\x64-windows^
     -Dcmake.prefix.path=C:\vcpkg\installed\x64-windows^
@@ -651,7 +652,7 @@ Assuming that we're still running in the Docker container 
hadoop-windows-10-buil
 following command to create the Apache Hadoop release tarball -
 
 > set IS_WINDOWS=1
-> set MVN_ARGS="-Dshell-executable=C:\Git\bin\bash.exe 
-Dhttps.protocols=TLSv1.2 -Pnative-win -Drequire.openssl 
-Dopenssl.prefix=C:\vcpkg\installed\x64-windows 
-Dcmake.prefix.path=C:\vcpkg\installed\x64-windows 
-Dwindows.cmake.toolchain.file=C:\vcpkg\scripts\buildsystems\vcpkg.cmake 
-Dwindows.cmake.build.type=RelWithDebInfo -Dwindows.build.hdfspp.dll=off 
-Duse.platformToolsetVersion=v142 -Dwindows.no.sasl=on -DskipTests -DskipDocs 
-Drequire.test.libhadoop"
+> set MVN_ARGS="-Dshell-executable=C:\Git\bin\bash.exe 
-Dhttps.protocols=TLSv1.2 -Pnative-win -Dskip.platformToolsetDetection 
-Drequire.openssl -Dopenssl.prefix=C:\vcpkg\installed\x64-windows 
-Dcmake.prefix.path=C:\vcpkg\installed\x64-windows 
-Dwindows.cmake.toolchain.file=C:\vcpkg\scripts\buildsystems\vcpkg.cmake 
-Dwindows.cmake.build.type=RelWithDebInfo -Dwindows.build.hdfspp.dll=off 
-Duse.platformToolsetVersion=v142 -Dwindows.no.sasl=on -DskipTests -DskipDocs 
-Drequire.test.libhadoop"
 > C:\Git\bin\bash.exe C:\hadoop\dev-support\bin\create-release 
 > --mvnargs=%MVN_ARGS%
 
 Note:


---------------------------------------------------------------------
To unsubscribe, e-mail: common-commits-unsubscr...@hadoop.apache.org
For additional commands, e-mail: common-commits-h...@hadoop.apache.org

Reply via email to