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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 18, 20262026-05-18T05:04:20+00:00 2026-05-18T05:04:20+00:00

I’ve seen several projects where I work that use profiles.xml and various {username}.properties in

  • 0

I’ve seen several projects where I work that use profiles.xml and various {username}.properties in the project for developer sandbox settings like the deployment directory for the deploy script, the ports to run on, which database and web service to use, etc. Now that Maven 3 has removed support for profiles.xml, it’s caused me to question this practice altogether. So I have a few questions:

  1. Is there a better mechanism rather than profiles to accomplish this?
  2. If not, do you feel {username}.properties belong in the scm? Sometimes (for example) when a service URL changes, we forget to update all the developers’ properties.
  3. If it’s not a bad idea to have these properties files in the scm, should there be some kind of profile inheritance for settings common between developer sandboxes? How could that be done?
  4. As a side note, do you know why Apache removed support for profiles.xml in Maven 3?
  • 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-18T05:04:20+00:00Added an answer on May 18, 2026 at 5:04 am

    As you said, Maven 3 only has removed the support for external profiles.xml files. You can still use profiles in the settings.xml and, as always, in the pom.xml. Those projects that currently have external profiles.xml files, should move those configurations to the local user’s settings.xml file.

    1) There really isn’t a better mechanism than the profiles configuration for managing environment specific values.

    2) User property files in the scm depends on the content that you have and whether or not that information is sensitive to others who may look at it. If you structure your source tree right, there should be no issue storing it in your SCM.

    3) In the past with other projects I’ve worked on, we kept a separate directory next to the tags, trunk, and branches with SVN called configurations that had a base directory that contained a template of what the configuration file(s) should look like and developers folder and a servers directory. From the base directory, developers would create/branch their own directories under the developers directory that had their own copy of the configuration files. This allowed them to merge changes to the base version and update ‘their’ configuration. This solved a lot of those service URL changes and would allow them to do it on their time.

    4) Not a clue. Could a be a hold over from Maven 1 that they wanted remove.

    Oh, don’t forget, with Maven 2.2 and 3.0, you can encrypt values in the settings.xml.

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

Sidebar

Related Questions

No related questions found

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.