You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@karaf.apache.org by "Jean-Baptiste Onofré (JIRA)" <ji...@apache.org> on 2018/03/07 13:24:00 UTC
[jira] [Commented] (KARAF-4613) Cave maven wrapper doesn't serve
from cave, but from local maven.
[ https://issues.apache.org/jira/browse/KARAF-4613?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16389539#comment-16389539 ]
Jean-Baptiste Onofré commented on KARAF-4613:
---------------------------------------------
That's normal: Cave Maven is a proxy, it doesn't actually use the Cave Repository (for now), but proxy the repositories defined in {{etc/org.ops4j.pax.url.mvn.cfg}}.
I'm refactoring Cave Maven support allowing:
1. a proxy behavior
2. a "classic" Maven repository with storage in the Cave repository.
> Cave maven wrapper doesn't serve from cave, but from local maven.
> -----------------------------------------------------------------
>
> Key: KARAF-4613
> URL: https://issues.apache.org/jira/browse/KARAF-4613
> Project: Karaf
> Issue Type: Bug
> Components: cave-server
> Affects Versions: cave-4.1.0
> Environment: Windows 7, Java 8
> Reporter: Rakesh R. Prasad
> Assignee: Jean-Baptiste Onofré
> Priority: Major
> Fix For: cave-4.1.1
>
>
> If local maven repository is cleared, then cave wrapper stops serving artifacts, even though they exist inside cave.
> Steps to reproduce
> {noformat}
> cave:repository-create -l c:/temp/cave batcave
> cave:repository-populate batcave file:/C:/Users/Rakesh/.m2/repository/commons-lang/commons-lang/1.0
>
> In Chrome, the following URL, downloads the jar
> http://localhost:8181/cave/maven/commons-lang/commons-lang/1.0/commons-lang-1.0.jar
> Now, if I delete the local maven folder
> C:/Users/Rakesh/.m2/repository/commons-lang/commons-lang/1.0
>
> And go again to
> http://localhost:8181/cave/maven/commons-lang/commons-lang/1.0/commons-lang-1.0.jar
> This time, I get only a blank response.
> {noformat}
--
This message was sent by Atlassian JIRA
(v7.6.3#76005)