Questions tagged [maven-2]
Apache Maven is a software project management and comprehension tool. This is a tag for Maven related questions that are specific to Maven versions 2.x.
maven-2
5,696
questions
-1
votes
0
answers
34
views
Maven dependency release dates [closed]
I've noticed that some Maven dependencies have release dates earlier than the components they depend on. I'm investigating the reasons behind this and suspect that the upstream component might have ...
0
votes
0
answers
26
views
Custom library repository artifacts not imported
Sonatype nexus not importing custom project artifacts upon maven clean install.
In Sonatype Nexus, I have created following three repositories:
1. my-proxy-repo(proxy)
2. my-parent-repo(hosted)...
0
votes
0
answers
24
views
How to replace the direct dependency `A` with all transitive dependencies of `A` in the artifact pom.xml?
I have a maven project named A which is dependent on artifacts B and C, I want to generate a thin jar which will have only the classes of A, B and C from project A with As pom. I can do this using ...
0
votes
1
answer
31
views
Maven ${project.version} scope
I have parent pom with dependency management declared by ${project.version}.
Then I inherit parent in my target project, this project has other version than parent.
This throws errors, because of ...
0
votes
2
answers
32
views
I have issues running test on my pom.xml in my app it says org.springframework.boot:spring-boot-starter-test:jar:${spring.boot.version}
i keep getting these 2 errors in my pom.xml file
1 is : Missing artifact org.springframework.boot:spring-boot-starter-test:jar:${spring.boot.version}
2nd is : Error resolving version for plugin 'org....
0
votes
2
answers
45
views
Getting error as failed to persist file in jfrog artifactory oss
Getting error as no files cached and also Failed to persist file with sha1 while trying to download the artifacts from jfrog ui or even at server level also.
artifactory-service.log file says below
...
0
votes
1
answer
19
views
How to create 2 archetypes out of the same project having different modiles in maven
I have a project with module A and module B i want to create 2 artifacts separately 1. with module A + module B packaged and another one with only Module B packaged. Both of these would have different ...
0
votes
0
answers
58
views
How to Resolve that the command is too long issues while using the maven-jdeps-plugin
In my project having more dependency. So I want to analyze classes for how many classes depend on JDK unsupported.
Plugin Configuration in POM.xml
<plugin>
<groupId>org.apache.maven....
0
votes
1
answer
43
views
Error reading assemblies: Error locating assembly descriptor: descriptor.xml
I am trying to create a jar file out of a directory
Below is the structure of my files
test-dir - [Root folder]
src
QE (directory that i want to pack)
descriptor.xml
pom.xml
My pom file
<project&...
0
votes
0
answers
25
views
Pom.xml file showing error after creating maven project
Thanks in advance!
I'm getting pom.xml file error after creating maven project.
Error:
Could not calculate build plan:Plugin
org.apache.maven.plugins:maven-compiler-plugin:3.11.0 or one of its ...
0
votes
1
answer
74
views
How can I download artifacts from a Maven repository in a private Gitlab project using Ivy?
As part of an Apache Ant execution I need to download a set of artefacts using an incantation as shown below using resolve and retrieve.
The artefacts are located in a Maven Repository
that is part of ...
-2
votes
1
answer
59
views
if else statement returning wrong answer [duplicate]
import java.util.Scanner;
public class orOperator {
public static void main(String args[]) {
System.out.println(" This code is to check you are eligible or not");
Scanner ...
0
votes
0
answers
26
views
Why I'm getting an unresolved depandency error in my AEM OSGI bundle?
My OSGI bundle will not start if I use the AEM wcm core components (to be specific the Image component) in my java code:
package be.ovl.aem.services.models.components.content.enhancedimage.impl;
...
5
votes
1
answer
67
views
Download JavaFX dependency using Ivy
I'm looking to fetch JavaFX from Maven Central using Ivy.
This works to get the Java dependencies, but not the native dependencies.
Expected:
javafx-graphics-21.0.1.jar
javafx-graphics-21.0.1-linux....
0
votes
0
answers
72
views
Groovy script fails to install grapes from remote Secure maven repository
Thanks for taking the time to read!
I am attempting to configure my grapeConfig (ivysettings) file to utilize a remote maven repository (github Packages) for grape installations while writing groovy ...