All Questions
1,566
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
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 ...
-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
47
views
Build jar with dll in pom or external dll file - unable to solve
I'm fighting with this issue for a few days already, so I'm really in need of your help, girls and boys.
I did a simple stuff in Java, that works till I'm using my IDE (IntelliJ) - I can run my ...
0
votes
0
answers
115
views
mvn version is failing while setting the new version
When i am trying to update internal version using mvn versions:set -DnewVersion i am getting below error.
In my automation CI/CD script i am trying to upgrade maven internal version.
I am new to this, ...
0
votes
1
answer
221
views
Unable to push maven artifact to gitlab
I am trying to push an artifact from laptop to gitlab artifactory and not able to push because of the following error.
Error details in terminal:
--- maven-deploy-plugin:2.8.2:deploy (default-...
1
vote
1
answer
180
views
Download dependency from remote maven repository
I have the following pom.xml file which requires downloading various dependencies from azure feed.
pom.xml
When I want to execute mvn install, I get the next error:
Execution rest-server-generation ...
1
vote
1
answer
570
views
How can I use the Maven Assembly Plugin to create a ZIP archive that includes a specific folder and all of its files?
I have a project with structure like this
I am currently attempting to create a compressed zip folder named "wso2mi.zip" and my goal is to include all files and directories that are ...
0
votes
0
answers
417
views
An API incompatibility was encountered while executing org.sonarsource.scanner.maven:sonar-maven-plugin:3.9.1.2184:sonar: java.lang.UnsupportedClass
I'm getting this error when trying to build the project artifact with command "mvn clean install -U":
An API incompatibility was encountered while executing
org.sonarsource.scanner.maven:...