Category "maven"

Moving dependencies from pom to properties file

is there any way to moving dependencies from pom.xml to application.properties file? <dependency> <groupId>org.postgresql</groupId>

Spring Boot - nested exception is org.springframework.beans.factory.NoSuchBeanDefinitionException: No qualifying bean of type '' available

I'm trying to add the following statement to a Spring Boot service: @Autowired private ApELDatabasePublisherService eventPublisher; The dependency for eventPu

How to suppress Kotlin unused parameter warning in all test classes?

In parameterized tests I use hint parameter to clarify test case naming. From the static analyzer point of view this parameter is never used, so this warning fr

how to instruct apache maven to drop corrupted jar and download them again?

When I run mvn site, I found that the doxia library is corrupted: [WARNING] Error injecting: org.apache.maven.report.projectinfo.CiManagementReport java.lang.No

How to get an auth code from Keycloak(OAuth2 standard flow) in a JEE-Maven project?

I need to secure a web-app, the backend will be Java Rest API, meanwhile I'll use Angular for my front. I am using Keycloak to authenticate into my webapp, but

Error while running cucumber feature file via testng

Below is the error i get: [RemoteTestNG] detected TestNG version 7.5.0 [main] INFO org.testng.internal.Utils - [Utils] MethodGroupsHelper.collectMethodsByGroup(

All maven surefire reports are zero! How could this happen?

I have a scala project configured with maven surefire plugin: <plugin> <groupId>org.apache.maven.plugins</groupId> <a

Java slenium wont getProperty when i use switch case

here is my simple code for getting a browser public WebDriver initializeDriver() { WebDriver driver; String browser = System.getProperty("bro

How to use maven repositories instead of p2 update sites to provision plugins in Eclipse IDE?

In my region it will be much faster using a maven repository instead of a p2 update site to provision plugins in Eclipse IDE and I'm craving for a solution. Has

"no main manifest attribute, in server.war" not using a main class

What I'm trying to do is have Docker run a TomEE 8.0.0 application with Maven. However when compiling the application, it gives me the error from the title no m

Fixing vulnerability of maven-core

I am receiving critical vulnerability on maven-core package https://nvd.nist.gov/vuln/detail/CVE-2021-26291. Need to upgrade maven-core to 3.8.1+. Here ${sprin

How to "require" module "gwt.user" On Java, JDK17, "module-info.java", Netbeans, Maven

I am trying to keep up with the new changes in Java, one step a time. I am updating my old libraries with module-info.java files. I have a very simple project n

Exclude version pattern from renovate

There are several standard Java dependencies that have forks with the same maven coordinates and a "redhat-xxx" suffix in their version number, for example comm

Maven shade plugin does not exclude an artifact

I need to exclude the log4j artifact from the shade plug-in to avoid the log4j vulnerability, however, the exclude tag under artifactSet does not seem to work.

Prevent release artifacts to be overwritten when using s3 to store maven artifacts

We are using Amazon S3 to manage the maven artifacts. Currently, if we do mvn deploy , the release artifacts gets overwritten on Amazon s3. Ideally the release

Getting org.hibernate.HibernateException - Unable to get the default Bean Validation factory

I have a maven project throwing Bean Validation factory error, added below dependencies still issue has not got resolved. Using java 11. <dependency>

Maven Eclipse - Child module not recognized as maven project

I'm working on a new maven multi module project on eclipse. The problem is, the child project is shown as a regular folder and not a maven folder. What's the pr

Maven often doesn't resolve version number for transitive dependencies - "${project.version}"

I've been suffering this problem for a while now and can't figure out what the issue might be. It is intermittent which is why I give it half an hour here and t

How to run JUnit5 suite using the @Suite annotation

I'm trying to figure this out for over a year now but I can't run JUnit5 suites unless I use the JUnit4 @RunWith annotation, which brings me some other issues.

nexus not accepting metadata file upload from maven

I setup a docker nexus with this docker-compose.yml: version: "3" services: nexus: restart: always image: sonatype/nexus3 container_name: nexus