Include plexus-utils as runtimeOnly dependency#97
Open
xyloman wants to merge 1 commit intospring-projects-experimental:mainfrom
Open
Include plexus-utils as runtimeOnly dependency#97xyloman wants to merge 1 commit intospring-projects-experimental:mainfrom
xyloman wants to merge 1 commit intospring-projects-experimental:mainfrom
Conversation
If plexus-utils is not included a null pointer exception is thrown by `CommonsExecWebServerFactoryBean`. ``` java.lang.NullPointerException: Cannot invoke "org.eclipse.aether.RepositorySystem.newLocalRepositoryManager(org.eclipse.aether.RepositorySystemSession, org.eclipse.aether.repository.LocalRepository)" because "system" is null at app//org.springframework.experimental.boot.server.exec.MavenClasspathEntry.newRepositorySystemSession(MavenClasspathEntry.java:239) at app//org.springframework.experimental.boot.server.exec.MavenClasspathEntry.resolve(MavenClasspathEntry.java:164) at app//org.springframework.experimental.boot.server.exec.ClasspathBuilder.lambda$build$0(ClasspathBuilder.java:55) at java.base@21.0.7/java.util.stream.ReferencePipeline$7$1.accept(ReferencePipeline.java:273) at java.base@21.0.7/java.util.ArrayList$ArrayListSpliterator.forEachRemaining(ArrayList.java:1708) at java.base@21.0.7/java.util.stream.AbstractPipeline.copyInto(AbstractPipeline.java:509) at java.base@21.0.7/java.util.stream.AbstractPipeline.wrapAndCopyInto(AbstractPipeline.java:499) at java.base@21.0.7/java.util.stream.ReduceOps$ReduceOp.evaluateSequential(ReduceOps.java:921) at java.base@21.0.7/java.util.stream.AbstractPipeline.evaluate(AbstractPipeline.java:234) at java.base@21.0.7/java.util.stream.ReferencePipeline.collect(ReferencePipeline.java:682) at app//org.springframework.experimental.boot.server.exec.ClasspathBuilder.build(ClasspathBuilder.java:56) at app//org.springframework.experimental.boot.server.exec.CommonsExecWebServerFactoryBean.build(CommonsExecWebServerFactoryBean.java:160) at app//org.springframework.experimental.boot.server.exec.CommonsExecWebServerFactoryBean.getObject(CommonsExecWebServerFactoryBean.java:183) at app//org.springframework.experimental.boot.server.exec.CommonsExecWebServerFactoryBean.getObject(CommonsExecWebServerFactoryBean.java:47) ``` Signed-off-by: Bryan Kelly <bkelly@gradle.com>
Collaborator
|
Thanks @xyloman! Can you please provide a test that reproduces this issue so we can ensure that it stays fixed? |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
If plexus-utils is not included a null pointer exception is thrown by
CommonsExecWebServerFactoryBean.