Questions tagged [maven-3]
Apache Maven is a tool for project management and build automation. This tag is for questions relating to Maven version 3.x. For non version-specific questions, please use the [maven] tag.
maven-3
5,238
questions
0
votes
1
answer
30
views
sample example of java upgrade from 8 to 21 using open rewrite
I have a springboot application with version 2.x and using java 8, I would like to upgrade the java VERSION TO 21 and spring boot version to 3.x,
My question is which is the easiest way to upgrade ...
-1
votes
0
answers
38
views
Maven dependency release dates [closed]
I've noticed that some Maven dependencies have release dates earlier than the components they depend on. I'm investigating the reasons behind this and suspect that the upstream component might have ...
0
votes
0
answers
26
views
Maven test pass, but with install tests fail
I'm using maven, liquibase in project and spock with groovy to test java code.
Normally my tests pass, but when I'm using packaging/install then tests fails with error of spring context initializing ...
1
vote
0
answers
32
views
jOOQ throws error cannot access java.util.concurrent.Flow with 3.19.10
As the title says, I am unable to build my maven module using jOOQ as a dependency (3.19.10) even after using java version 17 to build my code. The pom.xml file also specifies java 17 as the source ...
0
votes
1
answer
45
views
gitlab CI/CD pipeline will not run stage "deploy"
I have a gitlab project here:
gitlab_project
and run successfully a CI pipeline for stages "build" and "test" in my gitlab-ci.yml, which is as follows:
stages:
- build
- test
...
-1
votes
0
answers
22
views
JanusGraph from Java can't find the remote-objects.yaml file
I'm trying to connect to a JanusGraph server running in a docker container. I can connect just fine from the gremlin console. To connect from a Java app I'm following the directions here. mvn package ...
1
vote
1
answer
123
views
GitHub Actions Maven Build Failing with "relative path" Error After Dynamic Version Update
I'm working on a project where we use GitHub Actions to automate our Maven build process. We dynamically set the version number in the format projectversion-runID-runNumber, like 8.1.0-9761957358-18. ...
0
votes
0
answers
24
views
How to replace the direct dependency `A` with all transitive dependencies of `A` in the artifact pom.xml?
I have a maven project named A which is dependent on artifacts B and C, I want to generate a thin jar which will have only the classes of A, B and C from project A with As pom. I can do this using ...
0
votes
1
answer
32
views
Maven ${project.version} scope
I have parent pom with dependency management declared by ${project.version}.
Then I inherit parent in my target project, this project has other version than parent.
This throws errors, because of ...
-1
votes
1
answer
27
views
Extract required libraries using maven assembly plugin
I have a maven project that works fine so far, but building an executable JAR gives me a problem I could not solve so far.
This question here: Why is my .jar file running slower than the program in ...
0
votes
0
answers
33
views
JavaFX Application Fails to Load FXML File with IllegalStateException: Location is not set [duplicate]
I am developing a JavaFX application using Maven in IntelliJ IDEA. My application fails to load the FXML file and throws the following exception:
C:\Users\Bruce\.jdks\openjdk-22.0.1\bin\java.exe "...
0
votes
1
answer
26
views
Unit Tests passing in IDE and pipeline but failing with mvn clean install
I'm working in a project with Spring Boot and Java 11.
I have created the following UT, that when I launch it with the IDE (IntelliJ) it passes correctly and when I commit and push it to the pipeline ...
0
votes
0
answers
14
views
maven dependency:list-classes transitive not working with tar.gz dependencies
I want to be able to get a list of all classes that an artifact depends on. The maven-dependency-plugin goal list-classes with parameter transitive set to true does exactly what I need. Except there ...
0
votes
0
answers
27
views
Is there a way to tell maven that dependencies are coming from the same maven project?
I have a multi-module maven project that can be simplified as follow:
* root
|- moduleA
\- moduleB (depending on moduleA)
I want to run several commands on the structure of the project, such as mvn ...
0
votes
0
answers
27
views
What's the best practice in a Spring Boot 3 project using Gradle Kotlin to publish Maven artifacts of both the fat jar and an openapi json document?
Environment:
Spring Boot 3 app written in Kotlin (bootstrapped from https://start.spring.io)
Gradle Kotlin 8.7
Requirements:
Publish generated openapi json specification as a Maven artifact
Publish ...