Category "maven"

Quarkus + Kogito build error: java.lang.IllegalStateException: Cannot find class info in jandex index for java.time.LocalDateTime

I have a multi-module Maven project that uses Quarkus and Kogito, with MongoDb persistence. The module with the Kogito process definition is using beans from an

Deploy Jar with external properties file spring boot

I have a problem with external properties file used by jar file generated by spring boot I have created the project below : The model object : package jms.model

Liquibase using H2 getting Driver class was not specified and MVMap$2 error

When I execute: ./mvnw liquibase:diff I am getting errors: Driver class was not specified and ClassNotFoundException: org.h2.mvstore.MVMap$2: [ERROR] Failed to

Running TestNG with Maven

I am trying to run TestNG/Selenium a specific test suite, but I can't get it to run the test. The command I am running is: mvn test -Dsuitefile=admin_tests.xm

Spring: java: package javax.validation.constraints does not exist

I already have this dependency in my pom.xml file <dependency> <groupId>org.springframework.boot</groupId> <artifactId>sprin

Maven project - compilation errors after cloning

I have a maven project that works perfectly fine locally but after I've pushed it to a remote repository on GitHub and cloned it somewhere else (even to a new l

Maven project is not working after import

I have imported the Maven project(RestAssured API) and did the Maven--> Update project. But when I run this I don't see the TestNG option in Run as. Also, De

Upload Quarkus dependency to Nexus

I have a Java based projects using Quarkus. However, the Jenkins pipeline does not support Maven 3.6.3 to build the project which is a Quarkus requirement. Now,

How to refactor Java classes in a maven project outside of an IDE

Imagine you have an maven project that compiles fine but lacks in a proper use of packages, because all Java/classes reside in the same package. Is there a tool

How to run one test inside a nested class with maven?

JUnit Example code: class OuterClass { @Nested class InnerClass { @Test void test() { } } } This command: mvn test -Dtest=OuterCla

how do I use BouncyCastle libraries in my AEM maven project?

problem: My Java code cannot see BouncyCastle libraries. situation: I have a component that needs to use BouncyCastle libraries. The other vendor has provided s

why a project that contain spring data dependency doesn't work on tomcat9?

I am trying to deploy a small springboot app on tomcat9 , the tomcat9 is on ubuntu 20 on my account in digital ocean . the problem when i am adding the spring d

no build output compiled for common module of Kotlin Multiplatform project

I'm trying to figure out why dependent projects for my Kotlin MPP library don't see any provided modules in their common modules even though the targets (jvm, a

Intellij is not able to fetch maven artifacts in private repository

At work we have no direct connection to the internet. To fetch maven artifacts we need to use a local Nexus, which mirrors all of maven-central. I have a settin

Review of gitlab CI using yml

Hi I am using the following gitlab yml file for setting up my pipeline. The project is a maven Java project. But I am not able to run all the steps successfully

Upgrading spring boot to 2.5.12

I am upgrading spring boot version to 2.5.12 from 2.3.10.RELEASE because of the vulnerability issues. But I am getting below error while starting the applicatio

How to disable Spring Cloud Kubernetes in a Maven build

Running Spring Boot 2.6.6 and Spring Cloud 2021.0.1 I'm attempting to migrate an existing service to Kubernetes so I added a dependency on spring-cloud-starter-

maven error: Could not find artifact hosted in private github repository

Iam trying to pull an artifact hosted in github(company's private repo) but it is throwing an error: [INFO] Scanning for projects... [INFO] [INFO] ------------

Intellij and jar file: No Persistence provider for EntityManager named xxx

I use intellij to create a jar package, but it does not work correctly. After it is created and all the external library jar files are created as well, when I s

org.sonarsource.scanner.maven:sonar-maven-plugin:3.8.0.2131:sonar failed: An API incompatibility was encountered while executing

my Software version sonarqube 7.0 maven: 3.6.3 jdk: 17 sonar-maven-plugin: 3.8.0.2131 when I run mvn --batch-mode clean verify org.sonarsource.scanner.maven:so