private String artifactId;
private String version = "";
+
+ private String repositoryId = "";
// Advanced hit, if artifact, all versions of artifact
private List artifacts = new ArrayList();
{
return versions;
}
+
+ public String getRepositoryId()
+ {
+ return repositoryId;
+ }
+
+ public void setRepositoryId( String repositoryId )
+ {
+ this.repositoryId = repositoryId;
+ }
}
// Only need to worry about this hit if it is truely new.
hit = new SearchResultHit();
+ hit.setRepositoryId( filecontent.getRepositoryId() );
hit.setUrl( filecontent.getRepositoryId() + "/" + filecontent.getFilename() );
hit.setContext( null ); // TODO: handle context + highlight later.
<%@ attribute name="classifier" %>
<%@ attribute name="scope" %>
<%@ attribute name="versions" type="java.util.List" %>
+<%@ attribute name="repositoryId" %>
<span class="artifact-link">
+ <a href="${pageContext.request.contextPath}/repository/${repositoryId}">${repositoryId}</a>
+ <strong> : </strong>
<archiva:groupIdLink var="${groupId}" includeTop="false" />
- <c:if test="${!empty(artifactId)}">
+ <c:if test="${!empty(artifactId)}">
<c:set var="url">
<ww:url action="browseArtifact" namespace="/">
<ww:param name="groupId" value="%{'${groupId}'}"/>
</c:if>
<c:if test="${!empty(classifier)}">
| <strong>Classifier:</strong> ${classifier}
- </c:if>
+ </c:if>
</span>