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

Could not build mod #34

Closed
MaxMatti opened this issue Jan 28, 2021 · 4 comments
Closed

Could not build mod #34

MaxMatti opened this issue Jan 28, 2021 · 4 comments
Labels
question Further information is requested

Comments

@MaxMatti
Copy link

MaxMatti commented Jan 28, 2021

I cloned the repo, ran git submodule init (didn't do anything) and then ./gradlew assemble to build the mod. However I just got a bunch of stacktraces and warnings about missing dependencies. The mod was not built. How do I correctly build the mod?

The relevant part of the output seems to be this:

Click to open output
* What went wrong:
Could not resolve all files for configuration ':compileClasspath'.
> Could not find vazkii.patchouli:Patchouli:1.16.2-47_mapped_snapshot_20201028-1.16.3.
  Searched in the following locations:
    - https://repo.maven.apache.org/maven2/vazkii/patchouli/Patchouli/1.16.2-47_mapped_snapshot_20201028-1.16.3/Patchouli-1.16.2-47_mapped_snapshot_20201028-1.16.3.pom
    - https://repo.maven.apache.org/maven2/vazkii/patchouli/Patchouli/1.16.2-47_mapped_snapshot_20201028-1.16.3/Patchouli-1.16.2-47_mapped_snapshot_20201028-1.16.3-api.jar
    - file:/mnt/ssd/Syncthing/Projekte/Downloads/ElementalCraft/libs/Patchouli-1.16.2-47_mapped_snapshot_20201028-1.16.3-api.jar
    - file:/mnt/ssd/Syncthing/Projekte/Downloads/ElementalCraft/libs/Patchouli-api.jar
    - file:/mnt/ssd/Syncthing/Projekte/Downloads/DPAnvil/build/libs/Patchouli-1.16.2-47_mapped_snapshot_20201028-1.16.3-api.jar
    - file:/mnt/ssd/Syncthing/Projekte/Downloads/DPAnvil/build/libs/Patchouli-api.jar
    - https://maven.theillusivec4.top/vazkii/patchouli/Patchouli/1.16.2-47_mapped_snapshot_20201028-1.16.3/Patchouli-1.16.2-47_mapped_snapshot_20201028-1.16.3.pom
    - https://maven.theillusivec4.top/vazkii/patchouli/Patchouli/1.16.2-47_mapped_snapshot_20201028-1.16.3/Patchouli-1.16.2-47_mapped_snapshot_20201028-1.16.3-api.jar
    - https://dvs1.progwml6.com/files/maven/vazkii/patchouli/Patchouli/1.16.2-47_mapped_snapshot_20201028-1.16.3/Patchouli-1.16.2-47_mapped_snapshot_20201028-1.16.3.pom
    - https://dvs1.progwml6.com/files/maven/vazkii/patchouli/Patchouli/1.16.2-47_mapped_snapshot_20201028-1.16.3/Patchouli-1.16.2-47_mapped_snapshot_20201028-1.16.3-api.jar
    - https://modmaven.dev/vazkii/patchouli/Patchouli/1.16.2-47_mapped_snapshot_20201028-1.16.3/Patchouli-1.16.2-47_mapped_snapshot_20201028-1.16.3.pom
    - https://modmaven.dev/vazkii/patchouli/Patchouli/1.16.2-47_mapped_snapshot_20201028-1.16.3/Patchouli-1.16.2-47_mapped_snapshot_20201028-1.16.3-api.jar
    - https://maven.blamejared.com/vazkii/patchouli/Patchouli/1.16.2-47_mapped_snapshot_20201028-1.16.3/Patchouli-1.16.2-47_mapped_snapshot_20201028-1.16.3.pom
    - https://maven.blamejared.com/vazkii/patchouli/Patchouli/1.16.2-47_mapped_snapshot_20201028-1.16.3/Patchouli-1.16.2-47_mapped_snapshot_20201028-1.16.3-api.jar
    - https://files.minecraftforge.net/maven/vazkii/patchouli/Patchouli/1.16.2-47_mapped_snapshot_20201028-1.16.3/Patchouli-1.16.2-47_mapped_snapshot_20201028-1.16.3.pom
    - https://files.minecraftforge.net/maven/vazkii/patchouli/Patchouli/1.16.2-47_mapped_snapshot_20201028-1.16.3/Patchouli-1.16.2-47_mapped_snapshot_20201028-1.16.3-api.jar
    - file:/home/max/.gradle/caches/forge_gradle/bundeled_repo/vazkii/patchouli/Patchouli/1.16.2-47_mapped_snapshot_20201028-1.16.3/Patchouli-1.16.2-47_mapped_snapshot_20201028-1.16.3.pom
    - file:/home/max/.gradle/caches/forge_gradle/bundeled_repo/vazkii/patchouli/Patchouli/1.16.2-47_mapped_snapshot_20201028-1.16.3/Patchouli-1.16.2-47_mapped_snapshot_20201028-1.16.3-api.jar
    - https://libraries.minecraft.net/vazkii/patchouli/Patchouli/1.16.2-47_mapped_snapshot_20201028-1.16.3/Patchouli-1.16.2-47_mapped_snapshot_20201028-1.16.3-api.jar
  Required by:
      project :
> Could not find sirttas.dpanvil:dpanvil:1.16.3-1.0.7_mapped_snapshot_20201028-1.16.3.
  Searched in the following locations:
    - https://repo.maven.apache.org/maven2/sirttas/dpanvil/dpanvil/1.16.3-1.0.7_mapped_snapshot_20201028-1.16.3/dpanvil-1.16.3-1.0.7_mapped_snapshot_20201028-1.16.3.pom
    - https://repo.maven.apache.org/maven2/sirttas/dpanvil/dpanvil/1.16.3-1.0.7_mapped_snapshot_20201028-1.16.3/dpanvil-1.16.3-1.0.7_mapped_snapshot_20201028-1.16.3-api.jar
    - file:/mnt/ssd/Syncthing/Projekte/Downloads/ElementalCraft/libs/dpanvil-1.16.3-1.0.7_mapped_snapshot_20201028-1.16.3-api.jar
    - file:/mnt/ssd/Syncthing/Projekte/Downloads/ElementalCraft/libs/dpanvil-api.jar
    - file:/mnt/ssd/Syncthing/Projekte/Downloads/DPAnvil/build/libs/dpanvil-1.16.3-1.0.7_mapped_snapshot_20201028-1.16.3-api.jar
    - file:/mnt/ssd/Syncthing/Projekte/Downloads/DPAnvil/build/libs/dpanvil-api.jar
    - https://maven.theillusivec4.top/sirttas/dpanvil/dpanvil/1.16.3-1.0.7_mapped_snapshot_20201028-1.16.3/dpanvil-1.16.3-1.0.7_mapped_snapshot_20201028-1.16.3.pom
    - https://maven.theillusivec4.top/sirttas/dpanvil/dpanvil/1.16.3-1.0.7_mapped_snapshot_20201028-1.16.3/dpanvil-1.16.3-1.0.7_mapped_snapshot_20201028-1.16.3-api.jar
    - https://dvs1.progwml6.com/files/maven/sirttas/dpanvil/dpanvil/1.16.3-1.0.7_mapped_snapshot_20201028-1.16.3/dpanvil-1.16.3-1.0.7_mapped_snapshot_20201028-1.16.3.pom
    - https://dvs1.progwml6.com/files/maven/sirttas/dpanvil/dpanvil/1.16.3-1.0.7_mapped_snapshot_20201028-1.16.3/dpanvil-1.16.3-1.0.7_mapped_snapshot_20201028-1.16.3-api.jar
    - https://modmaven.dev/sirttas/dpanvil/dpanvil/1.16.3-1.0.7_mapped_snapshot_20201028-1.16.3/dpanvil-1.16.3-1.0.7_mapped_snapshot_20201028-1.16.3.pom
    - https://modmaven.dev/sirttas/dpanvil/dpanvil/1.16.3-1.0.7_mapped_snapshot_20201028-1.16.3/dpanvil-1.16.3-1.0.7_mapped_snapshot_20201028-1.16.3-api.jar
    - https://maven.blamejared.com/sirttas/dpanvil/dpanvil/1.16.3-1.0.7_mapped_snapshot_20201028-1.16.3/dpanvil-1.16.3-1.0.7_mapped_snapshot_20201028-1.16.3.pom
    - https://maven.blamejared.com/sirttas/dpanvil/dpanvil/1.16.3-1.0.7_mapped_snapshot_20201028-1.16.3/dpanvil-1.16.3-1.0.7_mapped_snapshot_20201028-1.16.3-api.jar
    - https://files.minecraftforge.net/maven/sirttas/dpanvil/dpanvil/1.16.3-1.0.7_mapped_snapshot_20201028-1.16.3/dpanvil-1.16.3-1.0.7_mapped_snapshot_20201028-1.16.3.pom
    - https://files.minecraftforge.net/maven/sirttas/dpanvil/dpanvil/1.16.3-1.0.7_mapped_snapshot_20201028-1.16.3/dpanvil-1.16.3-1.0.7_mapped_snapshot_20201028-1.16.3-api.jar
    - file:/home/max/.gradle/caches/forge_gradle/bundeled_repo/sirttas/dpanvil/dpanvil/1.16.3-1.0.7_mapped_snapshot_20201028-1.16.3/dpanvil-1.16.3-1.0.7_mapped_snapshot_20201028-1.16.3.pom
    - file:/home/max/.gradle/caches/forge_gradle/bundeled_repo/sirttas/dpanvil/dpanvil/1.16.3-1.0.7_mapped_snapshot_20201028-1.16.3/dpanvil-1.16.3-1.0.7_mapped_snapshot_20201028-1.16.3-api.jar
    - https://libraries.minecraft.net/sirttas/dpanvil/dpanvil/1.16.3-1.0.7_mapped_snapshot_20201028-1.16.3/dpanvil-1.16.3-1.0.7_mapped_snapshot_20201028-1.16.3-api.jar
  Required by:
      project :
> Could not find mezz.jei:jei-1.16.3:7.6.0.49_mapped_snapshot_20201028-1.16.3.
  Searched in the following locations:
    - https://repo.maven.apache.org/maven2/mezz/jei/jei-1.16.3/7.6.0.49_mapped_snapshot_20201028-1.16.3/jei-1.16.3-7.6.0.49_mapped_snapshot_20201028-1.16.3.pom
    - https://repo.maven.apache.org/maven2/mezz/jei/jei-1.16.3/7.6.0.49_mapped_snapshot_20201028-1.16.3/jei-1.16.3-7.6.0.49_mapped_snapshot_20201028-1.16.3.jar
    - file:/mnt/ssd/Syncthing/Projekte/Downloads/ElementalCraft/libs/jei-1.16.3-7.6.0.49_mapped_snapshot_20201028-1.16.3.jar
    - file:/mnt/ssd/Syncthing/Projekte/Downloads/ElementalCraft/libs/jei-1.16.3.jar
    - file:/mnt/ssd/Syncthing/Projekte/Downloads/DPAnvil/build/libs/jei-1.16.3-7.6.0.49_mapped_snapshot_20201028-1.16.3.jar
    - file:/mnt/ssd/Syncthing/Projekte/Downloads/DPAnvil/build/libs/jei-1.16.3.jar
    - https://maven.theillusivec4.top/mezz/jei/jei-1.16.3/7.6.0.49_mapped_snapshot_20201028-1.16.3/jei-1.16.3-7.6.0.49_mapped_snapshot_20201028-1.16.3.pom
    - https://maven.theillusivec4.top/mezz/jei/jei-1.16.3/7.6.0.49_mapped_snapshot_20201028-1.16.3/jei-1.16.3-7.6.0.49_mapped_snapshot_20201028-1.16.3.jar
    - https://dvs1.progwml6.com/files/maven/mezz/jei/jei-1.16.3/7.6.0.49_mapped_snapshot_20201028-1.16.3/jei-1.16.3-7.6.0.49_mapped_snapshot_20201028-1.16.3.pom
    - https://dvs1.progwml6.com/files/maven/mezz/jei/jei-1.16.3/7.6.0.49_mapped_snapshot_20201028-1.16.3/jei-1.16.3-7.6.0.49_mapped_snapshot_20201028-1.16.3.jar
    - https://modmaven.dev/mezz/jei/jei-1.16.3/7.6.0.49_mapped_snapshot_20201028-1.16.3/jei-1.16.3-7.6.0.49_mapped_snapshot_20201028-1.16.3.pom
    - https://modmaven.dev/mezz/jei/jei-1.16.3/7.6.0.49_mapped_snapshot_20201028-1.16.3/jei-1.16.3-7.6.0.49_mapped_snapshot_20201028-1.16.3.jar
    - https://maven.blamejared.com/mezz/jei/jei-1.16.3/7.6.0.49_mapped_snapshot_20201028-1.16.3/jei-1.16.3-7.6.0.49_mapped_snapshot_20201028-1.16.3.pom
    - https://maven.blamejared.com/mezz/jei/jei-1.16.3/7.6.0.49_mapped_snapshot_20201028-1.16.3/jei-1.16.3-7.6.0.49_mapped_snapshot_20201028-1.16.3.jar
    - https://files.minecraftforge.net/maven/mezz/jei/jei-1.16.3/7.6.0.49_mapped_snapshot_20201028-1.16.3/jei-1.16.3-7.6.0.49_mapped_snapshot_20201028-1.16.3.pom
    - https://files.minecraftforge.net/maven/mezz/jei/jei-1.16.3/7.6.0.49_mapped_snapshot_20201028-1.16.3/jei-1.16.3-7.6.0.49_mapped_snapshot_20201028-1.16.3.jar
    - file:/home/max/.gradle/caches/forge_gradle/bundeled_repo/mezz/jei/jei-1.16.3/7.6.0.49_mapped_snapshot_20201028-1.16.3/jei-1.16.3-7.6.0.49_mapped_snapshot_20201028-1.16.3.pom
    - file:/home/max/.gradle/caches/forge_gradle/bundeled_repo/mezz/jei/jei-1.16.3/7.6.0.49_mapped_snapshot_20201028-1.16.3/jei-1.16.3-7.6.0.49_mapped_snapshot_20201028-1.16.3.jar
    - https://libraries.minecraft.net/mezz/jei/jei-1.16.3/7.6.0.49_mapped_snapshot_20201028-1.16.3/jei-1.16.3-7.6.0.49_mapped_snapshot_20201028-1.16.3.jar
  Required by:
      project :
> Could not find mekanism:Mekanism:1.16.3-10.0.15.441_mapped_snapshot_20201028-1.16.3.
  Searched in the following locations:
    - https://repo.maven.apache.org/maven2/mekanism/Mekanism/1.16.3-10.0.15.441_mapped_snapshot_20201028-1.16.3/Mekanism-1.16.3-10.0.15.441_mapped_snapshot_20201028-1.16.3.pom
    - https://repo.maven.apache.org/maven2/mekanism/Mekanism/1.16.3-10.0.15.441_mapped_snapshot_20201028-1.16.3/Mekanism-1.16.3-10.0.15.441_mapped_snapshot_20201028-1.16.3.jar
    - https://maven.theillusivec4.top/mekanism/Mekanism/1.16.3-10.0.15.441_mapped_snapshot_20201028-1.16.3/Mekanism-1.16.3-10.0.15.441_mapped_snapshot_20201028-1.16.3.pom
    - https://maven.theillusivec4.top/mekanism/Mekanism/1.16.3-10.0.15.441_mapped_snapshot_20201028-1.16.3/Mekanism-1.16.3-10.0.15.441_mapped_snapshot_20201028-1.16.3.jar
    - https://dvs1.progwml6.com/files/maven/mekanism/Mekanism/1.16.3-10.0.15.441_mapped_snapshot_20201028-1.16.3/Mekanism-1.16.3-10.0.15.441_mapped_snapshot_20201028-1.16.3.pom
    - https://dvs1.progwml6.com/files/maven/mekanism/Mekanism/1.16.3-10.0.15.441_mapped_snapshot_20201028-1.16.3/Mekanism-1.16.3-10.0.15.441_mapped_snapshot_20201028-1.16.3.jar
    - https://modmaven.dev/mekanism/Mekanism/1.16.3-10.0.15.441_mapped_snapshot_20201028-1.16.3/Mekanism-1.16.3-10.0.15.441_mapped_snapshot_20201028-1.16.3.pom
    - https://modmaven.dev/mekanism/Mekanism/1.16.3-10.0.15.441_mapped_snapshot_20201028-1.16.3/Mekanism-1.16.3-10.0.15.441_mapped_snapshot_20201028-1.16.3.jar
    - https://maven.blamejared.com/mekanism/Mekanism/1.16.3-10.0.15.441_mapped_snapshot_20201028-1.16.3/Mekanism-1.16.3-10.0.15.441_mapped_snapshot_20201028-1.16.3.pom
    - https://maven.blamejared.com/mekanism/Mekanism/1.16.3-10.0.15.441_mapped_snapshot_20201028-1.16.3/Mekanism-1.16.3-10.0.15.441_mapped_snapshot_20201028-1.16.3.jar
    - https://files.minecraftforge.net/maven/mekanism/Mekanism/1.16.3-10.0.15.441_mapped_snapshot_20201028-1.16.3/Mekanism-1.16.3-10.0.15.441_mapped_snapshot_20201028-1.16.3.pom
    - https://files.minecraftforge.net/maven/mekanism/Mekanism/1.16.3-10.0.15.441_mapped_snapshot_20201028-1.16.3/Mekanism-1.16.3-10.0.15.441_mapped_snapshot_20201028-1.16.3.jar
  Required by:
      project :
The full output:
https://pastebin.com/rZWugX2F

@Sirttas Sirttas added the question Further information is requested label Jan 28, 2021
@Sirttas
Copy link
Owner

Sirttas commented Jan 28, 2021

  1. You need to use forge gradle: https://mcforge.readthedocs.io/en/latest/gettingstarted/
  2. DataPack anvil is not yet on a maven repo so you need to download it from curseforge (https://www.curseforge.com/minecraft/mc-mods/datapack-anvil/files the jar and the api.jar) and put it it in the ElementalCraft/lib folder

@Sirttas Sirttas closed this as completed Jan 28, 2021
@MaxMatti
Copy link
Author

"download that repo and put it into x folder" is always a candidate for just registering it as a git submodule. That way you can automatically update it and manage its version from your versioning system and you also make it easier to set up the build environment.

If you're interested I can create a PR for that.

@Sirttas
Copy link
Owner

Sirttas commented Jan 28, 2021

If you want but then we will face a problem with forge gradle config. And I don't know gradle enough for that.

@MaxMatti
Copy link
Author

Well if it breaks a part of your workflow then it's probably not worth it. Thank you for the quick replies to both of my issues and for the fix. I'm currently running my "benchmark" again and will post the results in the other thread shortly.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
question Further information is requested
Projects
None yet
Development

No branches or pull requests

2 participants