Uploaded image for project: 'ShrinkWrap Resolvers'
  1. ShrinkWrap Resolvers
  2. SHRINKRES-306

Cannot download from SNAPSHOT repository

XMLWordPrintable

    • Icon: Enhancement Enhancement
    • Resolution: Unresolved
    • Icon: Major Major
    • None
    • 3.1.3
    • None
    • None

      Maven repositories can be marked as for release or snapshot, but Shrinkwrap does not allow to specify this, so you have to "workaround" this by using reflection.

      https://github.com/apache/camel/blob/main/dsl/camel-kamelet-main/src/main/java/org/apache/camel/main/download/MavenDependencyResolver.java#L53

      So you need to use the eclipse aether APIs -

      • org.eclipse.aether.repository.RemoteRepository
      • org.eclipse.aether.repository.RepositoryPolicy

      Where you can specify is the repo is release or snapshot, and then configure them on shrinkwrap via reflection. See the code link above what we have done in Apache Camel.

       

      So what ShrinkWrap need to do is to expose a public API to set the Maven repository as release or snapshot.

       

       

            Unassigned Unassigned
            cibsen@redhat.com Claus Ibsen
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated: