Skip to content
Advertisement

Tag: maven

Maven shows no colors in macOS terminal

I installed Maven (the latest version, 3.8.3) via Homebrew (brew install maven) on a Mac running the latest macOS Monterey (12.0.1, Apple Silicon). When I run any mvn command in the terminal, the output is plain white with no colors and no bold text. I tried the same command (also version 3.8.3) on my older MacBook (Monterey 12.0.1 as well),

How to deal with ResolutionException?

I’m trying to use Java Modules in my Spring Boot project and I’m getting the following exception: How can I solve this problem? Answer Try using JDK8 to run this code. It seems to be a compatability issue Edit: The root cause is that this package has been removed. (https://jcp.org/en/jsr/detail?id=305) from the standard JVM installation after java 8. Some of

Unable to make field final transient java.lang.Class java.util.EnumSet.elementType accessible: module java.base does not “opens java.util” to unnamed

I get this error when I run this test using JDK 17: I tried adding this to my pom.xml based on other answers: But when I build, I now get this error: Answer @Holger is right, you should not hack into JDK internals. He also explained correctly that –add-opens is not a valid Maven Compiler option. Because he did not

Maven error: Could not find or load main class And Unable to Edit System Variables

I have Maven installed, and it was working fine yesterday, however now it is displaying the infamous (Maven error: Could not find or load main class org.codehaus.plexus.classworlds.launcher.Launcher) error… In other solutions, it seems that the system variable needs to be edited from M2_HOME to M3_HOME. Yet, I am unable to edit my system environment variables (also pictured). Any suggestions for

Advertisement