Skip to content
Advertisement

Tag: maven

how to pass –add-opens JDK module configuration to maven test

I’m upgrading java version in our production code from java 8 to java 11. I have to add the below JDK module configuration in the application java start command due to usage of third party libraries like flume, zookeeper etc. –add-opens java.base/java.lang=ALL-UNNAMED –add-opens jdk.management/com.sun.management.internal=ALL-UNNAMED After adding this configuration and java application is starting fine. But when I run the tests

Can’t find io.jsonwebtoken.impl.DefaultJwtBuilder when starting project in a docker container

When starting my Quarkus project locally with mvn quarkus:dev I have no errors when executing a function which utilizes JJWT. However when I export my project into a docker container it gives me an error stating that it can’t find DefaultJwtBuilder. When dockerizing my project I first execute ./mvnw package -Pnative -Dquarkus.native.container-build=true as stated in the Quarkus docs for creating

input arabic characters with scanner in maven project

i work on netbeans 8.2 and i create a java maven project, i want just take an input with arabic characters and display it and that don’t work properly : NOTES: i have already change netbeans configuration (/etc/netbeans.conf) to accept UTF-8 encoding but i have this probleme just with MAVEN projects. Answer Try to run code in other environment. May

No Main Class found when running a dockerizing image

I have a university project which consist of building a Java Spring Boot application that can handle multiple APIs that can start new docker containers running jar applications. For the moment, I was able to experiment how Spring Boot works, so I built a simple jar to deploy a simple greeting API that returns “Hello World!” So I have built

Non-resolvable parent POM for xxx

I’m trying to package a maven project and the IDEA console says “Non-resolvable parent POM for xxx”. The parent pom has been put in my maven local repository but can not be resolved by the submodules. The submodule’s pom.xml reports errors like this. The parent pom.xml looks like this The project seems like downloading the parent pom from the central

Why is my maven build not finding Netty’s EventLoopGroup class when executing?

I wrote my code following Netty’s documentation, then I execute: It builds successfully. Then I run: And it promts me with this error: Exception in thread “main” java.lang.NoClassDefFoundError: io/netty/channel/EventLoopGroup at java.lang.Class.getDeclaredMethods0(Native Method) at java.lang.Class.privateGetDeclaredMethods(Class.java:2701) at java.lang.Class.privateGetMethodRecursive(Class.java:3048) at java.lang.Class.getMethod0(Class.java:3018) at java.lang.Class.getMethod(Class.java:1784) at sun.launcher.LauncherHelper.validateMainClass(LauncherHelper.java:544) at sun.launcher.LauncherHelper.checkAndLoadMain(LauncherHelper.java:526) Caused by: java.lang.ClassNotFoundException: io.netty.channel.EventLoopGroup at java.net.URLClassLoader.findClass(URLClassLoader.java:381) at java.lang.ClassLoader.loadClass(ClassLoader.java:424) at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:331) at java.lang.ClassLoader.loadClass(ClassLoader.java:357) … 7 more To

Advertisement