o documentation for MNG-2835

git-svn-id: https://svn.apache.org/repos/asf/maven/components/trunk@512892 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Jason van Zyl 2007-02-28 18:23:03 +00:00
parent fb7988c21c
commit 98dea7e4d6
1 changed files with 22 additions and 0 deletions

View File

@ -17,7 +17,29 @@ A Simple Example
%{snippet|id=simple-embedder-example|url=http://svn.apache.org/repos/asf/maven/components/trunk/maven-embedder/src/test/java/org/apache/maven/embedder/MavenEmbedderExampleTest.java}
A Note on Configuring Settings
Currently there is a notion of a user settings, and a global settings where either can specify information about the
following:
* Local Repository
* Proxies
* Mirrors
* Server Configurations
* Plugin Groups
If you are using the embedder it is entirely your responsibility to take user and global settings information and specify
it in the embedder configuration. The embedder carries with it <<<no>>> defaults about where these are located and how
they are used. If you want your embedded use of Maven to mimic the behavior of the Maven CLI insofar as settings use
then use the following code:
%{snippet|id=mimic-cli|url=http://svn.apache.org/repos/asf/maven/components/trunk/maven-embedder/src/test/java/org/apache/maven/embedder/MavenEmbedderExampleTest.java}
Also note that the user and global settings are merged, and the user settings are dominant.