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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 13, 20262026-05-13T05:32:13+00:00 2026-05-13T05:32:13+00:00

Correct me if I’m wrong but one normally puts deployment or user-specific properties (e.g.

  • 0

Correct me if I’m wrong but one normally puts deployment or user-specific properties (e.g. development/testserver settings) inside settings.xml. And by specifying which profiles to use, we can change the behaviour of the maven build.

However there are usually settings in the profiles (settings.xml) which should be shared. Since I don’t want to check in settings.xml, I want the maven build to query a database for those profile settings & do the filtering. Is this possible via some plugin ?

  • 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-13T05:32:13+00:00Added an answer on May 13, 2026 at 5:32 am

    Correct me if I’m wrong but one normally puts deployment or user-specific properties (e.g. development/testserver settings) inside settings.xml. And by specifying which profiles to use, we can change the behaviour of the maven build.

    Well, settings.xml is not the best choice for profiles if you don’t want to make your build non portable. You should actually put profiles in the pom.xml of your project instead and use settings.xml for “secret” things only. See chapter 11.5. Tips and Tricks of Sonatype’s Maven book. Actually, I’d suggest to read the whole chapter 11. Build Profiles.

    However there are usually settings in the profiles (settings.xml) which should be shared. Since I don’t want to check in settings.xml, I want the maven build to query a database for those profile settings & do the filtering. Is this possible via some plugin ?

    Well, as I said, putting the profiles in the pom.xml should solve this (and I don’t know if such a plugin exists). An intermediary solution would be to use profiles and filters as described in this blog post but this isn’t much different.

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

Sidebar

Related Questions

Someone please correct me if I'm wrong, but parsing a yyyy/MM/dd (or other specific
Correct me if I'm wrong, but a build is a compile, and not every
correct me if im wrong, but isn't distributed SCMs for OS projects while centralized
Correct me if I am wrong, but this SQL command: create table MYTABLE (ID
Correct me if I am wrong, but it appears that the SyndicationItem.Content is null
Correct me if im wrong but while doing a foreach an IEnumerable<T> creates garbage
Correct me if I am wrong, but seems to me jQuery event handling is
Correct me if I'm wrong, but Server studio doesn't have relationship connectors. Is there
Correct me if I'm wrong, but I'm surprised this hasn't been asked before on
Please correct me if I am wrong but I understand that John McCarthy was

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.