5,684 questions
0
votes
3
answers
127
views
jaxb2 inheritance plugin does not extend a class in /src/test/java
I'm on a java/maven project, using the jaxb2 inheritance plugin in order to define parent classes for xjc-generated java classes.
I'm having this xsd:
<?xml version="1.0" encoding="...
0
votes
0
answers
58
views
Failure to download 4 Maven prerequisite files in the gradle section of Android Studio
When Gradle tries to download prerequisite files in Android Studio, it fails to automatically download 4 addresses:
https://repo.maven.apache.org/maven2/androidx/core/core-ktx/1.2.0/core-ktx-1.2.0.pom
...
0
votes
0
answers
90
views
Force Gradle to resolve all dependencies exclusively through our internal Artifactory
We are building a Flutter application, and for the Android platform build, we use Gradle (8.10.2, downloaded from our internal Artifactory). For security and build performance reasons, we want all ...
2
votes
1
answer
195
views
Maven command not working correctly on machine
So, I've been writing unit tests for some code, and I noticed they don't run correctly when I run Maven commands. I don't even get an error. It returns a whole bunch of lines. It seems it's looking ...
0
votes
0
answers
129
views
How can I get Maven Project metadata?
I need to get metadata about Maven projects. Does it have some regisctry/api, like https://registry.npmjs.com/ for npm? Does maven even collect metadata about projects?
I know, that .pom files can be ...
0
votes
0
answers
231
views
mavenrc_pre.cmd file it's ignored when run configuration from eclipse
I have a file mavenrc_pre.cmd in %home% directory that set's the JAVA_HOME env var to a specific jdk version.
If I run, for example:
mvn clean install
from cmd line everything work's ok, but if I run ...
0
votes
0
answers
88
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
41
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
61
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
67
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
414
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
43
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
1
answer
177
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
1
answer
184
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
71
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 ...