Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Building from source failed #44

Open
TheDimensionofEternity opened this issue Jan 7, 2024 · 2 comments
Open

Building from source failed #44

TheDimensionofEternity opened this issue Jan 7, 2024 · 2 comments
Labels
bug Something isn't working

Comments

@TheDimensionofEternity
Copy link

What happened?

I followed the steps provided to build from sources on both windows and linux (WSL) but was unable to build the project. I have attached the output from the terminal.
I've gone to https://ladysnake.jfrog.io/artifactory/mods/io/github/ladysnake/satin/1.9.0/satin-1.9.0.pom and it redirects me to the landing page for jfrog, mentioning how their free subscription has been deactivated.
For now I'll download the already built project, but I figured it might be helpful to report this issue.

Version

4.3

Minecraft Version

1.19.2

Fabric API Version

none

Installation Source

Other

Logs

user@ubuntu-wsl:~/sync-fabric$ ./gradlew build

> Configure project :
Fabric Loom: 0.12.56
[Fatal Error] smart-recipes-0.2.1+1.19.pom:2:10: Already seen doctype.
[Fatal Error] crowdin-translate-1.4+1.19-pre2.pom:2:10: Already seen doctype.
[Fatal Error] cloth-config-fabric-8.0.75.pom:2:10: Already seen doctype.
[Fatal Error] satin-1.9.0.pom:2:10: Already seen doctype.

FAILURE: Build failed with an exception.

* What went wrong:
A problem occurred configuring root project 'sync-fabric'.
> Could not resolve all dependencies for configuration ':modImplementation'.
   > Could not resolve io.github.ladysnake:satin:1.9.0.
     Required by:
         project :
      > Could not resolve io.github.ladysnake:satin:1.9.0.
         > Could not parse POM https://ladysnake.jfrog.io/artifactory/mods/io/github/ladysnake/satin/1.9.0/satin-1.9.0.pom
            > Already seen doctype.

* Try:
> Run with --stacktrace option to get the stack trace.
> Run with --info or --debug option to get more log output.
> Run with --scan to get full insights.

* Get more help at https://help.gradle.org

BUILD FAILED in 3s

Other Mods

No response

Additional Information

No response

@TheDimensionofEternity TheDimensionofEternity added the bug Something isn't working label Jan 7, 2024
@TheDimensionofEternity
Copy link
Author

TheDimensionofEternity commented Jan 7, 2024

(I have continued working on this because IDK)
I've modified the gradle.build file according to LadySnake/Satin but run into a new issue with com.github.DaFuqs:AdditionalEntityAttributes:95f13798d1

user@ubuntu-wsl:~/sync-fabric$ ./gradlew build --refresh-dependencies

> Configure project :
Fabric Loom: 0.12.56
Refresh dependencies is in use, loom will be significantly slower.

FAILURE: Build failed with an exception.

* What went wrong:
A problem occurred configuring root project 'sync-fabric'.
> Could not resolve all dependencies for configuration ':modCompileOnly'.
   > Could not find com.github.DaFuqs:AdditionalEntityAttributes:95f13798d1.
     Searched in the following locations:
       - file:/home/user/sync-fabric/.gradle/loom-cache/remapped_mods/com/github/DaFuqs/AdditionalEntityAttributes/95f13798d1/AdditionalEntityAttributes-95f13798d1.pom
       - https://maven.fabricmc.net/com/github/DaFuqs/AdditionalEntityAttributes/95f13798d1/AdditionalEntityAttributes-95f13798d1.pom
       - https://libraries.minecraft.net/com/github/DaFuqs/AdditionalEntityAttributes/95f13798d1/AdditionalEntityAttributes-95f13798d1.pom
       - https://libraries.minecraft.net/com/github/DaFuqs/AdditionalEntityAttributes/95f13798d1/AdditionalEntityAttributes-95f13798d1.jar
       - https://repo.maven.apache.org/maven2/com/github/DaFuqs/AdditionalEntityAttributes/95f13798d1/AdditionalEntityAttributes-95f13798d1.pom
       - file:/home/user/.gradle/caches/fabric-loom/95f13798d1/AdditionalEntityAttributes.jar
       - file:/home/user/sync-fabric/.gradle/loom-cache/95f13798d1/AdditionalEntityAttributes.jar
       - https://maven.terraformersmc.com/com/github/DaFuqs/AdditionalEntityAttributes/95f13798d1/AdditionalEntityAttributes-95f13798d1.pom
       - https://oss.sonatype.org/content/repositories/snapshots/com/github/DaFuqs/AdditionalEntityAttributes/95f13798d1/AdditionalEntityAttributes-95f13798d1.pom
       - https://minecraft.guntram.de/maven/com/github/DaFuqs/AdditionalEntityAttributes/95f13798d1/AdditionalEntityAttributes-95f13798d1.pom
       - https://jitpack.io/com/github/DaFuqs/AdditionalEntityAttributes/95f13798d1/AdditionalEntityAttributes-95f13798d1.pom
     Required by:
         project : > com.github.apace100:apoli:2.5.0

* Try:
> Run with --stacktrace option to get the stack trace.
> Run with --info or --debug option to get more log output.
> Run with --scan to get full insights.

* Get more help at https://help.gradle.org

BUILD FAILED in 1m 6s

@Kir-Antipov
Copy link
Owner

So, this dependency hell has finally crumbled, huh?

You can remove dependencies on satin-api and haema by reverting 0c55e88 and 59209f3, respectively. This is what I plan to do anyways, because though these changes were intended to improve the state of things, they ended up exacerbating the situation in the long run.

As for com.github.DaFuqs:AdditionalEntityAttributes, required by apoli, which is subsequently required by origins (nobody writes self-sufficient mods nowadays), the aforementioned commit at DaFuqs/AdditionalEntityAttributes@95f1379 still exists. However, JitPack returns a 404 on it for some reason. I think that it might be because of some sort of expiry mechanism on their end.

Thus, if you want to build the mod from sources while maintaining compatibility with Origins, I believe the only solution at the moment is to build AdditionalEntityAttributes and add the resulting artifacts to a local maven repository ¯\(ツ)

Otherwise, just nuke origins and other bloatware and you should be fine.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants