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

running shrinkwrap standalone ends up with classloader errors

    XMLWordPrintable

Details

    • Bug
    • Resolution: Unresolved
    • Major
    • None
    • None
    • None
    • None

    Description

      Hi,

      I'm trying to use shrinkwrap in jbang but if I use:

      `org.apache.maven:maven-aether-provider:3.0.5` as dependency I get errors like:

      "Caused by: java.lang.IllegalStateException: Unable to boostrap Aether repository system, missing RepositoryService org.eclipse.aether.RepositorySystem, probably due to missing or invalid Aether dependencies. You are either running from within Maven plugin with Maven 3.0.x version (make sure to update to Maven 3.1.0 or newer) or you have org.apache.maven:maven-aether-provider:3.0.x on classpath shading required binding (make sure to update dependencies in your project).
      "

      I'm not running in a mvn plugin.

      I tried moving to:

      `org.apache.maven:maven-aether-provider:3.3.9`

      but then you get errors like this:

      `java.lang.NoSuchMethodError: org.eclipse.aether.transfer.TransferResource.<init>(Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;Ljava/io/File;Lorg/eclipse/aether/RequestTrace;)V`

      I got two branches with the two different attemps:

      https://github.com/maxandersen/jbang/tree/jbang-aether339

      https://github.com/maxandersen/jbang/tree/jbang

      Any pointers/help/suggestions on it would be very much appreciated.

      Or at least a "minimal working dependency set" to add to run shrinkwrap-resolvers standalone

      Attachments

        Activity

          People

            Unassigned Unassigned
            manderse@redhat.com Max Andersen
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated: