2 ~ Licensed to the Apache Software Foundation (ASF) under one
3 ~ or more contributor license agreements. See the NOTICE file
4 ~ distributed with this work for additional information
5 ~ regarding copyright ownership. The ASF licenses this file
6 ~ to you under the Apache License, Version 2.0 (the
7 ~ "License"); you may not use this file except in compliance
8 ~ with the License. You may obtain a copy of the License at
10 ~ http://www.apache.org/licenses/LICENSE-2.0
12 ~ Unless required by applicable law or agreed to in writing,
13 ~ software distributed under the License is distributed on an
14 ~ "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
15 ~ KIND, either express or implied. See the License for the
16 ~ specific language governing permissions and limitations
20 <%@ taglib prefix="decorator" uri="http://www.opensymphony.com/sitemesh/decorator" %>
21 <%@ taglib prefix="page" uri="http://www.opensymphony.com/sitemesh/page" %>
22 <%@ taglib prefix="s" uri="/struts-tags" %>
23 <%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
24 <%@ taglib prefix="redback" uri="http://plexus.codehaus.org/redback/taglib-1.0" %>
25 <%@ taglib prefix="my" tagdir="/WEB-INF/tags" %>
26 <%@ taglib prefix="archiva" uri="http://archiva.apache.org" %>
28 <page:applyDecorator name="default">
32 <title>Browse Repository</title>
38 <s:set name="model" value="model"/>
40 <c:when test="${model.packaging == 'maven-plugin'}">
41 <c:url var="imageUrl" value="/images/mavenplugin.gif"/>
42 <c:set var="packageName">Maven Plugin</c:set>
44 <c:when test="${model.packaging == 'pom'}">
45 <c:url var="imageUrl" value="/images/pom.gif"/>
46 <c:set var="packageName">POM</c:set>
48 <%-- These types aren't usually set in the POM yet, so we fudge them for the well known ones --%>
49 <c:when test="${model.packaging == 'maven-archetype' or model.groupId == 'org.apache.maven.archetypes'}">
50 <c:url var="imageUrl" value="/images/archetype.gif"/>
51 <c:set var="packageName">Maven Archetype</c:set>
53 <c:when test="${model.packaging == 'maven-skin' or model.groupId == 'org.apache.maven.skins'}">
54 <c:url var="imageUrl" value="/images/skin.gif"/>
55 <c:set var="packageName">Maven Skin</c:set>
57 <%-- Must be last so that the above get picked up if possible --%>
58 <c:when test="${model.packaging == 'jar'}">
59 <c:url var="imageUrl" value="/images/jar.gif"/>
60 <c:set var="packageName">JAR</c:set>
63 <c:url var="imageUrl" value="/images/other.gif"/>
64 <c:set var="packageName"></c:set>
67 <img src="${imageUrl}" width="66" height="66" alt="${packageName}" title="${packageName}" style="float: left"/>
71 <c:when test="${empty (model.name)}">
80 <div id="contentArea">
84 <s:url action="showArtifact">
85 <s:param name="groupId" value="%{groupId}"/>
86 <s:param name="artifactId" value="%{artifactId}"/>
87 <s:param name="version" value="%{version}"/>
90 <my:currentWWUrl url="${url}">Info</my:currentWWUrl>
92 <s:url action="showArtifactDependencies">
93 <s:param name="groupId" value="%{groupId}"/>
94 <s:param name="artifactId" value="%{artifactId}"/>
95 <s:param name="version" value="%{version}"/>
98 <my:currentWWUrl url="${url}">Dependencies</my:currentWWUrl>
100 <s:url action="showArtifactDependencyTree">
101 <s:param name="groupId" value="%{groupId}"/>
102 <s:param name="artifactId" value="%{artifactId}"/>
103 <s:param name="version" value="%{version}"/>
106 <my:currentWWUrl url="${url}">Dependency Tree</my:currentWWUrl>
108 <s:url action="showArtifactDependees">
109 <s:param name="groupId" value="%{groupId}"/>
110 <s:param name="artifactId" value="%{artifactId}"/>
111 <s:param name="version" value="%{version}"/>
114 <my:currentWWUrl url="${url}">Used By</my:currentWWUrl>
116 <s:url action="showArtifactMailingLists">
117 <s:param name="groupId" value="%{groupId}"/>
118 <s:param name="artifactId" value="%{artifactId}"/>
119 <s:param name="version" value="%{version}"/>
122 <my:currentWWUrl url="${url}">Mailing Lists</my:currentWWUrl>
123 <%-- POSTPONED to 1.0-alpha-2
124 <redback:ifAnyAuthorized permissions="archiva-access-reports">
126 <s:url action="showArtifactReports">
127 <s:param name="groupId" value="%{groupId}"/>
128 <s:param name="artifactId" value="%{artifactId}"/>
129 <s:param name="version" value="%{version}"/>
132 <my:currentWWUrl url="${url}">Reports</my:currentWWUrl>
133 </redback:ifAnyAuthorized>
139 <div class="sidebar3">
140 <archiva:downloadArtifact groupId="${groupId}" artifactId="${artifactId}" version="${model.version}" />
149 </page:applyDecorator>