質問編集履歴
2
内容の修正
test
CHANGED
File without changes
|
test
CHANGED
@@ -1,21 +1,14 @@
|
|
1
1
|
### 問題点
|
2
|
-
java言語の学習
|
2
|
+
java言語の学習に励んでおります。
|
3
|
+
分野は『静的コード解析』でございます。
|
3
|
-
|
4
|
+
使用中のツールは、『SpotBugs』と『Checkstyle』であります。ビルドとして『Maven』も併用いたしております。
|
4
|
-
また、ビルドとして『Maven』も併用しています。
|
5
|
-
|
5
|
+
問題は、エラーの発生からプログラムが正常に動作しないことでございます。したがって、正常に動作する方法をお教え願います。ご回答、よろしくお願い申し上げます。
|
6
|
-
また、参考にし
|
6
|
+
また、参考にいたしましたサイトや文書が複数とございます。末尾に記載いたしました。
|
7
7
|
### 詳細情報
|
8
|
-
発生したエラー
|
8
|
+
下記は、ターミナル上に発生したエラーと、私が作成いたしましたpomファイルでございます。
|
9
9
|
```terminal
|
10
|
-
[ERROR] Failed to execute goal org.apache.maven.plugins:maven-site-plugin:3.3:site (default-site) on project second: fai
|
11
|
-
[ERROR]
|
12
|
-
[ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch.
|
13
|
-
[ERROR] Re-run Maven using the -X switch to enable full debug logging.
|
14
|
-
[ERROR]
|
15
|
-
[ERROR] For more information about the errors and possible solutions, please read the following articles:
|
16
|
-
[ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/MojoExecutionException
|
10
|
+
[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
|
17
11
|
```
|
18
|
-
以下は、私が作成したpomファイルです。
|
19
12
|
```pom.xml
|
20
13
|
<project>
|
21
14
|
|
@@ -40,20 +33,19 @@
|
|
40
33
|
<plugin>
|
41
34
|
<groupId>com.github.spotbugs</groupId>
|
42
35
|
<artifactId>spotbugs-maven-plugin</artifactId>
|
43
|
-
<version>4.
|
36
|
+
<version>4.7.0.0</version>
|
37
|
+
</plugin>
|
38
|
+
<plugin>
|
39
|
+
<groupId>org.apache.maven.plugins</groupId>
|
40
|
+
<artifactId>maven-checkstyle-plugin</artifactId>
|
41
|
+
<version>3.1.2</version>
|
44
42
|
<dependencies>
|
45
43
|
<dependency>
|
46
|
-
<groupId>com.
|
44
|
+
<groupId>com.puppycrawl.tools</groupId>
|
47
|
-
<artifactId>s
|
45
|
+
<artifactId>checkstyle</artifactId>
|
48
|
-
<version>
|
46
|
+
<version>10.2</version>
|
49
|
-
<type>pom</type>
|
50
47
|
</dependency>
|
51
48
|
</dependencies>
|
52
|
-
</plugin>
|
53
|
-
<plugin>
|
54
|
-
<groupId>com.puppycrawl.tools</groupId>
|
55
|
-
<artifactId>checkstyle</artifactId>
|
56
|
-
<version>10.2</version>
|
57
49
|
</plugin>
|
58
50
|
</plugins>
|
59
51
|
</build>
|
@@ -62,13 +54,13 @@
|
|
62
54
|
<plugins>
|
63
55
|
<plugin>
|
64
56
|
<groupId>com.github.spotbugs</groupId>
|
65
|
-
<artifactId>spotbugs</artifactId>
|
57
|
+
<artifactId>spotbugs-maven-plugin</artifactId>
|
66
|
-
<version>4.7.0</version>
|
58
|
+
<version>4.7.0.0</version>
|
67
59
|
</plugin>
|
68
60
|
<plugin>
|
69
|
-
<groupId>
|
61
|
+
<groupId>org.apache.maven.plugins</groupId>
|
70
|
-
<artifactId>checkstyle</artifactId>
|
62
|
+
<artifactId>maven-checkstyle-plugin</artifactId>
|
71
|
-
<version>1
|
63
|
+
<version>3.1.2</version>
|
72
64
|
<reportSets>
|
73
65
|
<reportSet>
|
74
66
|
<reports>
|
@@ -80,19 +72,7 @@
|
|
80
72
|
</plugins>
|
81
73
|
</reporting>
|
82
74
|
|
83
|
-
<dependencies>
|
84
|
-
<dependency>
|
85
|
-
<groupId>com.github.spotbugs</groupId>
|
86
|
-
<artifactId>spotbugs</artifactId>
|
87
|
-
<version>4.7.0</version>
|
88
|
-
<type>pom</type>
|
89
|
-
</dependency>
|
90
|
-
<dependency>
|
91
|
-
<groupId>com.puppycrawl.tools</groupId>
|
92
|
-
<artifactId>checkstyle</artifactId>
|
93
|
-
<version>10.2</version>
|
94
|
-
</dependency>
|
95
|
-
</dependencies>
|
75
|
+
<dependencies></dependencies>
|
96
76
|
|
97
77
|
</project>
|
98
78
|
```
|
@@ -100,3 +80,4 @@
|
|
100
80
|
スッキリわかるJava入門 実践編 第3版
|
101
81
|
spotbugsの公式サイト
|
102
82
|
MVN Repository
|
83
|
+
ご協力くださいました有識者様
|
1
礼節
test
CHANGED
File without changes
|
test
CHANGED
@@ -2,7 +2,7 @@
|
|
2
2
|
java言語の学習をしています。
|
3
3
|
分野として『静的コード解析』を学習しています。使用しているツールは、『SpotBugs』と『Checkstyle』です。
|
4
4
|
また、ビルドとして『Maven』も併用しています。
|
5
|
-
直面している問題は、エラーの発生からプログラムが正常に動作しないことです。したがって、正常に動作する方法をお教え願います。
|
5
|
+
直面している問題は、エラーの発生からプログラムが正常に動作しないことです。したがって、正常に動作する方法をお教え願います。ご回答、よろしくお願いします。
|
6
6
|
また、参考にしているサイトや文書が複数とあります。末尾に記載しました。ご参照ください。
|
7
7
|
### 詳細情報
|
8
8
|
発生したエラーを載せています。「・・・」の部分は、個人情報の保護により、伏せ字として使用しました。ご了承ください。
|