#BuildTools stuck in downloading git portable for windows
1 messages · Page 1 of 1 (latest)
For keep the "thread"
by the moment a "hotfix" its create the directory and download the file
He created the folder but didn't seem to download the exe file
https://github.com/git-for-windows/git/releases/download/v2.45.2.windows.1/PortableGit-2.45.2-64-bit.7z.exe
and where you have the buildtools exe/jar create a directory named PortableGit-2.45.2-64-bit and put the content of the 7z.exe
in teory the folder structure is
PortableGit-2.45.2-64-bit -> PortableGit -> many files
i dwonload this but BuildTools cant download
yeah this is just for make BuildTools not try download the gitportable again
why the directory tells 2.30.0?
the last BuildTools try to use 2.45.2
and your first image tells the same
2.30 is BuildTools make dir
dont have exe
2.45 is i download on GitHub
File is Null
that not make sense.. the directory is based in the URL then its impossible try to make that.
remove the directory and run again to check if is created again
Wild guess ... you are from China?
Is there maybe a problem with actually reaching the download location through your network?
the strange is the download url working
Is it tho?
I see a folder, but no content
I downloaded the BuildTools.jar in 1.19.2 and I can download the server core directly by using the command java (Linux) or double-clicking to open it (windows) Why is it a GUI now?
yes in null
i mean if you go to jenkins the download are two the exe or jar
https://hub.spigotmc.org/jenkins/job/BuildTools/
the JAR for the old way, the exe for the GUI the two are the same internally
Lets try it step by step
down this?
The main thing is that I've been looking for a long time, and I haven't found the jar file that used to download the core directly, but I still have that file on the server, but that's 1.19.2, and my friend wants to play 1.20.4
-
Download the build tools JAR:
https://hub.spigotmc.org/jenkins/job/BuildTools/lastSuccessfulBuild/artifact/target/BuildTools.jar -
Run the JAR file with command line:
java -jar BuildTools.jar --rev 1.20.4 -
Wait for build / download
-
Show us the logs
The one I downloaded is the GUI with the GUI that runs the jar and the GUI that comes out
ok i try it
1 step
Delete the old BuildTools.jar, BuildTools (1).jar and BuildTools (2).jar
And rename BuildTools (3).jar to BuildTools.jar
Less confusion
2 step
Ok that works too
Looks like it's still going to get stuck
Is it failing on that download?
not git directory created?
It's not that the download failed Yes, it's that there was no download
Okay, now place it into the Build folder
i can
I've actually tried the method you're talking about
What was the result?
Remove the (1)
Dont place it there
Where is your BuildTools.jar?
Try placing it on the same layer
okay i konw
(I don't actually know where exactly it is looking for it)
there?
just for curious can you try this?
i just add a few debugs to check where is really stuck...
what can i do
How is that BuildTools.jar out of date lol
run in terminal that (consider rename the git directory for try download again)
open jar in intellij idea?
just in terminal like
java -jar BuildTools.jar --rev server-version
run this?
yeah
where server-version is the version you wanna use 1.21 or etc
Wrong hash lel
This is the result of the build tool I downloaded on the official website and waited for half an hour
Maybe longer, please wait for me to run the jar you sent me
At this point its probably easier just to install Git lol
yeah but its strange that happen.. i update the git used in buildtools time ago and not has any of this issues
runing
Do I need to move that exe file to this directory?
Okay, one sec
I have installed this app
well the console of @rustic basin just show its not finally downloading
Install that, which installs Git permanentely instead of coming as portable version
I tried installing
run is install step?
Just hit next on all steps
e maybe i have git
Perfect
Now run BuildTools.jar again
java -jar BuildTools.jar --rev 1.20.4
Should detect you have Git installed now
I've always had git
Then it's not in your path variables
nope the detection is based if BuildTools can run directly the sh
Ah ... well
Okay try this:
Launch Git Bash instead
And navigate to your folder with BuildTools.jar through that
And then type
java -jar BuildTools.jar --rev 1.20.4
This should run it directly through the Git Bash
And (hopefully) run the BuildTools without needing to download PortableGit
e i cant cd dir
get it
I won't use Windows' instructions sorry
Yepp, now its actually starting the git cloning
Normally, how long does it take
Hmmm, usually 5-10 mins
On the first time
Next runs are quicker, because it already downloaded most files and will only download / update differences
Because the BuildTools programm only checks if you can run Git directly from it's current environment.
As @cunning sand already said earlier, BuildTools does not know about your Git installation, neither the CLI version nor the GUI version - only if you run through Git Bash (which has Git included in it's environment) it sees that it can run it.
done?
It failed on Maven download
Check if you can reach the Download locations it is trying to download from or if they are restricted to you
no
:/
Hmm
if you use the url in the logs for maven (the zip) download?
maybe its a proxy thing or something
My first guess too
the strange is the git
but that was a old version because the logs says 2.30 and not 2.45
what can i do
run your jar?
https://dlcdn.apache.org/maven/maven-3/3.9.6/binaries/apache-maven-3.9.6-bin.zip
this in browser works?
well for maven its a little more easy...
you can manually install and put the directory in the ENV VAR M2_HOME
where is ENV VAR M2_HOME
and if can.. try this JAR (terminal) for check if can throw more logs
but maybe the VPN is making the JAR not works correctly
that depends if with not VPN still workings the URL in browser can test the JAR/GUI
It's late for me ,I want to take a shower and sleep,I got it from 8 o'clock to 11 o'clock,Didn't succeed in building the server hahaha
Can we continue tomorrow

Will this chat disappear after I log out of the program?
I used discord for the first time to chat
okay have good day bye bye~ :)
Hi, you still with VPN not?
if remember the last issue was maven not being detected
oh...
I forgot to add maven
but now are not stuck in downloading maven or any...
yes with me download mave
need a?
who
how is going the console?
in teory building the jar not?
with me applay Path
can you show?
but in this point not going to throw any related to downloads
I've configured maven, what I have to do now is restart the jar
It's normal now, right?
done?
nope fails to maven.. you need install maven first
I installed Maven and you can see that the command I typed prompted the version of Maven
I tried to run the GUI in the virtual machine but I still get the same problem, the virtual machine does not have Git, there is no maven, it is a new system
The problem is, BuildTools need to detect Git AND Maven, which there is two options for:
- It downloads it by itself, Git as Portable version and Maven as direct download .zip
- It detects them in its environment when run (this is why Git works, when run through Git Bash)
Both of your download problems (Git Portable and Maven) are most likely the result of your VPN, since you are in China - and I know, you wouldn't even be able to connect to international internet without a VPN, so you don't have another option.
Since you "fixed" at least the Git issue by running directly through Git Bash, you just need to "fix" the Maven download now.
I don't see it working through the BuildTools.jar itself, as it keeps failing on that, so you have two options here again:
- Download the Maven .zip directly from where it wants to download it from and put it exactly where it would expect it do be, possible already unpacked (@cunning sand might know better how and where it expects it?)
- Include Maven in your Git Bash environment, which means you have to set the PATH variables inside Git Bash correctly
After this, run the version of BuildTools.jar that @cunning sand gave you and show us the result.
I personally always ran the CLI version instead of GUI version btw, but it should be the same results for both, as long as you do all steps before exactly the same.
@rustic basin and running the JAR i last provide in virtual machine change any?
I'm running the jar downloaded from the official website
server version is Ubuntu Server 24.04
And then I just tried on the server with the command that chat gpt provided to me and it seems to finish building?
I'm trying to configure the maven environment inside git bash
My git bash seems to have a maven environment
What command?
Looks buils the jar.
But that is the virtual machine or what?
I kmow that its just you mention a VM in the past
Not the virtual machine I mentioned earlier
You run that in WSL or where?
You can think of it as, I'm deploying a development environment in my Windows, and then I'm developing an MC plugin, and then I don't have a MC server, so I can't connect to RCON, so I want to deploy a Minecraft server in my windos to test the RCON connection, and the screenshot I'm showing you is how to describe it, it's like a live server, and my computer is a test server, and then I test it and then deploy it to a live server
what is WSL
nono no
is Linux server not is WSL
I don't know how to describe it to you, but if you look at the screenshots, you can see that the first screenshots that I gave you were running in VMware, and now the screenshots are running on a different computer, which is a server
@cunning sand
Ohhh okay but now you have the jar generated by buildtools not?
After building it yourself, you can also just copy it around your own servers yourself.
The problem is, that we can't build it and send it to you due to license / copyright reasons.
That's also why there is no direct download for a server jar anywhere.