[ 
https://issues.apache.org/jira/browse/MRESOLVER-298?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17675703#comment-17675703
 ] 

ASF GitHub Bot commented on MRESOLVER-298:
------------------------------------------

cstamas opened a new pull request, #235:
URL: https://github.com/apache/maven-resolver/pull/235

   javax.inject is and should be optional (used only when Guice and/or Sisu is 
being used), but in case SL is being used no javax.inject should be needed.
   
   This rule was violated in 1.9.0 commit 
5566bd5b3b0e59d124d820e6274da8e2da7804b0 where javax.inject.Provider was used 
in conjuction with SL as well.
   
   ---
   
   https://issues.apache.org/jira/browse/MRESOLVER-298




> javax.inject should not be provided or optional
> -----------------------------------------------
>
>                 Key: MRESOLVER-298
>                 URL: https://issues.apache.org/jira/browse/MRESOLVER-298
>             Project: Maven Resolver
>          Issue Type: Bug
>            Reporter: Olivier Lamy
>            Priority: Major
>             Fix For: 1.10.0
>
>
> Using resolver in a non DI context and got this exception
> {code}
> java.lang.NoClassDefFoundError: javax/inject/Provider
>       at 
> org.eclipse.aether.internal.impl.synccontext.named.NamedLockFactoryAdapterFactoryImpl.getManuallyCreatedNameMappers(NamedLockFactoryAdapterFactoryImpl.java:85)
>       at 
> org.eclipse.aether.internal.impl.synccontext.named.NamedLockFactoryAdapterFactoryImpl.<init>(NamedLockFactoryAdapterFactoryImpl.java:117)
>       at 
> jdk.internal.reflect.GeneratedConstructorAccessor26.newInstance(Unknown 
> Source)
> {code}
> This is because javax.inject is declared as provided and/or optional whereas 
> it's not.



--
This message was sent by Atlassian Jira
(v8.20.10#820010)

Reply via email to