Multiverse-Inventories

878k Downloads

Does not compile

Jannyboy11 opened this issue · 5 comments

commented

Does not compile because the com.dumptruckman.minecraft:Logging:jar:1.1.1 could not be found by Maven.
I think this has to do with a recent maven update which had something to do with no longer using the http protocol by default. My version of Maven (according to mvn --version) is Apache Maven 3.8.1 (05c21c65bdfed0f71a2f2ada8b84da59348c4c5d)
Probably the onarandombox repository need to be updated in the pom to use https: http://repo.onarandombox.com/content/groups/public ---> https://repo.onarandombox.com/content/groups/public
I expect that the same is needed for the Vault repo.

Full log:

C:\Users\Test\Minecraft\workspace\Multiverse-Inventories>mvn clean package
[INFO] Scanning for projects...
[INFO]
[INFO] ---< com.onarandombox.multiverseinventories:Multiverse-Inventories >----
[INFO] Building Multiverse-Inventories 4.0.0-SNAPSHOT
[INFO] --------------------------------[ jar ]---------------------------------
Downloading from spigot: https://hub.spigotmc.org/nexus/content/groups/public/org/bukkit/bukkit/1.14.4-R0.1-SNAPSHOT/maven-metadata.xml
Downloading from spigot-repo: https://hub.spigotmc.org/nexus/content/repositories/snapshots/org/bukkit/bukkit/1.14.4-R0.1-SNAPSHOT/maven-metadata.xml
Downloading from maven-default-http-blocker: http://0.0.0.0/org/bukkit/bukkit/1.14.4-R0.1-SNAPSHOT/maven-metadata.xml
Downloaded from spigot-repo: https://hub.spigotmc.org/nexus/content/repositories/snapshots/org/bukkit/bukkit/1.14.4-R0.1-SNAPSHOT/maven-metadata.xml (1.4 kB at 1.5 kB/s)
Downloaded from spigot: https://hub.spigotmc.org/nexus/content/groups/public/org/bukkit/bukkit/1.14.4-R0.1-SNAPSHOT/maven-metadata.xml (1.4 kB at 1.4 kB/s)
[WARNING] Could not transfer metadata org.bukkit:bukkit:1.14.4-R0.1-SNAPSHOT/maven-metadata.xml from/to maven-default-http-blocker (http://0.0.0.0/): transfer failed for http://0.0.0.0/org/bukkit/bukkit/1.14.4-R0.1-SNAPSHOT/maven-metadata.xml
[WARNING] org.bukkit:bukkit:1.14.4-R0.1-SNAPSHOT/maven-metadata.xmlfailed to transfer from http://0.0.0.0/ during a previous attempt. This failure was cached in the local repository and resolution will not be reattempted until the update interval of maven-default-http-blocker has elapsed or updates are forced. Original error: Could not transfer metadata org.bukkit:bukkit:1.14.4-R0.1-SNAPSHOT/maven-metadata.xml from/to maven-default-http-blocker (http://0.0.0.0/): transfer failed for http://0.0.0.0/org/bukkit/bukkit/1.14.4-R0.1-SNAPSHOT/maven-metadata.xml
Downloading from maven-default-http-blocker: http://0.0.0.0/com/onarandombox/multiversecore/Multiverse-Core/4.1.0-SNAPSHOT/maven-metadata.xml
Downloading from spigot-repo: https://hub.spigotmc.org/nexus/content/repositories/snapshots/com/onarandombox/multiversecore/Multiverse-Core/4.1.0-SNAPSHOT/maven-metadata.xml
Downloading from spigot: https://hub.spigotmc.org/nexus/content/groups/public/com/onarandombox/multiversecore/Multiverse-Core/4.1.0-SNAPSHOT/maven-metadata.xml
[WARNING] Could not transfer metadata com.onarandombox.multiversecore:Multiverse-Core:4.1.0-SNAPSHOT/maven-metadata.xml from/to maven-default-http-blocker (http://0.0.0.0/): transfer failed for http://0.0.0.0/com/onarandombox/multiversecore/Multiverse-Core/4.1.0-SNAPSHOT/maven-metadata.xml
[WARNING] com.onarandombox.multiversecore:Multiverse-Core:4.1.0-SNAPSHOT/maven-metadata.xmlfailed to transfer from http://0.0.0.0/ during a previous attempt. This failure was cached in the local repository and resolution will not be reattempted until the update interval of maven-default-http-blocker has elapsed or updates are forced. Original error: Could not transfer metadata com.onarandombox.multiversecore:Multiverse-Core:4.1.0-SNAPSHOT/maven-metadata.xml from/to maven-default-http-blocker (http://0.0.0.0/): transfer failed for http://0.0.0.0/com/onarandombox/multiversecore/Multiverse-Core/4.1.0-SNAPSHOT/maven-metadata.xml
Downloading from spigot: https://hub.spigotmc.org/nexus/content/groups/public/com/dumptruckman/minecraft/Logging/1.1.1/Logging-1.1.1.pom
Downloading from spigot-repo: https://hub.spigotmc.org/nexus/content/repositories/snapshots/com/dumptruckman/minecraft/Logging/1.1.1/Logging-1.1.1.pom
Downloading from central: https://repo.maven.apache.org/maven2/com/dumptruckman/minecraft/Logging/1.1.1/Logging-1.1.1.pom
Downloading from spigot: https://hub.spigotmc.org/nexus/content/groups/public/com/feildmaster/lib/EnhancedConfiguration/1.1.3/EnhancedConfiguration-1.1.3.pom
Downloading from spigot-repo: https://hub.spigotmc.org/nexus/content/repositories/snapshots/com/feildmaster/lib/EnhancedConfiguration/1.1.3/EnhancedConfiguration-1.1.3.pom
Downloading from central: https://repo.maven.apache.org/maven2/com/feildmaster/lib/EnhancedConfiguration/1.1.3/EnhancedConfiguration-1.1.3.pom
Downloading from maven-default-http-blocker: http://0.0.0.0/com/onarandombox/multiverseadventure/Multiverse-Adventure/2.5.0-SNAPSHOT/maven-metadata.xml
Downloading from spigot-repo: https://hub.spigotmc.org/nexus/content/repositories/snapshots/com/onarandombox/multiverseadventure/Multiverse-Adventure/2.5.0-SNAPSHOT/maven-metadata.xml
Downloading from spigot: https://hub.spigotmc.org/nexus/content/groups/public/com/onarandombox/multiverseadventure/Multiverse-Adventure/2.5.0-SNAPSHOT/maven-metadata.xml
[WARNING] Could not transfer metadata com.onarandombox.multiverseadventure:Multiverse-Adventure:2.5.0-SNAPSHOT/maven-metadata.xml from/to maven-default-http-blocker (http://0.0.0.0/): transfer failed for http://0.0.0.0/com/onarandombox/multiverseadventure/Multiverse-Adventure/2.5.0-SNAPSHOT/maven-metadata.xml
[WARNING] com.onarandombox.multiverseadventure:Multiverse-Adventure:2.5.0-SNAPSHOT/maven-metadata.xmlfailed to transfer from http://0.0.0.0/ during a previous attempt. This failure was cached in the local repository and resolution will not be reattempted until the update interval of maven-default-http-blocker has elapsed or updates are forced. Original error: Could not transfer metadata com.onarandombox.multiverseadventure:Multiverse-Adventure:2.5.0-SNAPSHOT/maven-metadata.xml from/to maven-default-http-blocker (http://0.0.0.0/): transfer failed for http://0.0.0.0/com/onarandombox/multiverseadventure/Multiverse-Adventure/2.5.0-SNAPSHOT/maven-metadata.xml
Downloading from spigot: https://hub.spigotmc.org/nexus/content/groups/public/uk/co/MultiInv/3.0.6/MultiInv-3.0.6.pom
Downloading from spigot-repo: https://hub.spigotmc.org/nexus/content/repositories/snapshots/uk/co/MultiInv/3.0.6/MultiInv-3.0.6.pom
Downloading from central: https://repo.maven.apache.org/maven2/uk/co/MultiInv/3.0.6/MultiInv-3.0.6.pom
Downloading from spigot: https://hub.spigotmc.org/nexus/content/groups/public/me/drayshak/WorldInventories/1.0.2/WorldInventories-1.0.2.pom
Downloading from spigot-repo: https://hub.spigotmc.org/nexus/content/repositories/snapshots/me/drayshak/WorldInventories/1.0.2/WorldInventories-1.0.2.pom
Downloading from central: https://repo.maven.apache.org/maven2/me/drayshak/WorldInventories/1.0.2/WorldInventories-1.0.2.pom
Downloading from spigot: https://hub.spigotmc.org/nexus/content/groups/public/com/dumptruckman/minecraft/JsonConfiguration/1.1/JsonConfiguration-1.1.pom
Downloading from spigot-repo: https://hub.spigotmc.org/nexus/content/repositories/snapshots/com/dumptruckman/minecraft/JsonConfiguration/1.1/JsonConfiguration-1.1.pom
Downloading from central: https://repo.maven.apache.org/maven2/com/dumptruckman/minecraft/JsonConfiguration/1.1/JsonConfiguration-1.1.pom
Downloading from spigot: https://hub.spigotmc.org/nexus/content/groups/public/net/milkbowl/vault/VaultAPI/1.5/VaultAPI-1.5.pom
Downloading from spigot-repo: https://hub.spigotmc.org/nexus/content/repositories/snapshots/net/milkbowl/vault/VaultAPI/1.5/VaultAPI-1.5.pom
Downloading from central: https://repo.maven.apache.org/maven2/net/milkbowl/vault/VaultAPI/1.5/VaultAPI-1.5.pom
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time:  13.650 s
[INFO] Finished at: 2021-06-17T13:51:24+02:00
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal on project Multiverse-Inventories: Could not resolve dependencies for project com.onarandombox.multiverseinventories:Multiverse-Inventories:jar:4.0.0-SNAPSHOT: Failed to collect dependencies at com.dumptruckman.minecraft:Logging:jar:1.1.1: Failed to read artifact descriptor for com.dumptruckman.minecraft:Logging:jar:1.1.1: Could not transfer artifact com.dumptruckman.minecraft:Logging:pom:1.1.1 from/to maven-default-http-blocker (http://0.0.0.0/): Blocked mirror for repositories: [onarandombox (http://repo.onarandombox.com/content/groups/public, default, releases+snapshots), vault-repo (http://nexus.hc.to/content/repositories/pub_releases, default, releases+snapshots)] -> [Help 1]
[ERROR]
[ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch.
[ERROR] Re-run Maven using the -X switch to enable full debug logging.
[ERROR]
[ERROR] For more information about the errors and possible solutions, please read the following articles:
[ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/DependencyResolutionException
commented

I was able to compile the project after applying the mentioned changes to the pom, no issues here using Oracle JDK 16.
The reason why I don't use http is that Maven won't let me (see log), so that's a pretty big showstopper. Also: I'd like to not get man-in-the-middled.

Here's a link to the maven 3.8.1 release notes that explains their rationale: https://maven.apache.org/docs/3.8.1/release-notes.html

commented

Yea, Java doesn’t support our ssl cert, so we just use http. I know https is definitely a more secure option but it should be too huge of a concern. Any reason other why you can’t just use http?

commented

Ok I understand. Closing this as it’s not an issue with mv-inv. It’s already being tracked here at Multiverse/Multiverse-Core#2175

commented

Ok I understand. Closing this as it’s not an issue with mv-inv. It’s already being tracked here at Multiverse/Multiverse-Core#2175

You're referencing a PR that has been open for over a year. Any particular reason why it has not been merged or closed yet?
Also: it absolutely is an issue with mv-inv as in its pom there're also remote repositories defined at http urls.

commented

Bcu the last time I compile on java 8, I don’t ssl errors. But that was a year ago, So will need more ppl to prove it works before merging it.