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.

-1 votes
0 answers
10 views

Debug kotlin in spring boot maven java

https://github.com/fwcd/vscode-kotlin/issues/154 Can i debug kotlin (vscode) in spring boot maven java (i only use kotlin build controller) can debug kotlin when run app java , i want when run spring ...
Duong's user avatar
  • 9
0 votes
1 answer
17 views

Adding dcm4che 5 library to Java project using IntelliJ and Maven

To preface - I'm a python dev, but I wanted to do some testing using Java. I've taken a few classes on Java at WGU, but I'm having an issue with getting a certain dependency installed and I'm thinking ...
Cory Merrick's user avatar
0 votes
0 answers
63 views

How can I resolve CVE-2023-2976 & CVE-2023-1370 vulnerabilities in Maven guava:31.1-jre & json-smart:2.4.7 while using spring-data-commons:3.3.1?

I recently discovered CVE-2023-2976 & CVE-2023-1370 vulnerabilities in my project. According to my SCA tool, these vulnerabilities stem from my use of guava:31.1-jre and json-smart:2.4.7. I could ...
S Shekhar Mishra's user avatar
0 votes
1 answer
19 views

package org.apache.tools.ant.util does not exist

I am trying to wrap an Ant Prjoect in Maven using the maven-antrun-plugin. This is my Plugin config <plugin> <groupId>org.apache.maven.plugins</groupId> <...
Tejas Mehta's user avatar
0 votes
0 answers
41 views

Maven's enforcer that checks for duplicate classes ignores automatic resolution of dependencies with different versions

I recently found out that Maven automatically resolves versions of packages, if they are conflicting. maven; how to break backwards compatibility? For example, if dependency A requires a transitive ...
magiciansz's user avatar
1 vote
1 answer
39 views

Can `${...}` properties appear in the `<parent>` section of a POM file?

Maven's POM reference says that property values "are accessible anywhere within a POM". But that can't possibly be 100% true. The resolved value of a property depends on the POM's parent, so ...
Calvin's user avatar
  • 2,912
0 votes
1 answer
29 views

Kotlin slow compilation

I have a kotlin project and when i do mvn compile the project takes 30s+ to build. When using the -X flag it stops on this step for kapt and for the compiler for ~15s What should I do to make this ...
Prog's user avatar
  • 103
0 votes
0 answers
39 views

Apache POI Dependency in Maven Project : java.lang.NoClassDefFoundError: Could not initialize class org.apache.poi.ooxml.util.DocumentHelper

I want to export an xlsx file in a Java project, so I added the Apache POI libraries. However, it doesn't work. I removed the xerces dependency and it works, but it causes an error in the existing ...
Fatima Tahiri's user avatar
0 votes
0 answers
14 views

API to get information/meta-data about a package from Package managers such npm, nuget, maven etc

I am working on a project, wherein i would like to get data about a package and its dependencies from various sources such as npm, nuget, maven etc. Is there any way to do it. For example In the ...
Vikneshwaran Seetharaman's user avatar
-1 votes
0 answers
30 views

Update multiple (independent) project versions with maven

Situation I'm using maven in multiple projects Some projects use a parent (spring etc.), some are not. My projects can have different versions (one is 1.1.0, another one is 1.5.0 etc.) I currently ...
Krisko's user avatar
  • 163
-1 votes
0 answers
42 views

Using spark 3.4.1 lib in Java when extending StringRegexExpression to a java class

I am using spark 3.4.1 in maven project where I am configured scala (2.13.8) lang as well. I am trying to create a class Like.java in project by extending spark's StringRegexExpression package com....
Manoj Kumar's user avatar
0 votes
1 answer
25 views

Google OAuth2.0 Callback on Java Spring returning different redirect_uri

I'm currently developing a program that using google sheet API to get some data. I tried deploying it onto Amazon EC2 (Amazon Linux) and configured SSL using Let's Encrpyt. Everything is working fine ...
JxDev's user avatar
  • 1
1 vote
0 answers
64 views

javax.smartcardio cannot be resolved after updating Maven project to Java 17

I recently updated my Maven project from Java 8 to Java 17. After the update, I encountered an issue where Eclipse cannot resolve javax.smartcardio.* imports in my project. I found a workaround by ...
Sajed Hamdan's user avatar
0 votes
1 answer
53 views

Packaging a java 8 - maven - javafx 22 application

I read an article here and understood that there are differences between packaging JavaFX 11 and Java 11, from my project. However, I still don't know how to do it with my project. Mine is built in ...
Shemuel's user avatar
  • 21
0 votes
1 answer
12 views

How to use Maven Resolver "Trusted Checksums" to ensure artifact integrity?

Recent Maven Artifact Resolver versions have a "Trusted Checksums" feature. As mentioned for example in this Reddit comment it seems that feature can be used to ensure artifact integrity and ...
Marcono1234's user avatar
  • 6,579

15 30 50 per page