89,158 questions
-1
votes
0
answers
16
views
mvn command line to pull/copy-local an "ext: 'pom' artifact
When I need to pull a dependency directly via the command line (and it is a .jar)
I run something like this:
/opt/maven/apache-maven-3.8.2/bin/mvn dependency:copy -Dartifact=org.apache.commons:...
0
votes
0
answers
17
views
Is there a way to exclude classes with same package name, but are present in different folders from JaCoCo code coverage report?
This is my folder structure:
- src
- main
- java
- com.chintan.project
- src-gen
- com.chintan.project
Is there a way to exclude the classes of package com.chintan.project which ...
0
votes
0
answers
21
views
Does the number of resources affect compile time with the Xtend Maven plugin?
I am using the Xtend Maven plugin for a large project, and over time, I’ve noticed a gradual increase in compile time during the build process. One key observation is that the resource count in the ...
0
votes
0
answers
14
views
ERROR: Unable to find the resource: /META-INF/BenchmarkList while run mvn test
I Write a benchmark tests and put in src/test folder. Code:
public class BenchMarkTest {
@State(Scope.Benchmark)
public static class BenchmarkState {
...
}
@Benchmark
...
0
votes
0
answers
24
views
Coverage Checks always 0%
In terminal, mvn verify is returning a test coverage of 0%
[INFO] Tests run: 1, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 14.39 s -- in uk.ac.rhul.cs2800.Cw2ApplicationTests
[INFO] Running uk....
1
vote
0
answers
30
views
configure scala/java in vscode like in maven
I have an ubuntu EC2 machine which I SSH into using VS Code. I have a scala spark project. I have set all env variables and when I run mvn clean install -U and mvn test it compiles the project and ...
0
votes
0
answers
21
views
Error: Could not load main class org.openjdk.jmh.runner.ForkedMain
I am trying to create a new profile in maven that can run all the my JMH benchmark tests in the project.
The profile look something like below, I want my mvn verify -Dbenchmark to run all the ...
0
votes
0
answers
22
views
My Jenkins job failed with Timeout error and local System getting Lag and Generate Heat
I have created an node agent and executed 6 maven jobs parallelly each job can run one testng.xml file
Issue 1: After sometime of execution my local system getting and generate more heat
Issue 2: ...
0
votes
0
answers
14
views
Spring Security: Error processing condition on PropertyPlaceholderAutoConfiguration.propertySourcesPlaceholderConfigurer
I have a simple microservice Gateway which redirects users requets to appropirate microservices. I decided to add security in the Gateway microservice and thus added the Spring Security dependency ...
0
votes
2
answers
46
views
Do I have to recompile my project when I change values on property file
This is a general question on Java projects using property files.
Assuming a property file in src/main/resources
enter image description here
in this persistence.properties file you find datasource ...
0
votes
0
answers
16
views
Proguard: Can't process class [module-info.class]
I am trying to obfuscate my maven project. Below is the section that I added proguard to my pom.xml
`
com.github.wvengen
proguard-maven-plugin
<executions>
<...
0
votes
0
answers
37
views
Why is MapStruct Processor sometimes added as a Maven plugin instead of a dependency?
Description:
I noticed a difference between the official MapStruct documentation and various tutorials regarding how to configure the mapstruct-processor. In some tutorials, the mapstruct-processor is ...
0
votes
2
answers
33
views
Simplest way to generate version string for Maven package from Git branch
I want to automate the version string generation for release builds of my Java project. My pom.xml has a <version>${my-version-property}</version tag and the Git branch is called e.g. release/...
2
votes
1
answer
48
views
Java version specified in JAVA_HOME different from the one used by maven
I'm using windows and installed two java versions via choco: JDK 8 and 17. The JAVA_HOME env variable is pointing to the JDK 8. When I run java -version in fact it shows that java version is 1.8. ...
0
votes
1
answer
70
views
JavaFX Application Built with Maven and jpackage No Longer Works
I am building a JavaFX application and trying to package it as a standalone .exe using Maven with jpackage. Initially, I avoided using jlink because I had dependencies relying on automatic modules. ...
1
vote
2
answers
58
views
IntelliJ does not find dependency with maven classifier
After updating to IntelliJ 2024.3 I can longer execute JUnit tests, if they have a maven dependency with a <classifier> tag.
If I manually add the jar to the module settings the tests do work ...
0
votes
0
answers
23
views
How to properly create a volume for maven repository in Docker Compose? [duplicate]
I use the maven:3.8.3-openjdk-17 base image for my Docker containers publisher and consumer. In docker-compose.yaml I created a volume m2_volume:/root/.m2 to reuse the maven dependencies after each ...
0
votes
0
answers
18
views
Unable to build native image with GraalVM for Spring Boot 2.7.14
The jar was running successfully and image was also generated successfully with mvn -Pnative clean package. After generating the image, I try to run using ./native-image-name.
I get the following ...
-1
votes
0
answers
33
views
Is there any library that allows to create, write and read TOML files for Java? [closed]
I have to create, write and read TOML files. You guys know any library that allows to what Im searching for. And also what is the best file type for fingerprint-mac-ip storing.
Thanks.
https://github....
1
vote
0
answers
44
views
How to create a maven dependency and use it in Spring boot
I want to create a maven dependency Spring boot and use it in other project. But I have compile error...
[INFO] [1m--- [0;32mcompiler:3.13.0:compile[m [1m(default-compile)[m @ [36msso[0;1m ---[m
[INFO]...
0
votes
0
answers
15
views
How to capture logs during Xtend compilation
I’m trying to debug an issue in the Xtend compilation process and want to capture detailed logs to see:
Which classes are being compiled after the xtend:compile step.
How long each class takes to ...
0
votes
3
answers
116
views
Lombok Annotations Not Working in Spring Boot Project (Java 21)
I am working on a Spring Boot project using Lombok to generate boilerplate code such as getters, setters, and constructors. Despite having the correct Lombok dependency in the pom.xml, methods like ...
0
votes
1
answer
22
views
IntelliJ - Bring mvn clean install to a button
I am developing java maven projects using IntelliJ.
In order to compile the project with its dependencies, I use a lot mvn clean install
Every time, I end up clicking hte UI on this icon, then ...
0
votes
0
answers
22
views
WSDLToJava Error: Could not find jaxws frontend within classpath
I am trying to upgrade to java 17 and spring 6.1.8 and use exec-maven-plugin to call cxf WSDLToJava tool from maven pom.xml with my wsdl file, but I got the following error from mvn command:
mvn -f ...
0
votes
0
answers
19
views
Maven Compiler Plugin Issue for Activiti Project in IntelliJ IDEA
I’m working on setting up a Maven project in IntelliJ IDEA for Activiti to connect it with Jira. The idea is to move stories along automatically (like from “In Progress” to “Complete”). But before I ...
0
votes
0
answers
25
views
Spring Boot Error: Consider defining a bean of type
Spring Boot 3.0.0
Trying to run my application, but I'm getting the error:
Description:
Parameter 0 of constructor in com.example.pcoshealthtracker.controller.RegistrationController required a bean of ...
0
votes
1
answer
27
views
Overriding Maven plugins with vulnerable dependencies - Nexus Quarantine
Apache Maven 3.9.9 (8e8579a9e76f7d015ee5ec7bfcdc97d260186937)
Maven home: C:\Tools\apache-maven-3.9.9-bin
Java version: 1.8.0_431, vendor: Oracle Corporation, runtime: C:\Tools\Java\jre
Default locale:...
0
votes
0
answers
31
views
How to find lombok issue? Failed to execute goal org.apache.maven.plugins:maven-compiler-plugin:3.11.0:compile
I found many similar problems but none helps. I am trying to build and deploy a large project,I got error
org.apache.maven.lifecycle.LifecycleExecutionException: Failed to execute goal org.apache....
0
votes
0
answers
59
views
appengine-maven-plugin:2.8.1:deploy failing because it (incorrectly) believes the Java App Engine Components are not installed
Error is
[INFO] --- appengine-maven-plugin:2.8.1:deploy (default-cli) @ licence-server ---
[INFO] Staging the application to: c:\Source\wylas\wylas-licence-server\server\licence-server\target\...
0
votes
0
answers
19
views
Error when compile Eclipse BIRT project from source
I downloaded the project and am trying to build it. I get the following error.
[ERROR] Failed to execute goal �[32morg.apache.maven.plugins:maven-antrun-plugin:3.1.0:run�[m �[1m(build-api-package)�[m ...
0
votes
1
answer
45
views
Getting rid of Eclipse Junit 4 runtime configuration extraneous VM arguments
I'm fighting with Eclipse version 2024.9 right now when running junit tests. When I go to run our Junit 4 (yes old) tests, it complains with very opaque error message:
Reference to undefined variable ...
0
votes
0
answers
25
views
Maven Assembly Plugin add additional folder previous to the output directory
I am using maven-assembly-plugin to copy the different dependencies of a single project to different folders. Meaning, each dependency of the project need to be copied, with it's dependencies, to a ...
0
votes
0
answers
29
views
Should a BOM file include the implementation dependencies or just the API?
As I understand (I may be wrong) in BOM file I should include only API dependencies. However, if BOM contains only API I have problems with IMPL dependencies versions.
To include BOM file I do
<...
0
votes
0
answers
27
views
TestNG not showing in run configurations
TestNG is not showing in run configurations. Steps I took :
Create a new maven project
Adding testng dependency in the pom.xml file.
Installing Testng plugin from eclipse marketplace.
Keeping my ...
0
votes
0
answers
19
views
kafka-streams does not add the right kafka-clients dependency
org.apache.kafka:kafka-streams:jar:3.9.0 is suposed to use org.apache.kafka:kafka-clients:jar:3.9.0, but when I run mvn dependency:tree, I get
[INFO] +- org.apache.kafka:kafka-streams:jar:3.9.0:...
2
votes
1
answer
45
views
Maven is unable to find the org.testng package in my project
Hye!
I have included testng dependency in my pom.xml
<dependency>
<groupId>org.testng</groupId>
<artifactId>testng</artifactId>
<version>7.10.2</version>
...
0
votes
1
answer
36
views
Not sure if a certification problem or new flutter update
This is the problem my console throws, it started the 27 of november and I am not really sure why, I did not make any major changes when it started to show this error:
Execution failed for task ':app:...
0
votes
0
answers
22
views
How can I merge table column cells in a .docx table created using Apache POI
I am trying to merge cells in a generated table to have the effect displayed in the image.
How can I merge cells for this purpose in a Java application that uses Apache POI to generate a .docx file? ...
-1
votes
0
answers
23
views
How to copy external directory into the project build / output zip file?
I'm using maven have used assembly plugins in my project to build the different artefact for Dev, SIT, UAT and Prod.
How can I use the Maven Assembly Plugin to create a ZIP archive that includes a ...
0
votes
0
answers
27
views
Best POM for Google Spanner and Dataflow
I've been getting bizarre ClassNotFound errors in this io.grpc library, strange timeout errors, etc. Plus I saw on an old document there's a need to enforce the minimum version. I've tried building a ...
0
votes
0
answers
40
views
elasticsearch Dependency failed to fetch from repo maven - maven project
Java version: 22
Springboot version: 3.3.5
Apache Maven: 3.8.1
I am currently trying to fetch elasticsearch java API from repo maven
<dependency>
<groupId>co.elastic....
0
votes
0
answers
14
views
Plugin Management: Unable to get desired dependency version
I'm trying to build a spring-boot project, in my plugin management i want the plugin to override it's base dependency and take and upgraded dependency, but i'm unable to do it,
this is the plugin
...
-3
votes
0
answers
16
views
Running Maven through Mac terminal [closed]
I'm wanting to use selenium but I'm running into problems with maven. I'm using maven to download the selenium dependencies which works with the VS code terminal but does not work with the Mac ...
0
votes
1
answer
19
views
Can't run maven command in terminal - CreateProcess error=206, The filename or extension is too long
on Windows:
I try to execute the next mvn command:
mvn install -DjenkinsAcceptance=true -Dcucumber.forkCount=4 -Dcucumber.test.failure.ignore=true
But rise error:
[ERROR] Command execution failed.
...
1
vote
1
answer
49
views
SLF4J doesn't find provider from logback-classic on vertx
I'm trying to add Logback on a Vertx project, but it seems SLF4J can't see logback even if itself come from a logback dependency. I used maven dependency logback-classic, which transitively imports ...
0
votes
1
answer
29
views
Liquibase update stuck on "Executing on Database: database url"
I am quite stuck with a problem with liquibase. I am trying to connect to my oracle db and run my liquibase changelog.
The command I am running is as follows:
mvn clean verify [flag that clarifies ...
-2
votes
0
answers
50
views
Want to change screen resolution in jenkins for my maven project
How to set the screen resolution in Jenkins? I have my selenium project using maven want to run on Jenkins
Jenkins setup:
Jenkins: 2.479.1
OS: Windows 11 - 10.0
Java: 17.0.9 - Oracle Corporation (...
0
votes
0
answers
174
views
CVE-2024-47535: io.netty/netty-common
I have a spring-boot application, which contains the following dependency
<dependency>
<groupId>org.springdoc</groupId>
<artifactId>springdoc-...
0
votes
0
answers
6
views
Spring Multimodule Project DeploymentTest Errors
The project structure looks like this
sample
ㄴ file-sync-data(jpa project)
ㄴ ㄴ com.text.filesync.data
ㄴ ㄴ pom.xml
ㄴ file-sync-start-stream(scdf stream project)
ㄴ ㄴ com.test.filesync....
1
vote
1
answer
49
views
Resurrect old Java project with SWT and Maven
I am trying to resurrect some old code from the Java 1.5 era. Maven (which I am not super familiar with) is the build tool, probably an older major version. The old code also uses SWT, which I am ...