]
Max Andersen commented on SHRINKRES-300:
----------------------------------------
for what it is worth I could get things to work just using:
implementation 'org.jboss.shrinkwrap.resolver:shrinkwrap-resolver-api:3.1.4'
implementation
'org.jboss.shrinkwrap.resolver:shrinkwrap-resolver-impl-maven:3.1.4'
depchain seem to result in conflicting dependencies by default.
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
Priority: Major
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 :)