MovingBlocks / Terasology

Terasology - open source voxel world
http://terasology.org
Apache License 2.0
3.69k stars 1.34k forks source link

RepositoryNotFoundException #5269

Open zhaohailongzhl opened 3 months ago

zhaohailongzhl commented 3 months ago

E:\workspace\terasology1\Terasology>groovyw module init iota org.codehaus.groovy.control.MultipleCompilationErrorsException: startup failed: E:\workspace\terasology1\Terasology\config\groovy\common.groovy: 12: unable to resolve class org.eclipse.jgit.errors.RepositoryNotFoundException @ line 12, column 1. import org.eclipse.jgit.errors.RepositoryNotFoundException ^

1 error

How can I solve this problem?

BenjaminAmos commented 3 months ago

I do not believe I have seen this particular error before. Have you made sure that you are using Java 17?

It could be that the dependency failed to download. Can you access https://ajoberstar.github.io/bintray-backup/org/ajoberstar/grgit/1.9.3/grgit-1.9.3.pom successfully?

zhaohailongzhl commented 3 months ago

I do not believe I have seen this particular error before. Have you made sure that you are using Java 17?

It could be that the dependency failed to download. Can you access https://ajoberstar.github.io/bintray-backup/org/ajoberstar/grgit/1.9.3/grgit-1.9.3.pom successfully?

my java version

C:\Users\ZHL>java --version
java 17.0.10 2024-01-16 LTS
Java(TM) SE Runtime Environment (build 17.0.10+11-LTS-240)
Java HotSpot(TM) 64-Bit Server VM (build 17.0.10+11-LTS-240, mixed mode, sharing)

and I can access the website you said and download it , I also tried java11, but it didn't work

soloturn commented 3 months ago

you did something like:

git clone --filter=blob:none git@github.com:MovingBlocks/Terasology.git 
cd terasology
git checkout develop
groovyw module init iota

is it? or you were using master branch?

zhaohailongzhl commented 3 months ago

I clone the develop branch directly. It's default, isn't it? I use develop branch

zhaohailongzhl commented 3 months ago

Can I manually init or clone these modules such as https://github.com/Terasology/CoreWorlds

BenjaminAmos commented 3 months ago

That should be possible What groovyw does internally is clone each module internally.

For each module you can do git clone https://github.com/Terasology/<Module> modules/<Module>.

The list of iota modules can be found at https://github.com/Terasology/Index/blob/master/distros/iota/gradle.properties, which would be:

zhaohailongzhl commented 3 months ago

I manually clone these modules but can't build them because they don't have the build.gradle.kts file. How do I fix this?

BenjaminAmos commented 3 months ago

You can try copying the file templates/build.gradle into each cloned module directory. Almost all the modules should use the same build.gradle file, as they are typically not allowed to use their own custom one.