You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Archivers created without a container fail in addArchivedFileSet #499
An archiver obtained from ServiceLoaderArchiverManager, or created with its constructor, fails as soon as an archived file set is added:
java.lang.NullPointerException: Cannot invoke "javax.inject.Provider.get()" because "this.archiverManagerProvider" is null
at org.codehaus.plexus.archiver.AbstractArchiver.asResourceCollection(AbstractArchiver.java:589)
AbstractArchiver.archiverManagerProvider is set only by JSR-330 injection, so outside a container nothing ever sets it, and asResourceCollection dereferences it unconditionally. ServiceLoaderArchiverManager (#444) exists for exactly the no-container case, so the archivers it hands out cannot unpack anything.
Found while porting maven-assembly-plugin to the Maven 4 API (apache/maven#13302), where ServiceLoaderArchiverManager is the only way to get archivers.
Activity