0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 5 years have passed since last update.

【Maven】OWASP Dependency Checkで.Net系のAssembly Analyzerを無効化する【Java】

Posted at

やること

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を無効化します。

やり方

以下のように、assemblyAnalyzerEnablednugetconfAnalyzerEnablednuspecAnalyzerEnabledを無効化すればできます。

<!-- 省略 -->
<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に関する内容などは切っておいていいかもしれませんね。

0
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?