You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@maven.apache.org by ol...@apache.org on 2008/05/02 22:40:52 UTC

svn commit: r652901 - in /maven/plugins/trunk/maven-invoker-plugin/src/site: apt/examples/fast-use.apt site.xml

Author: olamy
Date: Fri May  2 13:40:52 2008
New Revision: 652901

URL: http://svn.apache.org/viewvc?rev=652901&view=rev
Log:
add documentation on how to have a faster build with the plugin


Added:
    maven/plugins/trunk/maven-invoker-plugin/src/site/apt/examples/fast-use.apt   (with props)
Modified:
    maven/plugins/trunk/maven-invoker-plugin/src/site/site.xml

Added: maven/plugins/trunk/maven-invoker-plugin/src/site/apt/examples/fast-use.apt
URL: http://svn.apache.org/viewvc/maven/plugins/trunk/maven-invoker-plugin/src/site/apt/examples/fast-use.apt?rev=652901&view=auto
==============================================================================
--- maven/plugins/trunk/maven-invoker-plugin/src/site/apt/examples/fast-use.apt (added)
+++ maven/plugins/trunk/maven-invoker-plugin/src/site/apt/examples/fast-use.apt Fri May  2 13:40:52 2008
@@ -0,0 +1,83 @@
+ ------
+ Fast Build Configuration
+ ------
+ Olivier Lamy
+ ------
+ 01 May 2008
+ ------
+
+Fast Invoker Plugin Configuration
+
+  The plugin use an empty to launch it test. This means by default, the plugin will 
+  download all artifacts from the central repo.
+  <<This default bevahiour can be very long !.>>
+  But you can configure the plugin to download released artifacts from your local repo.
+  NOTE : this will works without optionnal settings with maven >= 2.0.9 because all plugins 
+  versions are locked in the super pom. For older version, you have to lock plugins versions.
+  
+  To enable this feature, you have to add a settings.xml file in your project (by example in src/it/settings.xml)
+  and modify the plugin configuration as this :  
+  
+-------------------
+<project>
+  ...
+  <build>
+    <plugins>
+      <plugin>
+        <groupId>org.apache.maven.plugins</groupId>
+        <artifactId>maven-invoker-plugin</artifactId>
+        <version>1.2</version>
+        <configuration>
+          ...
+          <settingsFile>src/it/settings.xml</settingsFile>
+          ...              
+        </configuration>
+      </plugin>
+    </plugins>
+  </build>
+  ...
+</project>
+-------------------
+
+  The settings must contains the following content :
+  
+-------------------
+<?xml version="1.0"?>
+<settings>
+  <profiles>
+    <profile>
+      <id>apache</id>
+      <activation>
+        <activeByDefault>true</activeByDefault>
+      </activation>      
+      <repositories>
+        <repository>
+          <id>local.central</id>
+          <url>file://@localRepository@</url>
+          <releases>
+            <enabled>true</enabled>
+          </releases>
+          <snapshots>
+            <enabled>false</enabled>
+          </snapshots>             
+        </repository>        
+      </repositories>
+      <pluginRepositories>
+        <pluginRepository>
+          <id>local.central</id>
+          <url>file://@localRepository@</url>
+          <releases>
+            <enabled>true</enabled>
+          </releases>
+          <snapshots>
+            <enabled>false</enabled>
+          </snapshots>          
+        </pluginRepository>
+      </pluginRepositories>
+    </profile>
+  </profiles>
+</settings>
+-------------------  
+  
+
+          
\ No newline at end of file

Propchange: maven/plugins/trunk/maven-invoker-plugin/src/site/apt/examples/fast-use.apt
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: maven/plugins/trunk/maven-invoker-plugin/src/site/apt/examples/fast-use.apt
------------------------------------------------------------------------------
    svn:executable = *

Propchange: maven/plugins/trunk/maven-invoker-plugin/src/site/apt/examples/fast-use.apt
------------------------------------------------------------------------------
    svn:keywords = "Author Date Id Revision"

Modified: maven/plugins/trunk/maven-invoker-plugin/src/site/site.xml
URL: http://svn.apache.org/viewvc/maven/plugins/trunk/maven-invoker-plugin/src/site/site.xml?rev=652901&r1=652900&r2=652901&view=diff
==============================================================================
--- maven/plugins/trunk/maven-invoker-plugin/src/site/site.xml (original)
+++ maven/plugins/trunk/maven-invoker-plugin/src/site/site.xml Fri May  2 13:40:52 2008
@@ -34,6 +34,7 @@
       <item name="Clone Projects" href="examples/clone-projects.html"/>
       <item name="Install Artifacts" href="examples/install-artifacts.html"/>
       <item name="Post Build Script" href="examples/post-build-script.html"/>
+      <item name="Fast Use" href="examples/fast-use.html"/>
     </menu>
     
   </body>