Browse Source

merge -r692978 (MRM-847: display <plugin> for maven-plugin and change title to POM Snippet in artifact info page) from 1.1.x branch


git-svn-id: https://svn.apache.org/repos/asf/archiva/trunk@692979 13f79535-47bb-0310-9956-ffa450edef68
tags/archiva-1.2-M1
Maria Odea B. Ching 15 years ago
parent
commit
cb9792bc7d

+ 15
- 2
archiva-modules/archiva-web/archiva-webapp/src/main/webapp/WEB-INF/jsp/include/artifactInfo.jspf View File

@@ -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)

Loading…
Cancel
Save