You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@maven.apache.org by "Martin Kanters (Jira)" <ji...@apache.org> on 2021/04/08 11:25:00 UTC

[jira] [Commented] (MNG-7054) [Test] MavenCliTest.testStyleColors failed with Java 16 and 17

    [ https://issues.apache.org/jira/browse/MNG-7054?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17317103#comment-17317103 ] 

Martin Kanters commented on MNG-7054:
-------------------------------------

[~michael-o] let's create a new issue for that if you still think it's needed. This particular issue has been solved in [MNG-7127|https://issues.apache.org/jira/browse/MNG-7127]. 
I'll close this in the meantime. 

> [Test] MavenCliTest.testStyleColors failed with Java 16 and 17  
> ----------------------------------------------------------------
>
>                 Key: MNG-7054
>                 URL: https://issues.apache.org/jira/browse/MNG-7054
>             Project: Maven
>          Issue Type: Bug
>          Components: Embedding
>    Affects Versions: 4.0.0-alpha-1
>            Reporter: Sylwester Lachiewicz
>            Priority: Major
>
> To reproduce - run mvn verify in maven-embedder module with Java 16 (b23+) or Java 17
> {code:java}
> [INFO] Running org.apache.maven.cli.MavenCliTest
> [ERROR] Tests run: 14, Failures: 0, Errors: 1, Skipped: 0, Time elapsed: 0.88 s <<< FAILURE! - in org.apache.maven.cli.MavenCliTest
> [ERROR] testStyleColors(org.apache.maven.cli.MavenCliTest)  Time elapsed: 0.024 s  <<< ERROR!
> java.lang.NullPointerException
>         at org.apache.maven.cli.MavenCliTest.testStyleColors(MavenCliTest.java:338)
> {code}
> More detailed - it fails in org.apache.maven.cli.ResolveFile#resolveFile where baseDirectory is null 
> return Paths.get( baseDirectory, file.getPath() ).normalize().toFile();
> Additional check added with https://bugs.openjdk.java.net/browse/JDK-8254876 ie https://github.com/openjdk/jdk/commit/450452bb8cb617682a3eb28ae651cb829a45dcc6



--
This message was sent by Atlassian Jira
(v8.3.4#803005)