mirror of https://github.com/apache/archiva.git
[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:
parent
b50571285c
commit
9667db350b
|
@ -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">
|
||||||
|
<plugin>
|
||||||
|
<groupId>${model.groupId}</groupId>
|
||||||
|
<artifactId>${model.artifactId}</artifactId>
|
||||||
|
<version>${version}</version>
|
||||||
|
</plugin>
|
||||||
|
</pre>
|
||||||
|
</c:when>
|
||||||
|
<c:otherwise>
|
||||||
<pre class="pom">
|
<pre class="pom">
|
||||||
<dependency>
|
<dependency>
|
||||||
<groupId>${model.groupId}</groupId>
|
<groupId>${model.groupId}</groupId>
|
||||||
<artifactId>${model.artifactId}</artifactId>
|
<artifactId>${model.artifactId}</artifactId>
|
||||||
<version>${version}</version><c:if test="${model.packaging != 'jar'}">
|
<version>${version}</version><c:if test="${model.packaging != 'jar'}">
|
||||||
<type>${model.packaging}</type></c:if>
|
<type>${model.packaging}</type></c:if>
|
||||||
</dependency>
|
</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)
|
||||||
|
|
Loading…
Reference in New Issue