You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@maven.apache.org by "elharo (via GitHub)" <gi...@apache.org> on 2025/03/24 22:41:56 UTC

[PR] Reenable many old style tests [maven]

elharo opened a new pull request, #2182:
URL: https://github.com/apache/maven/pull/2182

   Presumably these were all accidentally disabled but let's see what shape they're in. 


-- 
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: issues-unsubscribe@maven.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [PR] Reenable many old style tests [maven]

Posted by "elharo (via GitHub)" <gi...@apache.org>.
elharo commented on PR #2182:
URL: https://github.com/apache/maven/pull/2182#issuecomment-2751150192

   ```
   Cannot invoke "java.util.List.stream()" because the return value of "org.apache.maven.execution.MavenSession.getProjects()" is null
   
   Stacktrace
   
   java.lang.NullPointerException: Cannot invoke "java.util.List.stream()" because the return value of "org.apache.maven.execution.MavenSession.getProjects()" is null
   	at org.apache.maven.project.artifact.MavenMetadataSource.retrieve(MavenMetadataSource.java:203)
   	at org.apache.maven.project.artifact.MavenMetadataSource.retrieve(MavenMetadataSource.java:149)
   	at org.apache.maven.project.artifact.MavenMetadataSource.retrieve(MavenMetadataSource.java:134)
   	at org.apache.maven.artifact.resolver.ArtifactResolverTest.testReadRepoFromModel(ArtifactResolverTest.java:181)
   	at java.base/java.lang.reflect.Method.invoke(Method.java:569)
   	at java.base/java.util.ArrayList.forEach(ArrayList.java:1511)
   	at java.base/java.util.ArrayList.forEach(ArrayList.java:1511)
   ```


-- 
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: issues-unsubscribe@maven.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [PR] Reenable many old style tests [maven]

Posted by "elharo (via GitHub)" <gi...@apache.org>.
elharo commented on PR #2182:
URL: https://github.com/apache/maven/pull/2182#issuecomment-2751312210

   [ERROR] org.apache.maven.artifact.resolver.ArtifactResolverTest.testReadRepoFromModel -- Time elapsed: 0.230 s <<< FAILURE!
   org.opentest4j.AssertionFailedError: There should be one repository! ==> expected: <1> but was: <0>
   	at org.junit.jupiter.api.AssertionFailureBuilder.build(AssertionFailureBuilder.java:151)
   	at org.junit.jupiter.api.AssertionFailureBuilder.buildAndThrow(AssertionFailureBuilder.java:132)
   	at org.junit.jupiter.api.AssertEquals.failNotEqual(AssertEquals.java:197)
   	at org.junit.jupiter.api.AssertEquals.assertEquals(AssertEquals.java:150)
   	at org.junit.jupiter.api.Assertions.assertEquals(Assertions.java:563)
   	at org.apache.maven.artifact.resolver.ArtifactResolverTest.testReadRepoFromModel(ArtifactResolverTest.java:183)
   	at java.base/java.lang.reflect.Method.invoke(Method.java:569)
   	at java.base/java.util.ArrayList.forEach(ArrayList.java:1511)
   	at java.base/java.util.ArrayList.forEach(ArrayList.java:1511)
    


-- 
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: issues-unsubscribe@maven.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [PR] Reenable many old style tests [maven]

Posted by "elharo (via GitHub)" <gi...@apache.org>.
elharo commented on PR #2182:
URL: https://github.com/apache/maven/pull/2182#issuecomment-2750966589

   [ERROR]   DefaultMavenProjectBuilderTest.testBuildParentVersionRangeExternallyWithChildPomParentVersionExpression:512 
   Expected: a string containing "Version must be a constant"
        but: was "Some problems were encountered while processing the POMs"
   [ERROR]   DefaultMavenProjectBuilderTest.testBuildParentVersionRangeExternallyWithChildPomVersionExpression:495 
   Expected: a string containing "Version must be a constant"
        but: was "Some problems were encountered while processing the POMs"
   [ERROR]   DefaultMavenProjectBuilderTest.testBuildParentVersionRangeExternallyWithChildProjectParentVersionExpression:530 
   Expected: a string containing "Version must be a constant"
        but: was "Some problems were encountered while processing the POMs"
   [ERROR]   DefaultMavenProjectBuilderTest.testBuildParentVersionRangeLocallyWithChildProjectParentVersionExpression:251 
   Expected: a string containing "Version must be a constant"
        but: was "Some problems were encountered while processing the POMs"


-- 
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: issues-unsubscribe@maven.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [PR] Reenable many old style tests [maven]

Posted by "elharo (via GitHub)" <gi...@apache.org>.
elharo merged PR #2182:
URL: https://github.com/apache/maven/pull/2182


-- 
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: issues-unsubscribe@maven.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org