Questions tagged [mvn-repo]

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

56 questions
1320
votes
31 answers

How to add local jar files to a Maven project?

How do I add local jar files (not yet part of the Maven repository) directly in my project's library sources?
Praneel PIDIKITI
  • 15,781
  • 13
  • 36
  • 59
450
votes
19 answers

Get source JARs from Maven repository

Does anyone have any idea if you can find source JARs on Maven repositories?
Ioan Alexandru Cucu
  • 11,149
  • 6
  • 35
  • 39
320
votes
8 answers

Hosting a Maven repository on github

I have a fork of a small open sourced library that I'm working on on github. I'd like to make it available to other developers via maven, but I don't want to run my own Nexus server, and because it's a fork I can't easily deploy it to…
emmby
  • 95,927
  • 63
  • 178
  • 243
301
votes
21 answers

Find Oracle JDBC driver in Maven repository

I want to add the oracle jdbc driver to my project as dependency (runtime scope) - ojdbc14. In MVNrepository site the dependency to put in the POM is: com.oracle ojdbc14
rperez
  • 8,100
  • 10
  • 33
  • 44
56
votes
3 answers

Create local maven repository

I want to create local maven repository. I did the following steps: Installed maven plugin in eclipse Created one folder localrepository in apache server which is accessible using http://< my-domain>/localrepository In my project pom.xml I have…
pbhle
  • 2,614
  • 11
  • 28
  • 38
18
votes
3 answers

What files in a Maven project should be committed to git?

I want to know what files in a Maven project should be committed to git. Am I suppose to perform a mvn clean before committing, or do I add certain files to the .gitignore file?
tyleax
  • 1,106
  • 1
  • 10
  • 33
6
votes
1 answer

Resolution will not be attempted until the update interval of company_repository has elapsed or updates are forced

I already have seen answers to this problems several time and I tried them too. I am trying to use grooy-all and groovy-maven-plugin in my project and the dependencies in pom.xml is:
Srijani Ghosh
  • 3,326
  • 3
  • 28
  • 56
4
votes
3 answers

Maven ant task. Transitive (pom) dependencies and https issue

As you know, starting from 15 January 2020 Maven central repo requires HTTPS-only access. One of our projects is using Ant and Maven Ant Tasks (dependency management only). Yes, I know it's deprecated, but what is the other option for using pom.xml…
FoxyBOA
  • 5,688
  • 6
  • 43
  • 72
3
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
  • 109
  • 1
  • 5
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 deploy:deploy-file publish multiple files to nexus

We want to publish the artifacts using mvn command to the "release" repository in nexus (not SNAPSHOT), however running multiple commands to add new files to one of the version isnt possible (will fail with HTTP 400 error). So, can any one please…
hare krshn
  • 61
  • 8
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
  • 3,246
  • 3
  • 19
  • 32
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
  • 364
  • 2
  • 13
1
vote
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
  • 47
  • 1
  • 1
  • 9
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
1
2 3 4