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
88,958
questions
-1
votes
1
answer
27
views
Eclipse IDE in MacOS: how to set an environment variable from an AWS CLI execution? (for setting AWS Code Artifact Token)
I'm trying to use our AWS Code Artifact as Maven repository. That repo is set up to authenticate via a token, which expires every 24 hours. The token is retrieved from AWS via its CLI using aws ...
-2
votes
0
answers
42
views
Maven cannot build a JAR file
I was making a Minecraft plugin these last two days and every day at 00:00 in my time maven just stops working like it was. I don't know if it's cause the time, but this happened to me twice ~at night....
1
vote
0
answers
25
views
M2E in Eclipse (Maven Integration): how to see actual Maven output and customize builds?
I might be missing something fundamental here, but if I need to debug a Maven Project in Eclipse, I'm used to simply select Project -> Clean or Build Project, then look to the Errors view to find ...
0
votes
0
answers
40
views
Why are tests running successfully when running as Junit test but when building the pom file, there are test failures and build failure?
I dont have any error and tests run successfully when its run as Junit. But on Building that project's pom, the following error is coming and the build is being failed because of these test failure.
...
0
votes
1
answer
30
views
When i am. trying to run spring intializr using ./mvnw spring-boot:run. it showing the error
[ERROR] Failed to execute goal org.springframework.boot:spring-boot-maven-plugin:3.3.2:run (default-cli) on project initializr: Unable to find a suitable main class, please add a 'mainClass' property -...
-2
votes
0
answers
27
views
Creating a Jenkins plugin for adding custom build parameters [closed]
I am new to Jenkins, Java and Maven. I need to create a Jenkins plugin to add some required string fields to build parameters and those should be accessible through environment variables as other ...
1
vote
0
answers
8
views
create executable jar of karate testSuite , features are present src/test/java (maven project ) [duplicate]
I want to create an executable jar of my karate test suite created with maven.so that I can run the testcases directly using the jar .The testcases are present in src/test/java and some required ...
-1
votes
0
answers
44
views
What is .info file and is it related to maven? [closed]
I took over a project from a previous developer. This is a maven project and in its resource folder there is a version.info file. Inside there is
info.buildVersion = ${project.version}
I have never ...
1
vote
0
answers
38
views
How can I add all jar files from my lib folder to my maven project? [duplicate]
I have many maven projects packaged as Jar files and I need those projects that interact with each other to be available in my web project which is also a maven project.
I need the classes inside ...
0
votes
0
answers
54
views
Cucumber maven <rerunFailingTestsCount>1</rerunFailingTestsCount> does not rerun failed tests and does not create report file
could you tell me what are required dependencies to make cucumber reporting plugin working when I want to rerun failed tests ? I am using in my project the following dependencies. Could you tell me ...
0
votes
2
answers
54
views
Log4j2 No inject constructor error when launching through java.exe
I have a program in java made through maven and packaged with assembly into a single jar with all the dependencies. I need to run this in docker so I need to be able to launch it with java.exe. The ...
0
votes
1
answer
86
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&...
2
votes
1
answer
99
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-...
1
vote
1
answer
16
views
Make frontend maven plugin install node_modules in the same directory as the package.json, NOT in a /node directory
How it works currently:
During the generate-resource phase of the Maven build, the frontend Maven plugin installs all the dependencies in the /node directory created in the working directory specified ...
0
votes
1
answer
69
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,...