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

Shrinkwrap 3.1.4 is incompatible with maven-resolver 1.7.0

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: Major Major
    • None
    • 3.1.4
    • maven
    • None
    • Undefined

      When using shrinkwrap-resolver 3.1.4 in combination with maven-resolver 1.7.0, it fails with an exception about being unable to load DefaultSyncContextFactory:

      Caused by: org.jboss.shrinkwrap.resolver.api.Invokable$InvocationException: 
      Unable to invoke onlyOne([Ljava.lang.Class;@1b17d8ab) on object org.jboss.shrinkwrap.resolver.spi.loader.ServiceRegistry with parameters [Ljava.lang.Object;@7f6b7426 at org.apache.maven.surefire.junit4.JUnit4Provider.execute(JUnit4Provider.java:365) 
      at org.apache.maven.surefire.junit4.JUnit4Provider.executeWithRerun(JUnit4Provider.java:273) 
      at org.apache.maven.surefire.junit4.JUnit4Provider.executeTestSet(JUnit4Provider.java:238) 
      at org.apache.maven.surefire.junit4.JUnit4Provider.invoke(JUnit4Provider.java:159) 
      Caused by: java.lang.reflect.InvocationTargetException 
      at org.apache.maven.surefire.junit4.JUnit4Provider.execute(JUnit4Provider.java:365) 
      at org.apache.maven.surefire.junit4.JUnit4Provider.executeWithRerun(JUnit4Provider.java:273) 
      at org.apache.maven.surefire.junit4.JUnit4Provider.executeTestSet(JUnit4Provider.java:238) 
      at org.apache.maven.surefire.junit4.JUnit4Provider.invoke(JUnit4Provider.java:159) 
      Caused by: java.lang.RuntimeException: Could not create new service instance 
      at org.apache.maven.surefire.junit4.JUnit4Provider.execute(JUnit4Provider.java:365) 
      at org.apache.maven.surefire.junit4.JUnit4Provider.executeWithRerun(JUnit4Provider.java:273) 
      at org.apache.maven.surefire.junit4.JUnit4Provider.executeTestSet(JUnit4Provider.java:238) 
      at org.apache.maven.surefire.junit4.JUnit4Provider.invoke(JUnit4Provider.java:159) 
      Caused by: java.lang.reflect.InvocationTargetException 
      at org.apache.maven.surefire.junit4.JUnit4Provider.execute(JUnit4Provider.java:365) 
      at org.apache.maven.surefire.junit4.JUnit4Provider.executeWithRerun(JUnit4Provider.java:273) 
      at org.apache.maven.surefire.junit4.JUnit4Provider.executeTestSet(JUnit4Provider.java:238) 
      at org.apache.maven.surefire.junit4.JUnit4Provider.invoke(JUnit4Provider.java:159) 
      Caused by: java.lang.NoClassDefFoundError: org/eclipse/aether/internal/impl/DefaultSyncContextFactory 
      at org.apache.maven.surefire.junit4.JUnit4Provider.execute(JUnit4Provider.java:365) 
      at org.apache.maven.surefire.junit4.JUnit4Provider.executeWithRerun(JUnit4Provider.java:273) 
      at org.apache.maven.surefire.junit4.JUnit4Provider.executeTestSet(JUnit4Provider.java:238) 
      at org.apache.maven.surefire.junit4.JUnit4Provider.invoke(JUnit4Provider.java:159) 
      

      This is because it tries to load

      org.eclipse.aether.internal.impl.DefaultSyncContextFactory

      , but that class has moved. Since maven-resolver 1.7.0 it is now in the package

      org.eclipse.aether.internal.impl.synccontext

      .

              Unassigned Unassigned
              sven.haster Sven Haster (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

                Created:
                Updated: