MPECLIPSE-60: Now trying to download java sources archives from the remote repositories.

git-svn-id: https://svn.apache.org/repos/asf/maven/maven-1/plugins/trunk@368890 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
snicoll
2006-01-13 22:40:30 +00:00
parent 59fb5043e7
commit 6ab7ecb36d
7 changed files with 355 additions and 5 deletions

View File

@@ -23,6 +23,9 @@
<author email="dion@multitask.com.au">dIon Gillard</author>
</properties>
<body>
<release version="1.11" date="in SVN">
<action dev="snicoll" type="add" issue="MPECLIPSE-60">Now trying to download java sources archives from the remote repositories.</action>
</release>
<release version="1.10" date="2005-12-03">
<action dev="carlos" type="fix">Moved test classpath before main so test classpath resources override main ones</action>
<action dev="epugh" type="fix" issue="MPECLIPSE-68">eclipse:add-maven-repo doesn't update correct Eclipse property file for Eclipse 3.x</action>

View File

@@ -75,14 +75,15 @@
with debugging.
</p>
<p>
The plugin will check if the file located at <code>MAVEN_REPO${groupId}/java-sources/${artifactId}-${version}-sources.jar</code>
exists and will add it as a source attachment.
The plugin is able to download sources archive at <code>${groupId}/java-sources/${artifactId}-${version}-sources.jar</code>
from the repository. This behavior can be disabled by configuring the <code>maven.eclipse.src.download</code> property.
As an example, the source archive for the dependency <code>MAVEN_REPO/eclipse/<em>jars</em>/eclipse-ui-3.0.0<em>.jar</em></code>
will be mapped to <code>MAVEN_REPO/eclipse/<em>java-sources</em>/eclipse-ui-3.0.0<em>-sources.jar</em></code>
</p>
<p>
For backward compatibility the plugin still accepts source archives located at
<code>MAVEN_REPO/${groupId}/src/${artifactId}-${version}.${maven.eclipse.src.extension}</code>.
<code>MAVEN_REPO/${groupId}/src/${artifactId}-${version}.${maven.eclipse.src.extension}</code> but it won't
download them from the repository.
</p>
</subsection>
<subsection name="Generated Source Code">

View File

@@ -135,6 +135,14 @@
<code>MAVEN_REPO${groupId}/java-sources/${artifactId}-${version}-sources.jar</code>
</td>
</tr>
<tr>
<td>maven.eclipse.src.downlad</td>
<td>Yes (default=<code>true</code>)</td>
<td>
Specify if java sources archives need to be downloaded from the configured
remote repositories. Defaults to true.
</td>
</tr>
</table>
<p>
Note that you will need to defined a <code>MAVEN_REPO</code> Java