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

Make Shrinkwrap resolver work in a modular environment

    XMLWordPrintable

Details

    • Enhancement
    • Resolution: Done
    • Major
    • 2.1.0
    • 1.1.0-alpha-1
    • maven
    • None

    Description

      The subsystem I'm building requires dependencies of my war to downloaded and resolved at runtime or deploy time.

      So, that means that I need to create a set of JBoss AS7 modules for Shrinkwrap resolver. However, the way classloader works to load META-INF/services/org.jboss.shrinkwrap.resolver.api.maven.MavenDependencyResolver is a bit crap cos it uses thread context classloader in DependencyBuilderInstantiator.

      Can this be rewritten so that classloading can work in a modular environment as well?

      The problem is that the thread context classloader at runtime is:

      ModuleClassLoader for Module "org.jboss.as.server:main" from local module loader @5d2412e7 (roots: ...)

      I can probably workaround this setting the module's classloader as thread context classloader temporarily, but this is not nice.

      Thoughts?

      Attachments

        Activity

          People

            kpiwko Karel Piwko
            rh-ee-galder Galder ZamarreƱo
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: