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 5987999
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 22, 20262026-05-22T22:53:48+00:00 2026-05-22T22:53:48+00:00

I have a source repository for which I use maven. Usually I want to

  • 0

I have a source repository for which I use maven. Usually I want to deploy projects to an internal repository, so I have this repository in the parent POM. However, I also need to declare this repository in each project POM so that project can find the parent POM (a relative path to the parent POM only works if the versions are the same).

Sometime I want to deliver code to another party. It needs to end up in their maven repository. However, all of my POMs have a reference to my internal repository, which does not seem proper. Is there a good way to hide my internal repository from the deployments I make to the other party?

I could handle this with profiles (an internal and a foreign profile for which repository I want to deploy to), however, I would need to make a profile for EACH project and not just the parent POM, which is a pain. Maybe this is the best solution however?

  • 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-05-22T22:53:49+00:00Added an answer on May 22, 2026 at 10:53 pm

    You can define a repository URL property in parent pom (for example, ${repository.deploy}). Also create profiles in parent pom (like local and foriegn) which will assign different value to this property.

    In all child project pom files, use the parent defined property for repository URL. This way the other party can switch repository URL by using a different profile at parent level. Does this answer your question?

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

Sidebar

Related Questions

We have a git repository which contains source for a few related Java WARs
I have two projects: Project-Core Project-Source Project-Core POM.xml: <groupId>com.company</groupId> <artifactId>project-core</artifactId> <packaging>jar</packaging> <version>2.1</version> Project-Source POM.xml:
We use subversion, which works great for software projects. We also have a lot
I have a source of python program which doesn't have any documentation or comments.
I have several projects on my development system - some projects are open source,
I use currently use Heroku for rails hosting which uses a Git repository for
I have several projects which are shared between Windows and Mac. The dev machine
I am trying to deploy to a google code mvn repository which requires username/password
I have a bunch of source code checked out from a SVN repository, now
I have a docx file in my SVN repository. Now I want different users

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.