Moved source plugins to main plugin

git-svn-id: https://svn.apache.org/repos/asf/maven/maven-1/plugins/trunk@378781 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
snicoll committed 2006-02-18 21:28:29 +00:00
1 parent 9329c2c354
commit 009e7bceab
23 files changed
+1363

No files matched your search

+30
View File
@@ -0,0 +1,30 @@
<?xml version="1.0" encoding="ISO-8859-1"?>
<!--
/*
* Copyright 2001-2004 The Apache Software Foundation.
*
* Licensed 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>Changes</title>
<author email="snicoll@apache.org">Stephane Nicoll</author>
</properties>
<body>
<release version="1.0" date="in SVN">
<action dev="snicoll" type="add">Initial release.</action>
</release>
</body>
</document>
+31
View File
@@ -0,0 +1,31 @@
<?xml version="1.0" encoding="UTF-8"?>
<document>
<properties>
<title>Maven Source Plug-in Goals</title>
</properties>
<body>
<goals>
<goal>
<name>source</name>
<description>Create the source archive.</description>
</goal>
<goal>
<name>source:deploy</name>
<description>Deploy the source archive to the remote repository</description>
</goal>
<goal>
<name>source:install</name>
<description>Install the source archive in the local repository</description>
</goal>
<goal>
<name>source:source</name>
<description>Create the source archive.</description>
</goal>
<goal>
<name>source:download</name>
<description>Download a source archive from the repository.</description>
</goal>
</goals>
</body>
</document>
+73
View File
@@ -0,0 +1,73 @@
<?xml version="1.0"?>
<!--
/*
* Copyright 2001-2005 The Apache Software Foundation.
*
* Licensed 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>Maven Source Plug-in</title>
<author email="snicoll@apache.org">Stephane Nicoll</author>
</properties>
<body>
<section name="Maven Source Plug-in">
<p>
This plug-in builds an archive of the source code. It is based
on the maven.compile.src.set property so every directory specified
in this property is used to generate the source archive.
</p>
<p>
The generated source archive will be deployed at
<code>${groupId}/java-sources/${artifactId}-{version}-sources.jar</code>.
</p>
<p>
For more information on the functionality provided by this plugin,
please see the <a href="goals.html">Goals</a> document.
</p>
<p>
For more information on how to customise the functionality provided
by this plugin, please see the <a href="properties.html">properties</a>
document.
</p>
</section>
<section name="Downloading a source archive">
<p>
Similarly to the plugin plugin, the source plugin is able to download
a source archive from the configured repository(ies). The following
parameters might be set at runtime:
<ul>
<li>groupId: the groupId of the source archive to download</li>
<li>artifactId: the artifactId of the source archive to download</li>
<li>version: the version of the source archive to download</li>
<li>ignoreErrors (optional - default to false): specificy if the build should fail if the source archive is not found</li>
<li>backwardCompatible (optional - default to false): specificy if the old source archive location should be checked as well</li>
</ul>
</p>
<p>
Example:
</p>
<source>
maven source:download
-DartifactId=someArtifact
-DgroupId=theGroup
-Dversion=1.0.0-SNAPSHOT
-DbackwardCompatible=true
</source>
</section>
</body>
</document>
+17
View File
@@ -0,0 +1,17 @@
<?xml version="1.0" encoding="UTF-8"?>
<project name="Maven Source Plug-in">
<title>Maven Source Plug-in</title>
<body>
<links>
<item href="http://maven.apache.org/" name="Maven">
</item>
</links>
<menu name="Overview">
<item href="/goals.html" name="Goals">
</item>
<item href="/properties.html" name="Properties">
</item>
</menu>
</body>
</project>
+34
View File
@@ -0,0 +1,34 @@
<?xml version="1.0" encoding="UTF-8"?>
<document>
<properties>
<title>Maven Source Plug-in Properties</title>
</properties>
<body>
<section name="Maven Source Plug-in Settings">
<table>
<tr>
<th>Property</th>
<th>Optional?</th>
<th>Description</th>
</tr>
<tr>
<td>maven.source.excludes</td>
<td>Yes</td>
<td>
<p>Default value is
<code>**/package.html</code>.</p>
</td>
</tr>
<tr>
<td>maven.source.final.name</td>
<td>Yes</td>
<td>
<p>Default value is
<code>${maven.final.name}-sources.jar</code>.</p>
</td>
</tr>
</table>
</section>
</body>
</document>