2007-04-10 01:12:11 +00:00

56 lines
2.7 KiB
XML

<?xml version="1.0"?>
<!--
/*
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership.
* The ASF licenses this file to You under the Apache License, Version 2.0
* (the "License"); you may not use this file except in compliance with
* the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
-->
-->
<document>
<properties>
<title>Installation</title>
<author email="aheritier@apache.org">Arnaud Heritier</author>
</properties>
<body>
<section name="How to install the plugin ?">
<p>This plugin isn't bundled in the maven 1 distribution thus you have deploy it in your local installation of maven 1, or you have to define it in your project dependencies (RECOMMENDED).</p>
<p>We suppose that <b><i>CURRENT_VERSION</i></b> is the version of the plugin you want to use. The <a href="changes-report.html">changes</a> report gives you the list of versions actually available.</p>
<p>If you want to use a SNAPSHOT of this plugin, you'll certainly have to add the following remote repositories in your settings (property <code>maven.repo.remote</code>) :</p>
<ul>
<li><code>http://snapshots.dist.codehaus.org/modello/</code> : To acquire snapshots of modello.</li>
<li><code>http://people.apache.org/repo/m1-snapshot-repository/</code> : To acquire snapshots of the modello plugin for m1.</li>
</ul>
<subsection name="In your maven installation">
<p>To install it locally, you just have to launch this command :</p>
<source>maven plugin:download -DgroupId=maven -DartifactId=maven-modello-plugin -Dversion=CURRENT_VERSION</source>
<p>You have to do it on all installations of maven 1 which will be used to build your project.</p>
</subsection>
<subsection name="In a given project">
<p>You can easily ask to maven to download/install/use this plugin in your project. You just have to add in your project POM a dependency to this plugin :</p>
<source><![CDATA[
<dependency>
<groupId>maven</groupId>
<artifactId>maven-modello-plugin</artifactId>
<version>CURRENT_VERSION</version>
<type>plugin</type>
</dependency>]]></source>
</subsection>
</section>
</body>
</document>