Category "maven"

Maven use dependency from dependency

I have 3 proyects on maven, A, B and C B has a dependency to C. And A has a dependency to C. This is my pom From C <?xml version="1.0" encoding="UTF-8"?>

Blank console upon trying to run cucumber feature file

I am trying to run a Cucumber feature file by Right Click > Run As > Feature File. But no action is triggered. Blank console output. What may be the case?

java.lang.NoSuchMethodError: com.mongodb.client.MongoCollection.insertOne exception when inserting entry to Javers Mongodb collection

I am able to insert the data to mongodb collection. Same time Javers framework trying to insert the data to jv_snapshots collection. Data insertion to jv_snapsh

Connection refused trying to connect spring boot application in docker

I try to run spring boot application in Docker, Circle CI. Please, check how my .circleci/config.yml file looks like: version: 2.1 jobs: test: docker:

JavaFX give error after requires in pom file using maven

I'm currently creating project with blocks that can be connected (like blender or UE). And I found github project (VWorkflows) that I connected using its tutori

Java 17 and maven-archetype-quickstart gives error: Source Option 5 is no longer supported

When using the maven command to create a simple Maven project (with the latest versions of maven and java), I get the error: [ERROR] Source option 5 is no longe

Building multi-module maven project for SonarCloud

I am building a maven project of X amount of modules for the first time for SonarCloud. The sonar.projectKey value needs to be unique, so I set it to ${project.

rename maven jar-with-dependencies

My plugin section in the pom file looks like this: <plugin> <artifactId>maven-assembly-plugin</artifactId> <version>2.

How do I configure the --output of jlink command in maven-jlink-plugin?

I'm trying to generate a JRE using maven-jlink-plugin, just as I would with the jlink command. I started doing a maven configuration like this : <plugin&

Multiple issues in Log4J Upgrade for old Java Servlet ( Struts ) based application

Current Situation Java Application development version: a Struts based GUI application developed in Java 1.5 JDK used for Compilation: 1.7 Tomcat Server: Applic

Groovy-Eclipse Compilation Failed : Source level should be in '1.1'...'1.8','9'...'15' (or '5.0'..'15.0'): 17

I wanted to compile groovy along with java sources so I added groovy-eclipse-compiler to pom.xml but I got an error: Groovy-Eclipse: source level should be in

Error: Could not find or load main class - When running a JAR at the prompt

I'm looking all afternoon how I can run a JAR of a Spring Boot application I'm developing. Generated the JAR through the mvn clean package command. The JAR is g

Gradle is not resolving any dependencies

I have a Gradle java project. When I tried to import/ open, I am getting dependency can't be resolved error. Initially I tried with IntelliJ, so doubt IntelliJ

DMN, xml parsing, autogenerating tescase

A simple dmn model is created with one input and a decision for that . How to parse the xml of the dmn model using saxon and autogenerate testcase?

Running test with testcontainers as part of a Dockerfile

My dockerfile looks something like this: FROM maven:3-jdk-11-slim COPY pom.xml . COPY src src RUN mvn clean install That means that part of the build is the

What is the purpose of dependency management tag in pom.xml?

Can someone please explain what this dependency do under dependency management and after adding it why we don't need to mention version of our dependencies?

What is the purpose of dependency management tag in pom.xml?

Can someone please explain what this dependency do under dependency management and after adding it why we don't need to mention version of our dependencies?

java.lang.module.ResolutionException: Modules persistence.api and java.persistence export package javax.persistence.spi to module sqlite.dialect

I'm trying to build my first jpa hibernate projekt, but unfortunally i come across this error here: Error occurred during initialization of boot layer java.lang

Apache poi excel writer works in ide but not in fat jar? java.io.IOException: Your InputStream was neither an OLE2 stream, nor an OOXML str

The code works perfectly fine in IDE but not in normal .jar or in fat .jar? The program works perfectly fine otherwise. Also non-fat .jar doesn't work either. T

Reading from catalog in a batch application fails, jar:authorization not found

Background I am currently researching the HERE platform possibilities for my employer. I am under the "Premium Evaluation, Workspace plan". I am familiar with t