Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

maven 4 fails #66

Open
froque opened this issue Jun 5, 2023 · 1 comment
Open

maven 4 fails #66

froque opened this issue Jun 5, 2023 · 1 comment

Comments

@froque
Copy link
Member

froque commented Jun 5, 2023

Apache Maven 4.0.0-alpha-4 (009cf4a7213aead8a7946a2397e2396c5927f30f)
Maven home: /opt/maven/apache-maven-4.0.0-alpha-4
Java version: 18.0.2-ea, vendor: Private Build, runtime: /usr/lib/jvm/java-18-openjdk-amd64
Default locale: en_US, platform encoding: UTF-8
OS name: "linux", version: "5.19.0-43-generic", arch: "amd64", family: "unix"
(...)
[WARNING] Failed to notify spy org.apache.maven.ReactorReader$ReactorReaderSpy: Cannot invoke "java.io.File.toPath()" because the return value of "org.apache.maven.project.MavenProject.getFile()" is null
java.lang.NullPointerException: Cannot invoke "java.io.File.toPath()" because the return value of "org.apache.maven.project.MavenProject.getFile()" is null
    at org.apache.maven.internal.transformation.ConsumerPomArtifactTransformer$ConsumerPomArtifact.lambda$new$0 (ConsumerPomArtifactTransformer.java:137)
    at org.apache.maven.internal.transformation.OnChangeTransformer.mayUpdate (OnChangeTransformer.java:82)
    at org.apache.maven.internal.transformation.OnChangeTransformer.get (OnChangeTransformer.java:72)
    at org.apache.maven.internal.transformation.TransformedArtifact.getFile (TransformedArtifact.java:76)
    at org.apache.maven.RepositoryUtils.toArtifact (RepositoryUtils.java:154)
    at java.util.stream.ReferencePipeline$3$1.accept (ReferencePipeline.java:197)
    at java.util.ArrayList$ArrayListSpliterator.forEachRemaining (ArrayList.java:1625)
    at java.util.stream.Streams$ConcatSpliterator.forEachRemaining (Streams.java:735)
    at java.util.stream.AbstractPipeline.copyInto (AbstractPipeline.java:509)
    at java.util.stream.AbstractPipeline.wrapAndCopyInto (AbstractPipeline.java:499)
    at java.util.stream.ForEachOps$ForEachOp.evaluateSequential (ForEachOps.java:150)
    at java.util.stream.ForEachOps$ForEachOp$OfRef.evaluateSequential (ForEachOps.java:173)
    at java.util.stream.AbstractPipeline.evaluate (AbstractPipeline.java:234)
    at java.util.stream.ReferencePipeline.forEach (ReferencePipeline.java:596)
    at org.apache.maven.ReactorReader.installIntoProjectLocalRepository (ReactorReader.java:354)
    at org.apache.maven.ReactorReader.processEvent (ReactorReader.java:331)
    at org.apache.maven.ReactorReader.access$000 (ReactorReader.java:67)
    at org.apache.maven.ReactorReader$ReactorReaderSpy.onEvent (ReactorReader.java:501)
    at org.apache.maven.eventspy.internal.EventSpyDispatcher.onEvent (EventSpyDispatcher.java:84)
    at org.apache.maven.eventspy.internal.EventSpyExecutionListener.projectSucceeded (EventSpyExecutionListener.java:72)
    at org.apache.maven.lifecycle.internal.DefaultExecutionEventCatapult.fire (DefaultExecutionEventCatapult.java:70)
    at org.apache.maven.lifecycle.internal.DefaultExecutionEventCatapult.fire (DefaultExecutionEventCatapult.java:41)
    at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject (LifecycleModuleBuilder.java:123)
    at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject (LifecycleModuleBuilder.java:80)
    at org.apache.maven.lifecycle.internal.builder.singlethreaded.SingleThreadedBuilder.build (SingleThreadedBuilder.java:60)
    at org.apache.maven.lifecycle.internal.LifecycleStarter.execute (LifecycleStarter.java:132)
    at org.apache.maven.DefaultMaven.doExecute (DefaultMaven.java:313)
    at org.apache.maven.DefaultMaven.doExecute (DefaultMaven.java:228)
    at org.apache.maven.DefaultMaven.execute (DefaultMaven.java:153)
    at org.apache.maven.cli.MavenCli.execute (MavenCli.java:859)
    at org.apache.maven.cli.MavenCli.doMain (MavenCli.java:282)
    at org.apache.maven.cli.MavenCli.main (MavenCli.java:198)
    at jdk.internal.reflect.DirectMethodHandleAccessor.invoke (DirectMethodHandleAccessor.java:104)
    at java.lang.reflect.Method.invoke (Method.java:577)
    at org.codehaus.plexus.classworlds.launcher.Launcher.launchEnhanced (Launcher.java:282)
    at org.codehaus.plexus.classworlds.launcher.Launcher.launch (Launcher.java:225)
    at org.codehaus.plexus.classworlds.launcher.Launcher.mainWithExitCode (Launcher.java:406)
    at org.codehaus.plexus.classworlds.launcher.Launcher.main (Launcher.java:347)
@froque
Copy link
Member Author

froque commented Jun 5, 2023

Seems to be fixed by https://issues.apache.org/jira/browse/MNG-7707 in a future release 4.0.0-alpha-6

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant