You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@maven.apache.org by jv...@apache.org on 2008/04/16 06:35:55 UTC

svn commit: r648506 - /maven/site/trunk/src/site/apt/embedder.apt

Author: jvanzyl
Date: Tue Apr 15 21:35:53 2008
New Revision: 648506

URL: http://svn.apache.org/viewvc?rev=648506&view=rev
Log:
o adding the embedder documentation to the standard site

Added:
    maven/site/trunk/src/site/apt/embedder.apt   (with props)

Added: maven/site/trunk/src/site/apt/embedder.apt
URL: http://svn.apache.org/viewvc/maven/site/trunk/src/site/apt/embedder.apt?rev=648506&view=auto
==============================================================================
--- maven/site/trunk/src/site/apt/embedder.apt (added)
+++ maven/site/trunk/src/site/apt/embedder.apt Tue Apr 15 21:35:53 2008
@@ -0,0 +1,54 @@
+ ------
+ The Maven Embedder
+ ------
+ Jason van Zyl
+ ------
+ 26 February 2007
+ ------
+
+The Maven Embedder
+
+ The Maven Embedder is used by the Maven CLI, by IDE integration projects like {{{http://mevenide.codehaus.org}Mevenide}}
+ and potentially any tool that needs to embed Maven's capabilities. You could embed Maven in a Continuous Integration
+ application to run Maven build, an application lifecycle management (ALF) tool, or Ant tasks that utilize Maven's
+ functionality. These are just a few examples of what the Maven Embedder can be used for.
+
+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.
+
+Accessing the Underlying Plexus Container
+
+  Though it is not recommended for general use, it is possible to get at the underlying Plexus Container instance if you
+  wish to lookup custom components. The Maven Embedder was specifically designed to be used for Maven and not a general
+  purpose use of Plexus. So if you use this method then you use it at your peril. You can access the Plexus Container
+  using the following:
+
+%{snippet|id=plexus-container|url=http://svn.apache.org/repos/asf/maven/components/trunk/maven-embedder/src/test/java/org/apache/maven/embedder/MavenEmbedderExampleTest.java}
+

Propchange: maven/site/trunk/src/site/apt/embedder.apt
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: maven/site/trunk/src/site/apt/embedder.apt
------------------------------------------------------------------------------
    svn:keywords = "Author Date Id Revision"