Solved

Maven: settings.xml in defined path

Posted on 2010-08-30
1
632 Views
Last Modified: 2013-11-10
Hi: With Maven, settings.xml would be in ./m2, how could I put settings.xml to somewhere I want.  If I have different projects running in my machine, I do not want same settings.xml serving for every project.  
0
Comment
Question by:JianJunShen
1 Comment
 
LVL 92

Accepted Solution

by:
objects earned 500 total points
ID: 33556404
There are two places where settings.xml is looked for

 $M2_HOME/conf/settings.xml
 ${user.home}/.m2/settings.xml

You can use the --settings and --global-settings to change where it looks

mvn install --settings \somwhere\settings.xml --global-settings /somewhere/else/settings.xml
0

Featured Post

Gigs: Get Your Project Delivered by an Expert

Select from freelancers specializing in everything from database administration to programming, who have proven themselves as experts in their field. Hire the best, collaborate easily, pay securely and get projects done right.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Introduction This article is the second of three articles that explain why and how the Experts Exchange QA Team does test automation for our web site. This article covers the basic installation and configuration of the test automation tools used by…
In this post we will learn how to connect and configure Android Device (Smartphone etc.) with Android Studio. After that we will run a simple Hello World Program.
Viewers will learn one way to get user input in Java. Introduce the Scanner object: Declare the variable that stores the user input: An example prompting the user for input: Methods you need to invoke in order to properly get  user input:
This tutorial explains how to use the VisualVM tool for the Java platform application. This video goes into detail on the Threads, Sampler, and Profiler tabs.

785 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question