You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@maven.apache.org by "Olivier Lamy (Jira)" <ji...@apache.org> on 2022/11/30 01:10:00 UTC
[jira] [Created] (MRESOLVER-298) javax.inject should not be provided or optional
Olivier Lamy created MRESOLVER-298:
--------------------------------------
Summary: 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
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)