archiva-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From och...@apache.org
Subject svn commit: r692978 - /archiva/branches/archiva-1.1.x/archiva-modules/archiva-web/archiva-webapp/src/main/webapp/WEB-INF/jsp/include/artifactInfo.jspf
Date Mon, 08 Sep 2008 01:51:08 GMT
Author: oching
Date: Sun Sep  7 18:51:08 2008
New Revision: 692978

URL: http://svn.apache.org/viewvc?rev=692978&view=rev
Log:
[MRM-874]
submitted by John Michael Luy
-display <plugin> for maven-plugin and change title to POM Snippet in artifact info
page

Modified:
    archiva/branches/archiva-1.1.x/archiva-modules/archiva-web/archiva-webapp/src/main/webapp/WEB-INF/jsp/include/artifactInfo.jspf

Modified: archiva/branches/archiva-1.1.x/archiva-modules/archiva-web/archiva-webapp/src/main/webapp/WEB-INF/jsp/include/artifactInfo.jspf
URL: http://svn.apache.org/viewvc/archiva/branches/archiva-1.1.x/archiva-modules/archiva-web/archiva-webapp/src/main/webapp/WEB-INF/jsp/include/artifactInfo.jspf?rev=692978&r1=692977&r2=692978&view=diff
==============================================================================
--- archiva/branches/archiva-1.1.x/archiva-modules/archiva-web/archiva-webapp/src/main/webapp/WEB-INF/jsp/include/artifactInfo.jspf
(original)
+++ archiva/branches/archiva-1.1.x/archiva-modules/archiva-web/archiva-webapp/src/main/webapp/WEB-INF/jsp/include/artifactInfo.jspf
Sun Sep  7 18:51:08 2008
@@ -109,15 +109,28 @@
 </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)



Mime
View raw message