kangarko / ChatControl-Red

Issue tracker and documentation for the next generation ChatControl Red, the most advanced chat management plugin.
43 stars 22 forks source link

How do I add dependancies to IntelliJ for VelocityControl to build it? #2675

Closed TomLewis closed 1 month ago

TomLewis commented 1 month ago

Are you using MySQL?

Yes

Are you using BungeeCord/Velocity?

Yes - Velocity

Question

No readme on https://bitbucket.org/kangarko/velocitycontrol/src/master/

Dependancies missing, so how do I install/add them to build Velocity control?

the Minecraft Development plugin is installed.

Do I have to add Velocity jar somehow to the project to build? image

kangarko commented 1 month ago

Hello,

It should be very easy as you only need to download VelocityFoundation from my github, then compile it first (run "clean install" in maven), and finally open VelocityControl in a new window and compile that. All the other dependencies should be resolved automatically.

Let me know your build output log in case you will get BUILD FAILURE.

Matej

TomLewis commented 1 month ago

Right, so i've cloned VelocityFoundation locally, opened it into IntelliJ, opened the maven tab and clicked "clean" which runs/builds without error, if I try the package option it fails;

[ERROR] Failed to execute goal on project VelocityFoundation: Could not resolve dependencies for project org.mineacademy:VelocityFoundation:jar:1.0.1: Failed to collect dependencies at com.velocitypowered:velocity-api:jar:3.3.0-SNAPSHOT: Failed to read artifact descriptor for com.velocitypowered:velocity-api:jar:3.3.0-SNAPSHOT: The following artifacts could not be resolved: com.velocitypowered:velocity-api:pom:3.3.0-SNAPSHOT (absent): Could not transfer artifact com.velocitypowered:velocity-api:pom:3.3.0-SNAPSHOT from/to velocity-repo (https://repo.papermc.io/repository/maven-public/): PKIX path building failed: sun.security.provider.certpath.SunCertPathBuilderException: unable to find valid certification path to requested target -> [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

Process finished with exit code 1

Opening VelocityControl and running gives the same error as before.

Are these supose to be compiled to a specific location or just hte default location where IntelliJ throws them?

TomLewis commented 1 month ago

Just tried both from CLI too, this error from CLI

[INFO]
[INFO] ------------------< org.mineacademy:VelocityControl >-------------------
[INFO] Building VelocityControl 1.0.3
[INFO]   from pom.xml
[INFO] --------------------------------[ jar ]---------------------------------
[WARNING] The POM for com.velocitypowered:velocity-api:jar:3.3.0-SNAPSHOT is missing, no dependency information available
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time:  0.549 s
[INFO] Finished at: 2024-05-09T15:31:23+01:00
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal on project VelocityControl: Could not resolve dependencies for project org.mineacademy:VelocityControl:jar:1.0.3: Failed to collect dependencies at org.mineacademy:VelocityFoundation:jar:LATEST: Failed to read artifact descriptor for org.mineacademy:VelocityFoundation:jar:LATEST: Failed to resolve version for org.mineacademy:VelocityFoundation:jar:LATEST: Could not find metadata org.mineacademy:VelocityFoundation/maven-metadata.xml in local (C:\Users\Tom\.m2\repository) -> [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
kangarko commented 1 month ago

I figured out it would be easier to just add you to buyers of VelocityControl, you are welcome.

TomLewis commented 1 month ago

You legand! That does make life easier. And im now up and running on the latest chat.