michael-o commented on PR #812:
URL: https://github.com/apache/maven/pull/812#issuecomment-1731576348
Well, built your branch and tested on:
```
osipovmi@deblndw011x:/tmp/ма вен (MNG-6437 =)
$ ../apache-maven-4.0.0-alpha-8-SNAPSHOT/bin/mvn -v
Apache Maven 4.0.0-alpha-8-SNAPSHOT
(521a57d768f1aab6dc792ee1a234c9b70267f3a2)
Maven home: /tmp/apache-maven-4.0.0-alpha-8-SNAPSHOT
Java version: 1.8.0_372, vendor: OpenJDK BSD Porting Team, runtime:
/usr/local/openjdk8/jre
Default locale: de_DE, platform encoding: UTF-8
OS name: "freebsd", version: "12.4-stable", arch: "amd64", family: "unix"
```
It fails in mid-air:
```
[ERROR] Tests run: 2, Failures: 1, Errors: 0, Skipped: 0, Time elapsed:
0.041 s <<< FAILURE! -- in
org.apache.maven.model.building.DefaultModelBuilderTest
[ERROR]
org.apache.maven.model.building.DefaultModelBuilderTest.testBuildRawModel --
Time elapsed: 0.005 s <<< FAILURE!
org.opentest4j.AssertionFailedError: expected: not <null>
at
org.junit.jupiter.api.AssertionFailureBuilder.build(AssertionFailureBuilder.java:152)
at
org.junit.jupiter.api.AssertionFailureBuilder.buildAndThrow(AssertionFailureBuilder.java:132)
at
org.junit.jupiter.api.AssertNotNull.failNull(AssertNotNull.java:49)
at
org.junit.jupiter.api.AssertNotNull.assertNotNull(AssertNotNull.java:35)
at
org.junit.jupiter.api.AssertNotNull.assertNotNull(AssertNotNull.java:30)
at
org.junit.jupiter.api.Assertions.assertNotNull(Assertions.java:301)
at
org.apache.maven.model.building.DefaultModelBuilderTest.testBuildRawModel(DefaultModelBuilderTest.java:164)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:498)
at
org.junit.platform.commons.util.ReflectionUtils.invokeMethod(ReflectionUtils.java:727)
at
org.junit.jupiter.engine.execution.MethodInvocation.proceed(MethodInvocation.java:60)
at
org.junit.jupiter.engine.execution.InvocationInterceptorChain$ValidatingInvocation.proceed(InvocationInterceptorChain.java:131)
at
org.junit.jupiter.engine.extension.TimeoutExtension.intercept(TimeoutExtension.java:156)
at
org.junit.jupiter.engine.extension.TimeoutExtension.interceptTestableMethod(TimeoutExtension.java:147)
at
org.junit.jupiter.engine.extension.TimeoutExtension.interceptTestMethod(TimeoutExtension.java:86)
at
org.junit.jupiter.engine.execution.InterceptingExecutableInvoker$ReflectiveInterceptorCall.lambda$ofVoidMethod$0(InterceptingExecutableInvoker.java:103)
```
I have tried `help:evaluate`, but all I get is `null`. I have found another
issue: if an object contains `#isFile()` and `#toFile()`, the array will
determine which to call.
See:
```
[INFO] Enter the Maven expression i.e. ${project.groupId} or 0 to exit?:
${session.multiModuleProjectDirectory.uri}
[INFO]
null object or invalid expression
[INFO] Enter the Maven expression i.e. ${project.groupId} or 0 to exit?:
${session.multiModuleProjectDirectory.uri.string}
```
What am I doing wrong?
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]