Skip to main content

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
2 votes
1 answer
60 views

maven dependency not found with Java FX 19 on Eclipse 2024-06 but not earlier

I have the following issue with Eclipse 2024-06: A project that references <dependencies> <!-- Java FX --> <!-- https://mvnrepository.com/artifact/org.openjfx/javafx-...
4 votes
2 answers
3k views

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] -------------------------< com.my:package-order &...
0 votes
2 answers
577 views

Problems with Spring boot and Java JPA

I am facing the following error: Error starting ApplicationContext. To display the condition evaluation report re-run your application with 'debug' enabled. 2023-06-12T21:33:06.984+03:00 ERROR 10508 --...
0 votes
3 answers
746 views

Downloaded Maven Dependencies (BUILD SUCCESS) But Can't Resolve Lombok In IntelliJ

My project builds successfully with mvn clean install -U, but when building the same project in IntelliJ I get java: package lombok.extern.sl.. does not exist. I have the lombok plugin installed but ...
0 votes
1 answer
41 views

IntelliJ IDE Cannot Find javax.annotation.processing.Generated Symbol While mvn test Works Correctly

I am having a problem with my project configuration and running the program and unit test. When running with mvn test the JUnit test executes propertly, but when executing from within the IntelliJ IDE,...
3 votes
3 answers
16k views

Build error in jenkins ERROR: Maven Home /home/app/maven-2.2.1 doesn’t exist

I am trying run Jenkins and Building a project. I have install Maven 2.2.1. I downloaded Maven 2.2.1 and extracted in a folder Maven 2.2.1. set the home path in .bash_profile. content of .bash_profile ...
0 votes
5 answers
23k views

The JAVA_HOME environment variable is not defined correctly This environment variable is needed to run this program

When I am running the command mvn -version in command prompt I am getting the following error: The JAVA_HOME environment variable is not defined correctly This environment variable is needed to run ...
19 votes
12 answers
22k views

GitLab-CI get pom version in pipeline

I'd like to build docker image via gitlab CI with project's version as a tag: docker build -t dockerimage:VERSION-IN-POM . In jenkins' pipeline i'm getting the version like that: ${pom.version} ...
0 votes
1 answer
72 views

Why does my IntelliJ say that there's an error in my pom.xml?

Recently I added a pom.xml file to my java project in IntelliJ IDEA and I then made it into a Maven project. Though when I opened the pom.xml back again with IntelliJ, I saw 2 errors at "project&...
11 votes
3 answers
5k views

What is the meaning for GAV in Maven context?

Sometimes people say maven GAV, or in the GAV, or GAV artifact in Maven repository. What is the meaning for GAV in Maven context?
1 vote
2 answers
10k views

java.lang.ClassNotFoundException: org.json.JSONObject

I am developing a WAR project in Eclipse Mars which is running on a Tomcat 7 application server. I am also using the Java JSON API to create JSONObjects from a REST web service.I have ensured that my ...
1108 votes
15 answers
511k views

What exactly is a Maven Snapshot and why do we need it?

I am a bit confused about the meaning of a Maven SNAPSHOT and why we build one?
0 votes
1 answer
508 views

How to tell maven to use a snapshot version? It tries to load x.y.z-SNAPSHOT but nexus has replaced -SNAPSHOT

We use a nexus repository for our libraries. Another projects has it as a dependency in version 6.1.2-SNAPSHOT, but maven fails to fetch it. It tries to fetch https://nexus/nexus/repository/snapshots/...
360 votes
5 answers
383k views

Maven groupId and artifactId naming

I'm currently in the process of moving some project from Ant to Maven. Conformist as I am, I want to use well-established conventions for finding groupId and artifactId, but I can't find any detailed ...
8 votes
5 answers
4k views

Applying maven groupId naming convention

I am developing a number of projects (currently organized as eclipse projects). There is a core project which mainly provides the core API and some secondary implementations and abstract classes. All ...

15 30 50 per page
1
2 3 4 5
5930