Questions tagged [mvn-repo]

This tag is to describe questions related to Maven Repositories, be it local or on the server.

99 questions
2
votes
1 answer

How to see transitive dependencies for mvnrepository.com?

Let's say I'm interested in using https://mvnrepository.com/artifact/org.apache.avro/avro. How can I find which other dependencies avro will bring in and which version of those dependencies it will bring in. I know I can manually add the dependency…
Ambitious Intern
  • 311
  • 1
  • 3
  • 13
2
votes
1 answer

Is there a way to checkout git repository, to certain folder with maven?

I am attempting to automatize download of repository containing only protocol-buffers (with structure), to "resource" folder for later processing. I need this kind of functionality, to keep my *.proto files separated from c++ and java code, as they…
Black
  • 312
  • 2
  • 15
2
votes
0 answers

Maven: Failed to execute goal on project

I am about to connect my project in Aurelia with my friend's backend built with Maven but I met a problem when I run: mvn spring-boot:run in the project directory. I've never used Maven before. Error description: [ERROR] Failed to execute goal on…
Marta
  • 79
  • 1
  • 6
1
vote
1 answer

Field httpRequest in "project package" required a bean of type 'jakarta.servlet.http.HttpServletRequest' that could not be found

I'm pretty new to Maven and Java itself. I'm trying to run my project's .jar file that is produced after running : maven install clean maven package When I run the jar file, I get the following error : I have tried several solutions online but…
0xD1x0n
  • 686
  • 4
  • 12
  • 31
1
vote
1 answer

Why does the GUI builder do not show the component after I add it?

I try to use the Maven project throw downloading the tamplate from web side. I have already use below command to create the gui files and had succeed. mvn cn1:create-gui-form -DclassName=com.example.myapp.MyGUI Then, I use below command to show…
Yao Chang
  • 31
  • 4
1
vote
1 answer

how to web scraping to get information from mvnrepository.com artifact page, status code 403

https://mvnrepository.com gives information about an artifact such as License, Repository(Central, Atlassian etc), Category etc. Also, in an artifact page, there is information for versions like Vulnerability,Date etc. I would like to parse the…
1
vote
1 answer

shorten maven command in shell script

I have created a shell script which executes maven command. The command looks like this: mvn --ntp gatling:test -Dgatling.simulationClass=scripts.$SIMULATION_CLASS -Denv=${TEST_ENVIRONMENT} -Dscenario="ownerPairing" …
Sajit Gangadharan
  • 707
  • 1
  • 5
  • 16
1
vote
1 answer

Maven check latest version, only release not snapshot

How could I check latest release version of application? I can check version with: mvn help:evaluate -Dexpression=project.version. But this returns snapshot version, is there way to check release versions only? I'm using Nexus repository for the…
mr.Gray
  • 51
  • 5
1
vote
0 answers

mvn install stuck after some percentage while downloading jansi.jar file

I am running a Maven project for which I have a private remote repository using JFrog Artifactory that I have included in my Maven settings.xml file. All the dependencies are getting downloaded successfully but for one particular JAR i.e.…
Rajan Chauhan
  • 461
  • 2
  • 7
  • 18
1
vote
2 answers

Is there a way to avoid re-downloading maven dependencies again and again when we use the Karate project with docker images?

its obvious that normally for our project, when we run the mvn test, then firstly it download the dependencies and store it to our local /home/username/.m2 and then it will be going to use for the next time when we run our mvn test. But we we use…
1
vote
1 answer

mvn clean install giving errors on new local machine

This is quite unexpected, I recently switched to a new machine and while setting up my dev environment, one of my services has been giving this error on running mvn clean install [INFO]…
1
vote
1 answer

mvn command for updating version in dependency and one project that uses the dependency

I'm trying to figure out the best practice for updating the version in a POM file that is used by several other Java projects. I'm new to Java and Maven, but not OOP and semver. I took over a few git repos with Java code using a maven build system.…
cyrf
  • 5,127
  • 6
  • 25
  • 42
1
vote
1 answer

why do I have to remove a dependency from my pom before adding it back and installing to get the latest version of my maven package?

I have a maven package I've hosted on GitHub package registry. Whenever I make an update to the package I run mvn deploy to publish the changes, but if I simply run mvn install on the dependent application it doesn't seem to install the latest…
Taylor Burke
  • 424
  • 4
  • 15
1
vote
1 answer

Maven - How create project from archetype

I am new to maven a I have to create project from archetype archetype-2jse-simple-1.1.1, i have it in my local directory. Can you help me what console commands in terminal should I use. I only know that I have to use mvn archetype:generate. I tried…
Hanscz35
  • 11
  • 3