やること
OWASP Dependency Checkを使っていて、プロジェクトはJava
なのに.NET Assembly Analyzer could not be initialized and at least one 'exe' or 'dll' was scanned. The 'dotnet' executable could not be found on the path; either disable the Assembly Analyzer or configure the path dotnet core.
とエラーが出て困りました。
なので、.Net
系のAssembly Analyzerを無効化します。
やり方
以下のように、assemblyAnalyzerEnabled
とnugetconfAnalyzerEnabled
とnuspecAnalyzerEnabled
を無効化すればできます。
<!-- 省略 -->
<plugin>
<groupId>org.owasp</groupId>
<artifactId>dependency-check-maven</artifactId>
<version>5.0.0</version>
<configuration>
<!-- .Net系の内容を無効化する -->
<assemblyAnalyzerEnabled>false</assemblyAnalyzerEnabled>
<nugetconfAnalyzerEnabled>false</nugetconfAnalyzerEnabled>
<nuspecAnalyzerEnabled>false</nuspecAnalyzerEnabled>
</configuration>
<executions>
<execution>
<goals>
<goal>check</goal>
</goals>
</execution>
</executions>
</plugin>
<!-- 省略 -->
補足
何を無効化できるかについては下記公式ドキュメントをご覧ください。
Java
であれば、Golang
に関する内容などは切っておいていいかもしれませんね。