Hi, That's not directly related to Cave, but from Maven.
For instance, if you take a look on https://repository.apache.org/content/groups/snapshots/org/apache/karaf/apache-karaf/4.2.9-SNAPSHOT/ (powered by Nexus) you will also see the timestamp for the SNAPSHOT. So, it's exactly the same. Does it work with you use 1.0-SNAPSHOT for instance ? Regards JB On 31/01/2020 15:51, yuri wrote: > Hi! > > Do Karaf 4.2.7 and Cave 4.2.1 work correctly with snapshot artifacts? > > I've built a bundle "hello-bundle-1.0.BUILD-SNAPSHOT.jar", wrapped it in a > feature "hello-feature-1.0.BUILD-features.xml" and packed them in a kar > file. > > Then i've exploded the kar file: > > POST http://localhost:8181/cave/deployer/api/explode > url: file:/repo/caveRepo/hello-feature-1.0.BUILD-SNAPSHOT.kar > repository: > file:///dev/karaf/xxx/apache-karaf-4.2.7/data/cave/repository/caveRepo > > then i've added feature repository to karaf and installed the feature, which > resulted in exception: > > org.apache.karaf.features.internal.util.MultiException: Error: > Error downloading > mvn:my.test.project/hello-bundle/1.0.BUILD-SNAPSHOT > at > org.apache.karaf.features.internal.download.impl.MavenDownloadManager$MavenDownloader.<init>(MavenDownloadManager.java:91) > ... > Suppressed: > shaded.org.eclipse.aether.transfer.ArtifactNotFoundException: Could not find > artifact my.test.project:hello-bundle:jar:1.0.BUILD-SNAPSHOT in > scmap-release (http://localhost:8181/repo/caveRepo/) > ... > > Cave repository contains this artifacts in > "my/test/project/hello-bundle/1.0.BUILD-SNAPSHOT/" directory: > > resolver-status.properties > maven-metadata-caveRepo.xml.sha1 > maven-metadata-caveRepo.xml > maven-metadata.xml.sha1 > maven-metadata.xml.md5 > maven-metadata.xml > hello-bundle-1.0.BUILD-20200131.141800-2-local.xml.sha1 > hello-bundle-1.0.BUILD-20200131.141800-2-local.xml.md5 > hello-bundle-1.0.BUILD-20200131.141800-2-local.xml > hello-bundle-1.0.BUILD-20200131.141800-1-SNAPSHOT.jar.sha1 > hello-bundle-1.0.BUILD-20200131.141800-1-SNAPSHOT.jar.md5 > hello-bundle-1.0.BUILD-20200131.141800-1-SNAPSHOT.jar > > > > -- > 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
