]> source.dussan.org Git - archiva.git/commitdiff
[MRM-874]
authorMaria Odea B. Ching <oching@apache.org>
Mon, 8 Sep 2008 01:51:08 +0000 (01:51 +0000)
committerMaria Odea B. Ching <oching@apache.org>
Mon, 8 Sep 2008 01:51:08 +0000 (01:51 +0000)
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

archiva-modules/archiva-web/archiva-webapp/src/main/webapp/WEB-INF/jsp/include/artifactInfo.jspf

index d1509266529bbd85d28f4ee226e51a04f5db8022..309b8420f71611eccdb89c3ca64c6a854b21b5f8 100644 (file)
 </table>
 
 <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">
     &lt;dependency>
       &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;type>${model.packaging}&lt;/type></c:if>
     &lt;/dependency>
 </pre>
+    </c:otherwise>
+  </c:choose>
 </c:if>
 
 <c:if test="${!empty (model.url) || model.organization != null || !empty (model.licenses)