[shrinkwrap-issues] [JBoss JIRA] (SHRINKRES-300) running shrinkwrap standalone ends up with classloader errors

Max Andersen (Jira) issues at jboss.org
Sun Jan 26 08:17:05 EST 2020


Max Andersen created SHRINKRES-300:
--------------------------------------

             Summary: running shrinkwrap standalone ends up with classloader errors
                 Key: SHRINKRES-300
                 URL: https://issues.redhat.com/browse/SHRINKRES-300
             Project: ShrinkWrap Resolvers
          Issue Type: Bug
            Reporter: Max Andersen


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 :)



--
This message was sent by Atlassian Jira
(v7.13.8#713008)


More information about the shrinkwrap-issues mailing list