Questions tagged [maven]
Apache Maven is a build automation and project management tool used primarily for Java projects. This tag is for questions that don't relate to a specific Maven version. Use the gradle tag instead for questions relating to Gradle.
maven
41
questions
-1
votes
0
answers
9
views
jar file is not generated in my spring project
My name is Alex. I am learning spring and I have already completed a project. Now I want to upload it to the internet and publish it in my portfolio. However, when I give the following command in cmd: ...
-2
votes
0
answers
5
views
What would be good reason to be concerned about vulnerabilities on the compileClasspath of a project?
Is there a good reason to be concerned about vulnerable dependencies on the compileClasspath?
This is assuming such dependencies were removed/excluded from the runtimeClasspath.
So they won't be ...
0
votes
0
answers
36
views
Why is a clean Maven project in Netbeans not running
I am setting up a local instance to run a Java webapp. It's been a while since I've done this but I've done it in the past. So far what I've done is installed JDK 22.0.2 and Netbeans 22 on my local ...
1
vote
1
answer
23
views
mvn verify doesnt start docker-compose
I want to start docker-compose upon integration tests e.g mvn verify command.
I am using:
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId&...
-1
votes
0
answers
22
views
'npm run build' failed in Github actions and frontend-maven-plugin for Java spring-boot app
I am building a monolithic app using Java spring-boot and Reacjs for UI. My repository is hosted on Github and I am using Github Actions to build the repo on every commit.
I am using the frontend-...
-1
votes
1
answer
28
views
mvn -B release:perform Unable to checkout from SCM
I am using Maven 3.9 and a Java Spring Boot 3.1.1 application with Bitbucket and Git.
I am trying to handle release versioning.
pom.xml
<scm>
<connection>scm:git:git://ssh@bitbucket....
0
votes
1
answer
10
views
Jandex indexes not built for dependent module in Quarkus Multi-Module setup with Maven in IntelliJ
I use the following versions:
Intellik: 2024.1.4
maven: built-in (3.9.6)
org.jboss.jandex: 1.2.3
Quarkus: 3.12.3
I have the following project structure:
pom.xml
|- libraries
|- pom.xml
|- ...
1
vote
1
answer
29
views
Spring Boot Application Runs in IntelliJ IDEA but Fails with mvn install Due to JDBC URL Error
I'm encountering an issue with my Spring Boot application. It runs perfectly fine when I start it directly from IntelliJ IDEA by clicking the play button. However, when I try to build the project ...
0
votes
0
answers
8
views
How to import package of com.sun.tools.javac.processing with maven for JDK21?
I want to use the annotation processing tool in JDK21. But it shows missing com.sun.tools.javac.processing.
I tried to add the following parameter to Maven:
<plugin>
<groupId>org....
0
votes
1
answer
34
views
Azure DevOps Pipelines: deploy Java projects as maven dependencies for other projects
I have to create Azure DevOps pipelines for multiple Java maven projects that previously had no CI/CD process.
All the projects are on the same Azure DevOps organization and are stored in Azure Repos.
...
0
votes
0
answers
20
views
Put android lib .jar online (Github)
I have several .jar libraries in my project.
I do not have access to the source code, only the .jar.
I would like to make the implementation of these files available via github.
At the moment:
...
0
votes
0
answers
11
views
Failed to execute goal org.apache.maven.plugins:maven-deploy-plugin:3.0.0-M1:deploy
I am having some issues in pushing some artifacts in nexus. This is happening during the mvn deploy phase and I am getting this error
Error: Failed to execute goal org.apache.maven.plugins:maven-...
-1
votes
1
answer
16
views
maven: RepackageMojo has been compiled by a more recent version of the Java Runtime (class file version 61.0)
I've got an errror of java 17 and java 11 incompatability:
RepackageMojo has been compiled by a more recent version of the Java Runtime (class file version 61.0), this version of the Java Runtime only ...
-1
votes
0
answers
49
views
Eclipse 2024-06 failed by transferring maven-compiler-plugin-3.13.0
I have upgraded my Eclipse to Version: 2024-06 (4.32.0). Since this moment I am not able to build my project anymore within Eclipse. As a native system JRE I am using AdoptOpenJDK 8 (jdk-8.0.312.7-...
0
votes
0
answers
9
views
JAR package only necessary classes and dependencies
I am new to maven and I would like to know what would be the best way to package only those classes and dependencies that are needed to run that class. For example if I have a lot of classes A, B, C ...