Category "maven"

Trigger parameterised maven release with Curl

Using following command to perform maven release: curl -X POST -H "Content-Type: application/x-www-form-urlencoded" -u user:jenkinscrumb --data-urlencode json=

What are trustAnchors ? and How do I configure it?

I was recently assigned a java project. I am not very familiar with Java. I have been trying to build the projects but I am having the following error: the trus

java.lang.NoSuchMethodError: 'com.google.common.collect.ImmutableMap error when trying to execute tests using Chromedriver and Maven

I am new to selenium tests and I am currently watching some youtube videos using maven. Today I tried a few codes and worked fine but when accessing one store p

Maven Enforcer: How to access maven properties from beanshell rule

I successfully created a evaluateBeanshell rule with the maven-enforcer-plugin that scans files in the workspace for common mistakes. With a hardcoded path the

scanBasePackages on SpringBootApplication breaks endpoints

I am using an external dependency in my SpringBootApplication. The main class is defined as @ConfigurationPropertiesScan @EnableConfigurationProperties @SpringB

Spotbugs build issue

Built failed while creating aws-sdk-v2 jars due to spotbugs plugin. Steps to reproduce the error: clone latest version of aws-sdk-java-v2 In terminal, go to dir

java.lang.ClassNotFoundException: com.mysql.jdbc.Driver even after using the mySql Maven Dependency on Intellij

I am using Intellij for a servlet project and using maven <dependency> <groupId>mysql</groupId> <artifactId>mysql-conn

Eclipse 'Project Explorer View' doesn't show Errors - Stack Overflow

In the "Project Explorer" view of a maven project, instead of showing errors (compilation) in the project itself (red blade), they appear at the level of the fo

java.lang.ClassNotFoundException: com.mysql.jdbc.Driver even after using the mySql Maven Dependency on Intellij

I am using Intellij for a servlet project and using maven <dependency> <groupId>mysql</groupId> <artifactId>mysql-conn

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