---------- Maven One Plugin ---------- Brett Porter ---------- 1 November 2005 ---------- Maven One Plugin The Maven One Plugin is a plugin for Maven 2.0 that performs some integration tasks with Maven 1.x: * Provides a packaging for Maven 1.x plugins, building using Maven 2.0 * Provides a hook for installation that will copy built artifacts into a local Maven 1.x repository, for concurrent development with Maven 1.x projects * Maven 1.x Plugin Packaging To build a Maven 1.x plugin using Maven 2.x, you need to include this plugin in the build section, and use a <<>> of <<>>. The following is an example of such a POM: ------- 4.0.0 maven maven-site-plugin maven-one-plugin 1.6-SNAPSHOT maven-one-plugin true ------- * Maven 1.x Local Repository Installation To have your artifact installed into a local Maven 1.x repository, add the following lifecycle binding to your POM: ------- ... maven-one-plugin install-maven-one-repository ... ------- <> The plugin section can be shared with the one above in the case of building a Maven 1.x plugin. This will read the local repository location from <<<~/build.properties>>>, defaulting to <<<~/.maven/repository>>>. * Maven 1.x Remote Repository Deployment To have your artifact deployed into an additional remote Maven 1.x repository, add the following lifecycle binding to your POM: ------- ... maven-one-plugin scp://cvs.apache.org/repository deploy-maven-one-repository ... ------- This will not read any settings from the Maven 1.x properties, so the URL is required. If configuring server settings in your local configuration, use the ID of <<>>. This can be overridden using the <<>> configuration element. For more information, see the {{{index.html} Goal Reference}}.