Hi,

Weird, it works for me, let me double check my maven/aether config.

Regards
JB

On 01/02/2020 00:06, yuri wrote:
> Yes, i have @snapshot on the repo in pax.url.mvn.cfg file:
> 
>      org.ops4j.pax.url.mvn.repositories= \
>          https://repo1.maven.org/maven2@id=central, \
>        http://localhost:8181/repo/caveRepo/@snapshots@id=scmap-release
> 
> Even though karaf still can't find snapshot artifacts after kar was
> exploded, i managed to download the artifact from cave to local repo with
> maven:
>      "mvn dependency:get -Dversion=1.0.BUILD-SNAPSHOT..."
> 
> 
> 
> Another issue: i uploaded snapshot artifact to cave with maven:
> 
>      "mvn deploy:deploy-file -DgroupId=org.springframework
> -DartifactId=spring-core -Dversion=5.2.4.BUILD-SNAPSHOT -Dpackaging=jar
> -Durl=http://localhost:8181/repo/caveRepo
> -Dfile={user.home}/.m2/repository/org/springframework/spring-core/5.2.4.BUILD-SNAPSHOT_tmp/spring-core-5.2.4.BUILD-SNAPSHOT.jar"
> 
> in cave repo i see this files (without timestamp now!):
> 
>      maven-metadata-local.xml
>      maven-metadata-local.xml.md5
>      maven-metadata-local.xml.sha1
>      resolver-status.properties
>      spring-core-5.2.4.BUILD-SNAPSHOT.jar
>      spring-core-5.2.4.BUILD-SNAPSHOT.pom
>      spring-core-5.2.4.BUILD-SNAPSHOT.jar.md5
>      spring-core-5.2.4.BUILD-SNAPSHOT.jar.sha1
>      spring-core-5.2.4.BUILD-SNAPSHOT.pom.md5
>      spring-core-5.2.4.BUILD-SNAPSHOT.pom.sha1
> 
> 
> then i tried to download this artifact from cave to local repo with maven:
> 
>      "mvn dependency:get
> -DremoteRepositories=http://localhost:8181/repo/caveRepo
> -DgroupId=org.springframework -DartifactId=spring-core
> -Dversion=5.2.4.BUILD-SNAPSHOT -Dtransitive=false"
> 
> and it failed:
> 
>      [ERROR] Failed to execute goal
> org.apache.maven.plugins:maven-dependency-plugin:2.8:get (default-cli) on
> project standalone-pom: Couldn't download artifact: Could not find artifact
> org.springframework:spring-core:jar:5.2.4.BUILD-20200131.224831-1 in temp
> (http://localhost:8181/repo/caveRepo)
> ...
>      [ERROR] from the specified remote repositories:
>      [ERROR]   central (https://repo.maven.apache.org/maven2, releases=true,
> snapshots=false),
>      [ERROR]   temp (http://localhost:8181/repo/caveRepo, releases=true,
> snapshots=true)
> ...
> 
> 
> 
> --
> Sent from: http://karaf.922171.n3.nabble.com/Karaf-User-f930749.html
> 

-- 
Jean-Baptiste Onofré
[email protected]
http://blog.nanthrax.net
Talend - http://www.talend.com

Reply via email to