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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 19, 20262026-05-19T23:48:21+00:00 2026-05-19T23:48:21+00:00

I have a Maven2 project, with a pom.xml and a profiles.xml files at the

  • 0

I have a Maven2 project, with a pom.xml and a profiles.xml files at the same level.
The project configuration is provided by Maven profile properties:

dbhost=${dbhost}
dbport=${dbport}
// etc.

Locally, each developper customize his build in the “profiles.xml”. It works well.

For continuous integration, a ci “profiles.xml” has been put on our SCM server (at the same level as the pom.xml).

The problem is that Hudson simply ignores this file during the Maven build, whereas the “-P hudsonprofile” is correctly set.

If the same profile is moved directly in the “pom.xml”, or in the global “settings.xml” the build works. So we already have a solution.

I also know that the “profiles.xml” file is deprecated, but I would like to understand why the comportement is different between Hudson build and my local build…

Note: Hudson and my local build use the same version of Maven (2.2.1).

  • 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-19T23:48:22+00:00Added an answer on May 19, 2026 at 11:48 pm

    Sounds like a classpath problem to me. Why would Hudson not notice the profiles.xml? The only reason I can think of is that Hudson uses a different classpath than you would expect.

    A best practice (atleast in my experience), is to try to build the project from the command line on your CI server (where Hudson runs). If that works, then Hudson should work too. Unless you have configured Maven in Hudson weirdly.

    Also, adjusting the settings.xml of Maven is not that bad. At least, if you dont expect it to change too much. Even so, it is fixed quickly.

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

Sidebar

Related Questions

I have a maven project with a module /myProject pom.xml /myModule pom.xml /foo bar.txt
I have integrated Cargo plugin in my maven 2 project POM.xml. During hot deployment
Currently, I have a Maven project which inherits from a parent pom defining two
I have a maven project A which uses jar files of another project B
I have Maven multi-module project with such structure: parent-pom-project -- module1 -- module2 At
This is the directory structure of the project (maven2 is used): pom.xml /src /main
Hey, I'm talking about profiles within pom.xml of a project. Could please anybody explain
I'm trying to reduce copy/pasting in our maven pom files. We have one master
I have a maven pom file for an open source project. This pom file
I have a multi-module project, and I am using profiles in the parent pom

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.