All Questions
4,219
questions
-1
votes
0
answers
34
views
How to find all the dependencies for my Java project [duplicate]
I am working on reducing the build size of a large project to deploy it. The developers have decided to include a lot of jar files in the dependency folder, some of them not even being used. (haha ...
0
votes
0
answers
24
views
Want to use active choice parameter value in Root POM path in Jenkins
I have a job in Jenkins consisting of multiple maven projects and their respective pom.xml file. By giving active choice parameter value in root POM path user can select which project to run. My ...
0
votes
0
answers
19
views
separate frontend and backend from spring boot project
Now I have a spring boot project, I have added the frontend (nextJS) in the root directory
project-root/
|-- frontend/
|--|-- out/
|--|src/
|--|-- main/
|-- pom.xml
when I compile the war file, it ...
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
17
views
How to exclude files from running in testResource
Trying to exclude the files in path "/path/to/exclude/" while running the unit test cases in
"path/to/directory" . Unfortunately the following snippet is not working in pom.xml
<...
1
vote
1
answer
44
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 ...
0
votes
0
answers
39
views
Change Maven Repository Order
Our enterprise team maintains a settings.xml file that defines various repositories that development teams can use with Maven to build their artifacts.
<repositories>
<repository>
...
-1
votes
1
answer
44
views
Cannot find spring-boot-starter-oauth2-client no matter the version
I am trying to import the spring-boot-start-oauth2-client into my pom.xml. I have tried using different versions and no matter which version I use, this error pops up:
Dependency 'org.springframework....
0
votes
1
answer
39
views
Unable to update the maven-core dependency version within the plugin maven-compiler-plugin
I'm trying to resolve a vulnerability (CVE-2021-26291) related to the dependency maven-core version 3.2.5, which is being pulled in by the build plugin maven-compiler-plugin version 3.12.1.
I tried ...
0
votes
1
answer
28
views
java.lang.ClassNotFoundException: javax.servlet.http.HttpServlet on tomcat 10.1 maven project [duplicate]
I am creating maven web project with Spring configuration I added the
jakarta.servlet-api
Dependency in pox.xml as below
<dependency>
<groupId>jakarta.servlet</groupId>
<...
0
votes
1
answer
38
views
NoClassDefFound Could not initialize class org.appformer.maven.integration.embedder.MavenSettings$SettingsHolder
When I upgraded the dependency org.codehaus.plexus:plexus-utils from 3.5.1 to 4.0.1, I started getting the error below when the method kieBuilder.buildAll(); gets executed.
Error:
NoClassDefFound ...
0
votes
0
answers
32
views
Run tests from different Maven projects
I have a microservice repo and also a separate 'common-tests' repo which contains testNG tests that I would like to re-use across different microservices. (both packaged in Maven).
In CI for my ...
1
vote
1
answer
51
views
Maven transitive dependency shows older version even though parent package is updated within dependencyManagement
I have the following POM (not the complete file):
<properties>
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
<maven.compiler.source>11</maven....
0
votes
1
answer
48
views
lionbridge-connector on Azure Artifacts gives Dependency Error
I'm trying to migrate our Maven artifacts from Nexus to Azure Artifacts, but I've run into a problem due to the "lionbridge-connector.all.author" artefact. This artefact is zip archive, ...
0
votes
0
answers
60
views
Failed to Acquire Lock Downloading Maven Dependancy
I have this single project dependandcy and every time it tries to download it it downloads stuff for about 2 minutes and then fails with just "Could not acquire lock(s)"
<dependencies&...