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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 27, 20262026-05-27T17:19:58+00:00 2026-05-27T17:19:58+00:00

I have a make file that calls ant and maven build files. I’ve had

  • 0

I have a make file that calls ant and maven build files. I’ve had some trouble setting the proxy settings for maven. because there was no settings.xml file that I could find for this make file. So I created on in the {user.hom}/.m2/ directory where it usually looks for one. This did solve the problem, however when I ran sudo make it did not find this file and started having “connection refused” when it tried to download from remote repositories.

Is there a way to set the Maven proxy settings from within the make file so that I do not have to manually create the settings.xml. Maybe within the pom file or some other way.

It seems like it isn’t fully installed but relying on external references for anything that it needs. I have never installed maven or ant and I cannot find the m2_home directory. This make file should be able to run on systems that do not have maven.

  • 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-27T17:19:58+00:00Added an answer on May 27, 2026 at 5:19 pm

    When using sudo, the script is executed as user “root” by default. So the proxy-setup should be in the homedir of root. But i think, its not a good idea to run make with root-privileges.

    According to the Maven-Proxy-Example and the Maven-Pom-Reference, there is no proxy config in Pom.

    This Question seems to comfirm this. Maybe the java.net.useSystemProxies idea can do what you want.

    I’m not sure if this markup only used by the eclipse plugin or generally by maven itself.

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

Sidebar

Related Questions

I have an excel file that I need to make some changes. I need
we have some C++ code that we need to create a make file in.
I have bat-file, that make some operations. How to run this file from Delphi
working on an ANT build file, where I have two macros defined and need
I have some VBA code that opens a webpage, then calls a javascript function
I have an Ant task to call a java process that takes a file
I have a jQuery script in my header that calls a php file. The
I have a php application that has about 50-55 code files. The file that
I have a backup script that calls SVN dump, outputs stderr to a file
I have a function in VIM that calls mksession. I wanted to make it

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.