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 <%@ page contentType="text/html; charset=UTF-8" %>
21 <%@ taglib prefix="decorator" uri="http://www.opensymphony.com/sitemesh/decorator" %>
22 <%@ taglib prefix="page" uri="http://www.opensymphony.com/sitemesh/page" %>
23 <%@ taglib prefix="s" uri="/struts-tags" %>
24 <%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
25 <%@ taglib prefix="redback" uri="http://plexus.codehaus.org/redback/taglib-1.0" %>
26 <%@ taglib prefix="my" tagdir="/WEB-INF/tags" %>
27 <%@ taglib prefix="archiva" uri="/WEB-INF/taglib.tld" %>
29 <page:applyDecorator name="default" encoding="UTF-8">
33 <title>Browse Repository</title>
39 <s:set name="model" value="model"/>
41 <c:when test="${model.packaging == 'maven-plugin'}">
42 <c:url var="imageUrl" value="/images/mavenplugin.gif"/>
43 <c:set var="packageName">Maven Plugin</c:set>
45 <c:when test="${model.packaging == 'pom'}">
46 <c:url var="imageUrl" value="/images/pom.gif"/>
47 <c:set var="packageName">POM</c:set>
49 <%-- These types aren't usually set in the POM yet, so we fudge them for the well known ones --%>
50 <c:when test="${model.packaging == 'maven-archetype' or model.groupId == 'org.apache.maven.archetypes'}">
51 <c:url var="imageUrl" value="/images/archetype.gif"/>
52 <c:set var="packageName">Maven Archetype</c:set>
54 <c:when test="${model.packaging == 'maven-skin' or model.groupId == 'org.apache.maven.skins'}">
55 <c:url var="imageUrl" value="/images/skin.gif"/>
56 <c:set var="packageName">Maven Skin</c:set>
58 <%-- Must be last so that the above get picked up if possible --%>
59 <c:when test="${model.packaging == 'jar'}">
60 <c:url var="imageUrl" value="/images/jar.gif"/>
61 <c:set var="packageName">JAR</c:set>
64 <c:url var="imageUrl" value="/images/other.gif"/>
65 <c:set var="packageName"></c:set>
68 <img src="${imageUrl}" width="66" height="66" alt="${packageName}" title="${packageName}" style="float: left"/>
72 <c:when test="${empty (model.name)}">
81 <div id="contentArea">
85 <s:url action="showArtifact">
86 <s:param name="groupId" value="%{groupId}"/>
87 <s:param name="artifactId" value="%{artifactId}"/>
88 <s:param name="version" value="%{version}"/>
91 <my:currentWWUrl url="${url}">Info</my:currentWWUrl>
93 <s:url action="showArtifactDependencies">
94 <s:param name="groupId" value="%{groupId}"/>
95 <s:param name="artifactId" value="%{artifactId}"/>
96 <s:param name="version" value="%{version}"/>
99 <my:currentWWUrl url="${url}">Dependencies</my:currentWWUrl>
101 <s:url action="showArtifactDependencyTree">
102 <s:param name="groupId" value="%{groupId}"/>
103 <s:param name="artifactId" value="%{artifactId}"/>
104 <s:param name="version" value="%{version}"/>
107 <my:currentWWUrl url="${url}">Dependency Tree</my:currentWWUrl>
109 <s:url action="showArtifactDependees">
110 <s:param name="groupId" value="%{groupId}"/>
111 <s:param name="artifactId" value="%{artifactId}"/>
112 <s:param name="version" value="%{version}"/>
115 <my:currentWWUrl url="${url}">Used By</my:currentWWUrl>
117 <s:url action="showArtifactMailingLists">
118 <s:param name="groupId" value="%{groupId}"/>
119 <s:param name="artifactId" value="%{artifactId}"/>
120 <s:param name="version" value="%{version}"/>
123 <my:currentWWUrl url="${url}">Mailing Lists</my:currentWWUrl>
124 <%-- POSTPONED to 1.0-alpha-2
125 <redback:ifAnyAuthorized permissions="archiva-access-reports">
127 <s:url action="showArtifactReports">
128 <s:param name="groupId" value="%{groupId}"/>
129 <s:param name="artifactId" value="%{artifactId}"/>
130 <s:param name="version" value="%{version}"/>
133 <my:currentWWUrl url="${url}">Reports</my:currentWWUrl>
134 </redback:ifAnyAuthorized>
140 <div class="sidebar3">
141 <archiva:downloadArtifact groupId="${groupId}" artifactId="${artifactId}" version="${model.version}" />
150 </page:applyDecorator>