PR: MPXDOC-191

Include dependencies' scope in dependencies page.


git-svn-id: https://svn.apache.org/repos/asf/maven/maven-1/plugins/trunk@377551 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
ltheussl 2006-02-14 00:37:37 +00:00
parent 4fcbaf2ded
commit 947857a170
7 changed files with 28 additions and 2 deletions

View File

@ -229,4 +229,12 @@ public class DescribedDependency implements Comparable
public String getComment() { public String getComment() {
return dependency.getProperty("comment"); return dependency.getProperty("comment");
} }
/**
* Delegate method from Dependency.getProperty("scope")
*/
public String getScope()
{
return dependency.getProperty("scope");
}
} }

View File

@ -56,6 +56,12 @@
<message key="template.dependencies.section.version" <message key="template.dependencies.section.version"
bundle="plugin-resources.templates.templates" /> bundle="plugin-resources.templates.templates" />
</th> </th>
<th>
<message key="template.dependencies.section.scope"
bundle="plugin-resources.templates.templates" />
</th>
<th> <th>
<message key="template.dependencies.section.url" <message key="template.dependencies.section.url"
bundle="plugin-resources.templates.templates" /> bundle="plugin-resources.templates.templates" />
@ -72,6 +78,11 @@
<td>${dep.ArtifactId}</td> <td>${dep.ArtifactId}</td>
<td>${dep.Type}</td> <td>${dep.Type}</td>
<td>${dep.Version}</td> <td>${dep.Version}</td>
<td>
#if (${dep.scope})
${dep.scope}
#end
</td>
<td> <td>
#if ($dep.Url) #if ($dep.Url)
<a href="${dep.Url}">${dep.Url}</a> <a href="${dep.Url}">${dep.Url}</a>

View File

@ -72,6 +72,7 @@ template.dependencies.section.dependencies=The following is a list of dependenci
template.dependencies.section.artifactID=Artifact ID template.dependencies.section.artifactID=Artifact ID
template.dependencies.section.type=Type template.dependencies.section.type=Type
template.dependencies.section.version=Version template.dependencies.section.version=Version
template.dependencies.section.scope=Scope
template.dependencies.section.url=URL template.dependencies.section.url=URL
template.dependencies.section.comment=Comment template.dependencies.section.comment=Comment

View File

@ -73,6 +73,7 @@ template.dependencies.section.dependencies = Im Folgenden finden Sie eine Liste
template.dependencies.section.artifactID = Artifact ID template.dependencies.section.artifactID = Artifact ID
template.dependencies.section.type = Typ template.dependencies.section.type = Typ
template.dependencies.section.version = Version template.dependencies.section.version = Version
template.dependencies.section.scope=Scope
template.dependencies.section.url = URL template.dependencies.section.url = URL
template.dependencies.section.comment=Kommentar template.dependencies.section.comment=Kommentar

View File

@ -73,6 +73,7 @@ template.dependencies.section.dependencies=Ce qui suit est une liste des d
template.dependencies.section.artifactID=Artefact ID template.dependencies.section.artifactID=Artefact ID
template.dependencies.section.type=Type template.dependencies.section.type=Type
template.dependencies.section.version=Version template.dependencies.section.version=Version
template.dependencies.section.scope=Scope
template.dependencies.section.url=URL template.dependencies.section.url=URL
template.dependencies.section.comment=Commentaire template.dependencies.section.comment=Commentaire

View File

@ -27,6 +27,7 @@
</properties> </properties>
<body> <body>
<release version="1.10-SNAPSHOT" date="in SVN"> <release version="1.10-SNAPSHOT" date="in SVN">
<action dev="ltheussl" type="add" issue="MPXDOC-191">Include dependencies' scope in dependencies page.</action>
<action dev="ltheussl" type="add" issue="MPXDOC-190">Include the new theme <code>maven-stylus.css</code>.</action> <action dev="ltheussl" type="add" issue="MPXDOC-190">Include the new theme <code>maven-stylus.css</code>.</action>
<action dev="ltheussl" type="add" issue="MPXDOC-189">Document the use of pom settings by the xdoc plugin.</action> <action dev="ltheussl" type="add" issue="MPXDOC-189">Document the use of pom settings by the xdoc plugin.</action>
<action dev="ltheussl" type="fix" issue="MPXDOC-130">CVS usage page is blank when using Subversion.</action> <action dev="ltheussl" type="fix" issue="MPXDOC-130">CVS usage page is blank when using Subversion.</action>

View File

@ -761,8 +761,11 @@
The contents of the The contents of the
<a href="http://maven.apache.org/maven-1.x/reference/project-descriptor.html#class_Dependency"><code>&lt;dependency&gt;</code></a> <a href="http://maven.apache.org/maven-1.x/reference/project-descriptor.html#class_Dependency"><code>&lt;dependency&gt;</code></a>
element are used in the <code>Dependencies</code> page. element are used in the <code>Dependencies</code> page.
Note in particular that the optional <code>comment</code> is generated by a Note in particular that the optional <code>comment</code> and <code>scope</code> entries are generated by
<code>&lt;comment&gt;</code> element in the <code>&lt;properties&gt;</code> section. <code>&lt;comment&gt;</code> and <code>&lt;scope&gt;</code> elements in the <code>&lt;properties&gt;</code> section of each dependency.
The <code>scope</code> parameter is not used in Maven 1 but it is
<a href="http://mavenbook.xwiki.com/xwiki/bin/view/Main/BeMaven2Friendly">recommended</a>
to specify it in order to make the transition to Maven 2 easier.
</p> </p>
<p> <p>
The contents of the The contents of the