[
https://issues.apache.org/jira/browse/MCHECKSTYLE-449?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17852788#comment-17852788
]
ASF GitHub Bot commented on MCHECKSTYLE-449:
--------------------------------------------
motlin commented on PR #136:
URL:
https://github.com/apache/maven-checkstyle-plugin/pull/136#issuecomment-2152517655
I'm trying to use this and running into:
```
Caused by: java.lang.NoSuchMethodError: 'void
com.puppycrawl.tools.checkstyle.SarifLogger.<init>(java.io.OutputStream,
com.puppycrawl.tools.checkstyle.api.AutomaticBean$OutputStreamOptions)'
at
org.apache.maven.plugins.checkstyle.CheckstyleViolationCheckMojo.getListener
(CheckstyleViolationCheckMojo.java:816)
at
org.apache.maven.plugins.checkstyle.CheckstyleViolationCheckMojo.execute
(CheckstyleViolationCheckMojo.java:539)
at org.apache.maven.plugin.DefaultBuildPluginManager.executeMojo
(DefaultBuildPluginManager.java:126)
at org.apache.maven.lifecycle.internal.MojoExecutor.doExecute2
(MojoExecutor.java:328)
at org.apache.maven.lifecycle.internal.MojoExecutor.doExecute
(MojoExecutor.java:316)
at org.apache.maven.lifecycle.internal.MojoExecutor.execute
(MojoExecutor.java:212)
at org.apache.maven.lifecycle.internal.MojoExecutor.execute
(MojoExecutor.java:174)
at org.apache.maven.lifecycle.internal.MojoExecutor.access$000
(MojoExecutor.java:75)
at org.apache.maven.lifecycle.internal.MojoExecutor$1.run
(MojoExecutor.java:162)
at org.apache.maven.plugin.DefaultMojosExecutionStrategy.execute
(DefaultMojosExecutionStrategy.java:39)
at org.apache.maven.lifecycle.internal.MojoExecutor.execute
(MojoExecutor.java:159)
at
org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject
(LifecycleModuleBuilder.java:105)
at
org.apache.maven.lifecycle.internal.builder.multithreaded.MultiThreadedBuilder$1.call
(MultiThreadedBuilder.java:193)
at
org.apache.maven.lifecycle.internal.builder.multithreaded.MultiThreadedBuilder$1.call
(MultiThreadedBuilder.java:180)
at java.util.concurrent.FutureTask.run (FutureTask.java:264)
at java.util.concurrent.Executors$RunnableAdapter.call
(Executors.java:539)
at java.util.concurrent.FutureTask.run (FutureTask.java:264)
at java.util.concurrent.ThreadPoolExecutor.runWorker
(ThreadPoolExecutor.java:1136)
at java.util.concurrent.ThreadPoolExecutor$Worker.run
(ThreadPoolExecutor.java:635)
at java.lang.Thread.run (Thread.java:842)
```
My command is:
```
mvn checkstyle:check --activate-profiles 'checkstyle-semantics'
-Dcheckstyle.output.format=sarif
```
My versions are:
```xml
<profile>
<id>checkstyle-semantics</id>
<build>
<plugins>
<plugin>
<artifactId>maven-checkstyle-plugin</artifactId>
<version>3.4.0</version>
<dependencies>
<dependency>
<groupId>com.puppycrawl.tools</groupId>
<artifactId>checkstyle</artifactId>
<version>10.17.0</version>
</dependency>
</dependencies>
<configuration>
<configLocation>checkstyle-configuration-semantics.xml</configLocation>
<outputFileFormat>sarif</outputFileFormat>
</configuration>
<executions>
<execution>
<id>checkstyle:check semantics</id>
<goals>
<goal>check</goal>
</goals>
<phase>prepare-package</phase>
</execution>
</executions>
</plugin>
</plugins>
</build>
</profile>
```
> Add support for SARIF output format
> -----------------------------------
>
> Key: MCHECKSTYLE-449
> URL: https://issues.apache.org/jira/browse/MCHECKSTYLE-449
> Project: Maven Checkstyle Plugin
> Issue Type: New Feature
> Affects Versions: 3.3.1
> Reporter: Michael Osipov
> Assignee: Michael Osipov
> Priority: Major
> Fix For: 3.4.0
>
>
--
This message was sent by Atlassian Jira
(v8.20.10#820010)