Category "maven"

com.mysql.jdbc.exceptions.jdbc4.MySQLNonTransientConnectionException: Public Key Retrieval is not allowed

I have a spring boot project running on java8 after I installed mysql8 server and tried to connect I am getting the error com.mysql.jdbc.exceptions.jdbc4.MySQ

maven jar plugin with specific filename not work

I am trying to use maven jar a file with a specific filename. <fileName> ${project.build.directory}/${project.artifactId}-${project.version}-SAMLGr

Getting started with GoogleCloudPlatform / Java - basic app fails

I'm getting started with GoogleCloudPlatform - I want to use it from Java on my Mac. I have followed the various installation instructions and have (presumably)

Ballerina Maven Build Fails - toml parser

I checked out Ballerina and built using mvn clean install. I get the following error. [ERROR] Failed to execute goal com.github.spotbugs:spotbugs-maven->plu

Could not resolve version conflict among [io.cucumber:cucumber-core:jar:7.3.4 -> io.cucumber:messages:jar:18.0.0

I have included all the jars in the POM file as follows: <?xml version="1.0" encoding="UTF-8"?> <project xmlns="http://maven.apache.org/POM/4.0.0" xml

Spring Boot build image failure for native image

Using spring boot 2.6.2, with java17, trying to create native image but it fails with below error. I am building it on windows 11 machine with docker desktop i

java.lang.NoClassDefFoundError: io/jsonwebtoken/Jwts - maven spring-boot

java.lang.NoClassDefFoundError: io/jsonwebtoken/Jwts When I run locally with mvn spring-boot:run , there's no problem. But when I package my application into

maven-javadoc-plugin error javadoc: error - cannot read Input length = 1 with non-ASCII characters in directory name

I'm using OpenJDK 11 on Windows 10. I have a very simple POM, for a single Java file, that generates Javadocs. Here is an extract: <properties> <pro

Maven not running JUnit 5 tests

I'm trying to get a simple junit test running with maven but it is not detecting any tests. Where am I going wrong? The project directory Project -> src ->

Is it possible to access a property value from another maven project?

I have a SpringBoot service: package test; @Service public class TestService { @Value("${service.readTimeout}") private Duration readTimeout; } service

Maven profiles activates on running jdk not on toolchains jdk

I'm attempting to create a pom that will: Use correct JDK from maven-toolchains-plugin based on java.version property. Activate appropriate profile based on re

Is there any shortcut/command available to skip karma tests? like -DskipTests for Maven

I have created Maven Web application and I generally use mvn clean install So it execute npm install command as its one of the execution goal and then it ru

Test ignored and failing when running IT test in Spring Boot (MongoDB Test Container)

I am trying to run an IT test using a MongoDB test container. However, I get the following error when I run the test com.github.dockerjava.api.exception.Interna

Pi4j to use java with raspberry Pi not working

I am honestly about to just give up, i've tried so many different possibilities, for multiple weeks now, almost a month, of multiple problems. I am a new-ish pr

Build docker error /bin/sh: 1: ./mvnw: not found

I try to build maven project using dockerfile, but i got this error when i use command docker build /bin/sh: 1: ./mvnw: not found i had try this solution :

Re-installing maven dependency project causes NoClassDefFoundError in already running application

Let's say I have a very simple maven project ProjA which has no dependencies itself. This project ProjA has classes X and Y as follows: class X package proja;

Can't launch Payara Micro from payara-micro-maven-plugin, getting "unsupported JDK"

I put together a sample project to demonstrate the issue I'm having. https://github.com/johnmanko/payara-micro-plugin-group Basically, I'm trying to launch my a

java.lang.UnsatisfiedLinkError: Could not load library gstreamer-0.10

I'm getting this issue while compiling the code below. I installed gstreamer for Windows and added development jar file to my IDE but I couldn't solve this prob

How to disable Kotlin compiler in IntelliJ IDEA for Maven Java projects?

I have a Java only multi module Maven project in IntelliJ IDEA and I can see IDEA calling a Kotlin compiler whenever I rebuild a module or choose to run all tes

How to turn off project facets on eclipse?

I was trying to resolve a problem in my eclipse so I clicked on : Propreties -> Project Facets -> Click on the link Now I have a new view of Project Fa