Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8627973
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 12, 20262026-06-12T08:24:59+00:00 2026-06-12T08:24:59+00:00

My team is just starting out with Maven in Java Projects. We now have

  • 0

My team is just starting out with Maven in Java Projects. We now have all the projects using Maven to get dependencies from internet but we wanted to use a Maven repository to share common share java classes we make and package in jars.

I setup a Maven Nexus Server and it looks like it’s working great as a proxy. Next step is to take one of the jars we built and deploy it into local nexus repo, so any developer can share it as a dependency. However I have no idea on where to start.

If I do a mvn install, it puts code into local (My pc) repo, which is not what I’m looking for. I want to install it on the nexus repo, so everyone on my team can access it. Please help me out.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-12T08:25:00+00:00Added an answer on June 12, 2026 at 8:25 am

    You probably know a bit about it, but here is a high-level overview (for others) about setting up a Maven repository.

    Once you have a repository, you need to go back to each one of the dependent projects (or if they share a master pom) and define the repository so it will be added to the source repositories that will be pulled for the builds.

    I have used Apache’s Archiva with good results, and it supports being a “caching proxy” for Maven project requests, such that it will download and collect binary artifacts from upstream repositories if it cannot serve the binary artifact itself. That said, the documentation could be a bit better.

    There are other products, like Artifactory which are regarded well. You might want to consider it a candidate for evaluation.

    Your builds do not need a repository management system, as any ssh server with the right directory structure will do; however, having such a system can make you life easier by automatic caching combined with request proxying, providing a means to manage user access, structuring and managing multiple repositories (development / QA release / General Availablility), and running odd reports that might make management easier (if you use them).

    As far as actually using such a server, there are two “parts” of your pom you will need to modify, and one (possibly) additional file you will need to add.

    1. You will have to reconfigure your project’s <repositories> section to pull from the repositories.
    2. You will have to reconfigure your project’s <distributionManagement> section to deploy to the new repositories.
    3. You will have to modify or create a “settings.xml” file to store the credentials to access the repository.

    Beyond that, it becomes a matter of style. I recommend separating the snapshots from the “releases” by setting up two repositories. This allows you to frequently purge older files from the snapshot repositories without risk to long standing needed release versions.

    Then you need to decide if you are going to cache all items necessary for the build in-house. If so, you need to reconfigure the projects to not pull from “outside” repositories, and download the artifacts that are “missing” into the right directory on your repository. The “automatic proxy cache” feature of many repository management products does exactly this.

    Then you need to decide if you are going to cache all the plugins for the maven system in-house. If so, you need a pluginRepository and if you ever want to deploy a custom plugin, a pluginSnapshotRepository. Yes it sounds like a lot, but it is just a tiny bit more work to do four of these repositories at the same time as it would be to do one.

    Good luck!

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

We have just started out with Team Foundation Server 2008 / Visual Studio Team
I'm just starting out using Subversion on a C# project. I am working on
My team and I were just starting to get the evaluation version of AirPlay
We are slowly rolling out team foundation, and I have to get up to
So my team is just starting to use branches on our project, and we've
Hi just about to get the dev team to start looking at the next
My team (4 people) have just reached a major milestone in our development, putting
I have just begun to use Visual Studio Team System 2008 Database Edition. I'm
I just started using ELMAH and am a fan. My team supports a large
We're a small team starting to use TortiseSVN to manage our web projects. I

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.