Skip to main content

All Questions

Tagged with
0 votes
0 answers
16 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 <...
Akshara Prasad'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
0 answers
37 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> ...
jjcie's user avatar
  • 1
0 votes
0 answers
35 views

Maven dependencies configuration in pom.xml [closed]

I am working on a Java project i am not an a programmer however i do it fully with chat gpt 4, sometimes it solve the problems and find the right dependencies but most of the times like now it dont ...
אור אסייג's user avatar
-1 votes
1 answer
39 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....
AppleDev3's user avatar
0 votes
1 answer
35 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 ...
Nicola Cortese's user avatar
0 votes
1 answer
26 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> <...
Ashhh's user avatar
  • 1
0 votes
1 answer
36 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 ...
MA1's user avatar
  • 1,002
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 ...
David Kelleher's user avatar
1 vote
1 answer
49 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....
user6952691's user avatar
0 votes
1 answer
47 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, ...
Cristian Mocofanescu's user avatar
0 votes
0 answers
54 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&...
QueenMaddii's user avatar
0 votes
1 answer
55 views

Loading Maven libraries into GUI project

What is the correct way to load and use a library with Maven? I am trying to use the Gson library for my GUI project, but doing so I get errors. These are my steps: Creating the Maven project works ...
Socrates's user avatar
  • 9,336
0 votes
0 answers
17 views

Maven custom property overridden despite specifying in command-line

Problem Description: I have a Maven project (pom.xml) where I define a build-number property in the section: <properties> ... <build-number>1</build-number> <!-- Default ...
twerpiebird's user avatar
1 vote
0 answers
22 views

How to include build information along with version in springboot?

I'm trying to include build information along with version information in springboot. I've a working local setup that satisfies my requirements. Which looks like this. <?xml version="1.0" ...
twerpiebird's user avatar

15 30 50 per page
1
2 3 4 5
282