dion        2003/10/14 16:59:25

  Modified:    xdocs/reference user-guide.xml
  Log:
  Apply MAVEN-931
  
  Revision  Changes    Path
  1.63      +64 -0     maven/xdocs/reference/user-guide.xml
  
  Index: user-guide.xml
  ===================================================================
  RCS file: /home/cvs/maven/xdocs/reference/user-guide.xml,v
  retrieving revision 1.62
  retrieving revision 1.63
  diff -u -r1.62 -r1.63
  --- user-guide.xml    2 Oct 2003 00:06:23 -0000       1.62
  +++ user-guide.xml    14 Oct 2003 23:59:25 -0000      1.63
  @@ -1738,6 +1738,17 @@
   maven-pmd-plugin
   maven-tasklist-plugin
         </source>
  +        <p>If you wish to use the default reports but remove one or add one, the 
  +          preferred method is to use a postGoal for xdoc:register-reports
  +        </p>  
  +        
  +        <source><![CDATA[
  +<postGoal name="xdoc:register-reports">
  +  <attainGoal name="maven-changelog-plugin:deregister"/>  
  +  <attainGoal name="maven-myown-plugin:register"/>  
  +</postGoal>
  +        ]]></source>
  +      
       </subsection>
       <subsection name="Exclusion of All Maven-Generated Content">
         <p>
  @@ -1752,6 +1763,59 @@
           well as links to the numerous Maven-generated reports.
         </p>
       </subsection>
  +    
  +    <subsection name="Class Loaders">
  +        <p>The following table shows the available classloaders :
  +        </p>
  +        <table>
  +          <tr>
  +            <th>Class loader</th>
  +            <th>Description</th>
  +          </tr>
  +          <tr>
  +            <td>&lt;default&gt;</td>
  +            <td>
  +              This class loader is used if none is specified in the dependency.
  +              This means that the dependency is loaded into the plugin's class
  +              loader, making it available to the plugin only.
  +            </td>
  +          </tr>
  +          <tr>
  +            <td><code>root</code></td>
  +            <td>
  +              This is the Ant class loader, and the most common override used in
  +              a plugin. Use this if you need to specify a dependency used by a
  +              custom Ant task used in the plugin.
  +            </td>
  +          </tr>
  +          <tr>
  +            <td><code>root.maven</code></td>
  +            <td>
  +              This is the Maven class loader. Use it if you wish to have the
  +              dependency available to the Maven core.
  +            </td>
  +          </tr>
  +        </table>
  +        <p>Those are also the properties that are used to control which classloader
  +             will be used to load the specified dependencies. 
  +             This may be required if you are writing plugins or
  +             if custom scripts are defined in <code>maven.xml</code>.
  +        </p>
  +        <p>To specify a classloader for a dependency, add a section similar to
  +          the following to your project.xml:
  +        </p>
  +        <source><![CDATA[
  +<dependency>
  +  <groupId>jaxb</groupId>
  +  <artifactId>jaxb-xjc</artifactId>
  +  <properties>
  +    <classloader>root</classloader>
  +  </properties>
  +</dependency>
  +        ]]></source>
  +        
  +      </subsection>
  +    
     </section>
       <!--
       <section name="">
  
  
  

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to