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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 16, 20262026-06-16T12:54:12+00:00 2026-06-16T12:54:12+00:00

Does anyone know why maven on Centos 5.x can’t find user settings unless I

  • 0

Does anyone know why maven on Centos 5.x can’t find user settings unless I use ‘-s’?

  • Home is set to /home/build
  • $HOME/.m2/settings.xml exists, owned by user, can be read by user
  • I’m using a fresh download of mvn 3.0.4 (fails with 3.0.3 too)

I suspect something in my environment is getting in the way, but I’m not sure what.

Can’t find user Settings — not using “-s”

[build@...]$ echo $HOME; mvn clean -X|grep setting 

/home/build
[DEBUG] Reading global settings from .../apache-maven-3.0.4/conf/settings.xml
[DEBUG] Reading user settings from ?/.m2/settings.xml
[DEBUG]   Imported: org.apache.maven.settings < plexus.core

Finds user Settings — “-s” used

[build@...]$ echo $HOME; mvn clean -X -s $HOME/.m2/settings.xml|grep setting 

/home/build
[DEBUG] Reading global settings from .../apache-maven-3.0.4/conf/settings.xml
[DEBUG] Reading user settings from /home/build/.m2/settings.xml
[DEBUG]   Imported: org.apache.maven.settings < plexus.core

Thanks

Peter

  • 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-16T12:54:13+00:00Added an answer on June 16, 2026 at 12:54 pm

    “su” command lies at the core of this particular issue. “su” can execute commands as another user. When used without the “-“ it doesn’t process startup scripts for that use which can lead to hybrid environments in some cases.

    When writing an init.d startup script be sure to use “su -” when invoking commands or your build system user will execute using root user’s environment variables (HOME included)

    Problem on Some OS because BAMBOO_USER operates with root user’s environment

        su $BAMBOO_USER -c "cd ${BAMBOO_HOME}; nohup java -Dbamboo.home=${BAMBOO_HOME} ... &"
    

    More proper init.d script

        su - $BAMBOO_USER -c "cd ${BAMBOO_HOME}; nohup java -Dbamboo.home=${BAMBOO_HOME} ... &"
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Does anyone know of any websites, or (preferably) downloadable packages that you can use
Does anyone know the Maven build goals dependencies and order? For instance, if I
Does anyone know any simple yet effective way to build all Maven projects in
Does anyone know of a GWT plugin for SBT? I can't seem to find
Does anyone know where I can download the Java communications API? On the repo1.maven.org
Does anyone know what the RESTLET maven dependencies are? None of the entries on
Does anyone know how to read a x.properties file in Maven. I know there
Does anyone know whether there are any tools that re like Maven - I'm
Does anyone know whether there is some sort of central registry for maven sites?
Does anyone know if there is a hudson plugin for post build merging into

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.