問題点
java言語の学習に励んでおります。
分野は『静的コード解析』でございます。
使用中のツールは、『SpotBugs』と『Checkstyle』であります。ビルドとして『Maven』も併用いたしております。
問題は、エラーの発生からプログラムが正常に動作しないことでございます。したがって、正常に動作する方法をお教え願います。ご回答、よろしくお願い申し上げます。
また、参考にいたしましたサイトや文書が複数とございます。末尾に記載いたしました。
詳細情報
下記は、ターミナル上に発生したエラーと、私が作成いたしましたpomファイルでございます。
terminal
1[ERROR] Failed to execute goal org.apache.maven.plugins:maven-site-plugin:3.3:site (default-site) on project second: Execution default-site of goal org.apache.maven.plugins:maven-site-plugin:3.3:site failed: A required class was missing while executing org.apache.maven.plugins:maven-site-plugin:3.3:site: org/apache/maven/doxia/siterenderer/DocumentContent
pom.xml
1<project> 2 3 <modelVersion>4.0.0</modelVersion> 4 5 <groupId>second.testProbability</groupId> 6 <artifactId>second</artifactId> 7 <version>1.0.0</version> 8 9 <properties> 10 <maven.compiler.target>8</maven.compiler.target> 11 <maven.compiler.source>8</maven.compiler.source> 12 </properties> 13 14 <build> 15 <plugins> 16 <plugin> 17 <groupId>org.apache.maven.plugins</groupId> 18 <artifactId>maven-surefire-plugin</artifactId> 19 <version>3.0.0-M5</version> 20 </plugin> 21 <plugin> 22 <groupId>com.github.spotbugs</groupId> 23 <artifactId>spotbugs-maven-plugin</artifactId> 24 <version>4.7.0.0</version> 25 </plugin> 26 <plugin> 27 <groupId>org.apache.maven.plugins</groupId> 28 <artifactId>maven-checkstyle-plugin</artifactId> 29 <version>3.1.2</version> 30 <dependencies> 31 <dependency> 32 <groupId>com.puppycrawl.tools</groupId> 33 <artifactId>checkstyle</artifactId> 34 <version>10.2</version> 35 </dependency> 36 </dependencies> 37 </plugin> 38 </plugins> 39 </build> 40 41 <reporting> 42 <plugins> 43 <plugin> 44 <groupId>com.github.spotbugs</groupId> 45 <artifactId>spotbugs-maven-plugin</artifactId> 46 <version>4.7.0.0</version> 47 </plugin> 48 <plugin> 49 <groupId>org.apache.maven.plugins</groupId> 50 <artifactId>maven-checkstyle-plugin</artifactId> 51 <version>3.1.2</version> 52 <reportSets> 53 <reportSet> 54 <reports> 55 <report>checkstyle</report> 56 </reports> 57 </reportSet> 58 </reportSets> 59 </plugin> 60 </plugins> 61 </reporting> 62 63 <dependencies></dependencies> 64 65</project>
参考
スッキリわかるJava入門 実践編 第3版
spotbugsの公式サイト
MVN Repository
ご協力くださいました有識者様
回答1件
あなたの回答
tips
プレビュー
バッドをするには、ログインかつ
こちらの条件を満たす必要があります。
2022/05/31 02:21
2022/06/01 02:12