[ https://issues.apache.org/jira/browse/CAMEL-11767?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17644817#comment-17644817 ]
Grzegorz Grzybek edited comment on CAMEL-11767 at 12/8/22 1:58 PM: ------------------------------------------------------------------- For the record - here's how camel-catalog jar is downloaded by {{Grape.grab()}}: {noformat} "main@1" prio=5 tid=0x1 nid=NA runnable java.lang.Thread.State: RUNNABLE at java.io.FileOutputStream.<init>(FileOutputStream.java:222) at java.io.FileOutputStream.<init>(FileOutputStream.java:187) at org.apache.ivy.util.FileUtil.copy(FileUtil.java:275) at org.apache.ivy.util.url.HttpClientHandler.download(HttpClientHandler.java:164) at org.apache.ivy.util.FileUtil.copy(FileUtil.java:254) at org.apache.ivy.plugins.repository.url.URLRepository.get(URLRepository.java:68) at org.apache.ivy.plugins.resolver.RepositoryResolver.get(RepositoryResolver.java:197) at org.apache.ivy.plugins.resolver.BasicResolver.getAndCheck(BasicResolver.java:976) at org.apache.ivy.plugins.resolver.BasicResolver$6.download(BasicResolver.java:1150) at org.apache.ivy.core.cache.DefaultRepositoryCacheManager.download(DefaultRepositoryCacheManager.java:1040) at org.apache.ivy.plugins.resolver.BasicResolver.download(BasicResolver.java:836) at org.apache.ivy.plugins.resolver.RepositoryResolver.download(RepositoryResolver.java:305) at org.apache.ivy.plugins.resolver.IBiblioResolver.download(IBiblioResolver.java:563) at org.apache.ivy.core.resolve.ResolveEngine.downloadArtifacts(ResolveEngine.java:408) at org.apache.ivy.core.resolve.ResolveEngine.resolve(ResolveEngine.java:354) at org.apache.ivy.Ivy.resolve(Ivy.java:522) at groovy.grape.GrapeIvy.getDependencies(GrapeIvy.groovy:442) at groovy.grape.GrapeIvy.resolve(GrapeIvy.groovy:625) at groovy.grape.GrapeIvy.resolve(GrapeIvy.groovy:592) at groovy.grape.GrapeIvy.grab(GrapeIvy.groovy:256) at groovy.grape.GrapeIvy.grab(GrapeIvy.groovy:236) at groovy.grape.Grape.grab(Grape.java:153) at org.apache.camel.catalog.maven.MavenVersionManager.loadVersion(MavenVersionManager.java:119) at org.apache.camel.catalog.maven.MavenVersionManagerManualTest.testLoadVersion(MavenVersionManagerManualTest.java:46) ... {noformat} And the artifact is downloaded into {{~/.groovy/grapes/org.apache.camel/camel-catalog/jars/camel-catalog-2.17.2.jar.part}} (and then renamed of course). was (Author: gzres): For the record - here's how camel-catalog jar is downloaded by {{Grape.grab()}}: {noformat} "main@1" prio=5 tid=0x1 nid=NA runnable java.lang.Thread.State: RUNNABLE at java.io.FileOutputStream.<init>(FileOutputStream.java:222) at java.io.FileOutputStream.<init>(FileOutputStream.java:187) at org.apache.ivy.util.FileUtil.copy(FileUtil.java:275) at org.apache.ivy.util.url.HttpClientHandler.download(HttpClientHandler.java:164) at org.apache.ivy.util.FileUtil.copy(FileUtil.java:254) at org.apache.ivy.plugins.repository.url.URLRepository.get(URLRepository.java:68) at org.apache.ivy.plugins.resolver.RepositoryResolver.get(RepositoryResolver.java:197) at org.apache.ivy.plugins.resolver.BasicResolver.getAndCheck(BasicResolver.java:976) at org.apache.ivy.plugins.resolver.BasicResolver$6.download(BasicResolver.java:1150) at org.apache.ivy.core.cache.DefaultRepositoryCacheManager.download(DefaultRepositoryCacheManager.java:1040) at org.apache.ivy.plugins.resolver.BasicResolver.download(BasicResolver.java:836) at org.apache.ivy.plugins.resolver.RepositoryResolver.download(RepositoryResolver.java:305) at org.apache.ivy.plugins.resolver.IBiblioResolver.download(IBiblioResolver.java:563) at org.apache.ivy.core.resolve.ResolveEngine.downloadArtifacts(ResolveEngine.java:408) at org.apache.ivy.core.resolve.ResolveEngine.resolve(ResolveEngine.java:354) at org.apache.ivy.Ivy.resolve(Ivy.java:522) at groovy.grape.GrapeIvy.getDependencies(GrapeIvy.groovy:442) at groovy.grape.GrapeIvy.resolve(GrapeIvy.groovy:625) at groovy.grape.GrapeIvy.resolve(GrapeIvy.groovy:592) at groovy.grape.GrapeIvy.grab(GrapeIvy.groovy:256) at groovy.grape.GrapeIvy.grab(GrapeIvy.groovy:236) at groovy.grape.Grape.grab(Grape.java:153) at org.apache.camel.catalog.maven.MavenVersionManager.loadVersion(MavenVersionManager.java:119) at org.apache.camel.catalog.maven.MavenVersionManagerManualTest.testLoadVersion(MavenVersionManagerManualTest.java:46) ... {noformat} And the artifact is downloaded into {{~/.groovy/grapes/org.apache.camel/camel-catalog/jars/camel-catalog-2.17.2.jar.part}} > camel-catalog-maven - Maybe use shrinkwrap instead of gradle > ------------------------------------------------------------ > > Key: CAMEL-11767 > URL: https://issues.apache.org/jira/browse/CAMEL-11767 > Project: Camel > Issue Type: Improvement > Components: camel-catalog, tooling > Reporter: Claus Ibsen > Assignee: Grzegorz Grzybek > Priority: Minor > Fix For: 3.x > > > We can look at using shrinkwrap resolver which has a nice API for downloading > Maven JARs. We just need that to be able to download the camel-catalog JAR of > a given version > https://github.com/shrinkwrap/resolver -- This message was sent by Atlassian Jira (v8.20.10#820010)