BungeeTabListPlus
BungeeTabListPlus copied to clipboard
Error when building
[ERROR] Failed to execute goal on project bungee-plugin: Could not resolve dependencies for project codecrafter47.bungeetablistplus:bungee-plugin:jar:3.1.1-SNAPSHOT: Failed to collect dependencies at de.codecrafter47.taboverlay:TabOverlayCommon:jar:1.0-SNAPSHOT: Failed to read artifact descriptor for de.codecrafter47.taboverlay:TabOverlayCommon:jar:1.0-SNAPSHOT: Could not transfer artifact de.codecrafter47.taboverlay:TabOverlayCommon:pom:1.0-SNAPSHOT from/to codecrafter47-repo (https://nexus.codecrafter47.dyndns.eu/content/repositories/public/): sun.security.validator.ValidatorException: PKIX path building failed: sun.security.provider.certpath.SunCertPathBuilderException: unable to find valid certification path to requested target -> [Help 1]
@CodeCrafter47
Blame the security people who made me use https for my repo (#513). I'm using a Let's Encrypt certificate. Some java distributions don't trust these.
@CodeCrafter47 ye i can't build on my pc :(
Using a different jdk might help. If you use Java 8 then 8u101 or above should work. I don't think there are any problems using Java 9 or newer. Honestly just download the latest jdk and it should work.
@CodeCrafter47 I use java 8 version 248.
If you have different java installations on your system then this depends on the one you use the run maven - not the one you compile the plugin with. Depending on where you got your java installation from (oracle website, package manager of your linux distribution, bundled with your IDE) the included certificates may vary. I recommend you try a different java installation. Search the internet for "java lets encrypt" to find more information should you be unable to solve the issue.
Java 9 [ERROR] Failed to execute goal org.apache.maven.plugins:maven-compiler-plugin:3.2:compile (default-compile) on project bungeetablistplus-common: Fatal error compiling: java.lang.ExceptionInInitializerError: com.sun.tools.javac.code.TypeTags -> [Help 1]
[ERROR] Failed to execute goal org.apache.maven.plugins:maven-compiler-plugin:3.2:compile (default-compile) on project bungeetablistplus-common: Fatal error compiling: java.lang.ExceptionInInitializerError: com.sun.tools.javac.code.TypeTags -> [Help 1]
@CodeCrafter47 now i can't run my ide...
I don't think I can help you any more that what I already did in solving this issue. The issue is within your setup. I know it's frustrating if your tools don't work out of the box, but given the vast number of different systems out there that happens sometimes. You might find answers by searching the internet for information specific to your system and IDE.
@CodeCrafter47 you messed something in your build and I can't build it. How to build?
@CodeCrafter47
It's not an issue on my side. As I've explained your java installation is missing a required certificate. I've given you pointers to various things that might cause this issue. And that's pretty much all I can do. I don't know how you install java, how you run maven, which system and IDE you're using. And since it's probably different from mine I'm unlikely to be able to help you set it up correctly.
@CodeCrafter47 how to set it correctly so I can build? There are only problems with your project.
@CodeCrafter47 how to set it correctly so I can build?
You could try to replicate my setup. I.e. get a recent version of Ubuntu install git, maven openjdk8 (don't forget the java ca=certs however it's called) and build it from the command line. That's pretty much how my jenkins works. Or try doing what I do on my computer: Use IntelliJ, it bundles its own jvm and maven, which should work just fine (if you configure it to use the same jvm you're currently using there won't be a difference though).
There are only problems with your project.
Try building Advanced Achievements then.
@CodeCrafter47 how to build using maven on pc?
mvn clean install
@CodeCrafter47 [ERROR] Failed to execute goal org.apache.maven.plugins:maven-compiler-plugin:3.2:compile (default-compile) on project bungeetablistplus-common: Compilation failure [ERROR] No compiler is provided in this environment. Perhaps you are running on a JRE rather than a JDK?
If I'm reading the error correctly, maven can't find your Java compiler. Typically you can run the Java compiler by typing javac
in the console. If it says something like command not found you need to make sure 1. you have a jdk (not just jvm) installed.2. It's on your path variable ( Google it)If you can invoke the Java compiler from the command line, but maven still can't find it, you need to set the JAVA_HOME variable to the directory where your Java installation lives. It's unlikely you need to do this, but if you do this Google how to do it.
@CodeCrafter47 my java_home variable is set.
You're having trouble with basic things like installing a JDK. Please ask for help in the APPROPRIATE places. You can come back once you've got that sorted out.
@CodeCrafter47 man you told me to change to java 9 which didn't help.
I also told you that the relevant java installation is the one that is being used to run maven. You clearly didn't make much of that.