[MRM-874]

submitted by John Michael Luy
-display <plugin> for maven-plugin and change title to POM Snippet in artifact info page


git-svn-id: https://svn.apache.org/repos/asf/archiva/branches/archiva-1.1.x@692978 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Maria Odea B. Ching 2008-09-08 01:51:08 +00:00
parent b50571285c
commit 9667db350b
1 changed files with 15 additions and 2 deletions

View File

@ -109,15 +109,28 @@
</table> </table>
<c:if test="${model.packaging != 'pom'}"> <c:if test="${model.packaging != 'pom'}">
<h2>POM Dependency Snippet</h2> <h2>POM Snippet</h2>
<c:choose>
<c:when test="${model.packaging == 'maven-plugin'}">
<pre class="pom">
&lt;plugin>
&lt;groupId>${model.groupId}&lt;/groupId>
&lt;artifactId>${model.artifactId}&lt;/artifactId>
&lt;version>${version}&lt;/version>
&lt;/plugin>
</pre>
</c:when>
<c:otherwise>
<pre class="pom"> <pre class="pom">
&lt;dependency> &lt;dependency>
&lt;groupId>${model.groupId}&lt;/groupId> &lt;groupId>${model.groupId}&lt;/groupId>
&lt;artifactId>${model.artifactId}&lt;/artifactId> &lt;artifactId>${model.artifactId}&lt;/artifactId>
&lt;version>${version}&lt;/version><c:if test="${model.packaging != 'jar'}"> &lt;version>${version}&lt;/version><c:if test="${model.packaging != 'jar'}">
&lt;type>${model.packaging}&lt;/type></c:if> &lt;type>${model.packaging}&lt;/type></c:if>
&lt;/dependency> &lt;/dependency>
</pre> </pre>
</c:otherwise>
</c:choose>
</c:if> </c:if>
<c:if test="${!empty (model.url) || model.organization != null || !empty (model.licenses) <c:if test="${!empty (model.url) || model.organization != null || !empty (model.licenses)