HannesWell commented on PR #336:
URL: https://github.com/apache/mina-sshd/pull/336#issuecomment-1477025610

   Yes I also could not build sshd with slf4j-2 with all checks enabled and it 
failed with the same error.
   
   Using Java-17 (with Helpfull NPEs) showed that `licenseArtifact` is null:
   ```
   [ERROR] Failed to execute goal 
org.apache.maven.plugins:maven-checkstyle-plugin:3.1.2:check (verify-style) on 
project sshd:
   Execution verify-style of goal 
org.apache.maven.plugins:maven-checkstyle-plugin:3.1.2:check failed: Cannot 
invoke
   "org.apache.maven.artifact.Artifact.getFile()" because "licenseArtifact" is 
null -> [Help 1]
   ```
   
   But after disabling the check every class compiled and every test passed 
locally for me.
   
   This change is only about widening the Import-Package version for the 
runtime, so it could be ignored for now that the full build does not work for 
slf4j-2. But if you if want to build against both versions in the CI or only 
want to build against slf4j-2, then this should of course be fixed. But I don't 
know how. What even is a licenseArtitfact? Can this be worked around by some 
configuration or is that potentially a bug in the checkstylte plugin?


-- 
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]


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to