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
This is now deprecated, but nothing in the Maven source mentions what should be done instead of using it.
[ERROR] Internal error: java.lang.NullPointerException: Cannot invoke "org.codehaus.plexus.PlexusContainer.lookupMap(String)" because "this.container" is null -> [Help 1]
org.apache.maven.InternalErrorException: Internal error: java.lang.NullPointerException: Cannot invoke "org.codehaus.plexus.PlexusContainer.lookupMap(String)" because "this.container" is null
at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:157)
at org.apache.maven.cli.MavenCli.execute(MavenCli.java:981)
at org.apache.maven.cli.MavenCli.doMain(MavenCli.java:291)
at org.apache.maven.cli.MavenCli.main(MavenCli.java:208)
at jdk.internal.reflect.DirectMethodHandleAccessor.invoke(DirectMethodHandleAccessor.java:103)
at java.lang.reflect.Method.invoke(Method.java:580)
at org.codehaus.plexus.classworlds.launcher.Launcher.launchEnhanced(Launcher.java:255)
at org.codehaus.plexus.classworlds.launcher.Launcher.launch(Launcher.java:201)
at org.codehaus.plexus.classworlds.launcher.Launcher.mainWithExitCode(Launcher.java:361)
at org.codehaus.plexus.classworlds.launcher.Launcher.main(Launcher.java:314)
Caused by: java.lang.NullPointerException: Cannot invoke "org.codehaus.plexus.PlexusContainer.lookupMap(String)" because "this.container" is null
at org.apache.maven.execution.MavenSession.lookupMap(MavenSession.java:486)
at io.repaint.maven.tiles.TilesMavenLifecycleParticipant.afterProjectsRead(TilesMavenLifecycleParticipant.groovy:311)
at org.apache.maven.DefaultMaven.callListeners(DefaultMaven.java:377)
at org.apache.maven.DefaultMaven.afterProjectsRead(DefaultMaven.java:359)
at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:269)
at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:225)
at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:149)
at org.apache.maven.cli.MavenCli.execute(MavenCli.java:981)
at org.apache.maven.cli.MavenCli.doMain(MavenCli.java:291)
at org.apache.maven.cli.MavenCli.main(MavenCli.java:208)
at jdk.internal.reflect.DirectMethodHandleAccessor.invoke(DirectMethodHandleAccessor.java:103)
at java.lang.reflect.Method.invoke(Method.java:580)
at org.codehaus.plexus.classworlds.launcher.Launcher.launchEnhanced(Launcher.java:255)
at org.codehaus.plexus.classworlds.launcher.Launcher.launch(Launcher.java:201)
at org.codehaus.plexus.classworlds.launcher.Launcher.mainWithExitCode(Launcher.java:361)
at org.codehaus.plexus.classworlds.launcher.Launcher.main(Launcher.java:314)
@cstamas What's the best approach to handle this, so it'll work under Maven 3.9.9 and 4.0.0-beta4?
The text was updated successfully, but these errors were encountered:
It looks like looking up
ArtifactRepositoryLayout
's under Maven 4 fails.The code used to lookup the layout by name is:
and is used to dynamically lookup the distribution repository layout when constructing a new
MavenArtifactRepository
instance to inject.This is now deprecated, but nothing in the Maven source mentions what should be done instead of using it.
@cstamas What's the best approach to handle this, so it'll work under Maven 3.9.9 and 4.0.0-beta4?
The text was updated successfully, but these errors were encountered: