I repeat an example from the Book by Maven. I execute the mvn site command and get an error:
[Error] Failed to Execute Goal Org.apache.maven.plugins: Maven-Site-plugin: 3.3: Site (Default-site) on Project Simple: 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
Tell me, please, what’s the problem?
POM itself is as follows:
& lt; project xmlns = "http://maven.apache.org/pom/4.0.0" XMLNS: xsi = "http://www.w3.org/2001/xmlschema-instance"
XSI: Schemalocation = "http://maven.apache.org/pom/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">
& lt; Modelversion & GT; 4.0.0 & lt; / Modelversion & GT;
& lt; groupid & gt; org.sonatype.mavenbook.ch03 & lt; / groupid & gt;
& lt; artifactid & gt; simple & lt; / artifactid & gt;
& lt; Packaging & gt; jar & lt; / packaging & gt;
& lt; Version & GT; 1.0-Snapshot & lt; / Version & GT;
& lt; name & gt; simple & lt; / name & gt;
& lt; url & gt; http: //maven.apache.org< / url & gt;
& lt; Properties & gt;
& lt; project.build.sourceencoding & gt; UTF-8 & lt; /project.build.sourceencoding>
& lt; / Properties & gt;
& lt; Dependencies & gt;
& lt; dependency & gt;
& lt; groupid & gt; junit & lt; / groupid & gt;
& lt; artifactid & gt; junit & lt; / artifactid & gt;
& lt; Version & gt; 3.8.1 & lt; / version & gt;
& lt; scope & gt; Test & lt; / scope & gt;
& lt; / dependency & gt;
& lt; / dependencies & gt;
& lt; Build & gt;
& lt; plugins & gt;
& lt; plugin & gt;
& lt; groupid & gt; org.apache.maven.plugins & lt; / groupid & gt;
& lt; artifactid & gt; maven-project-info-reports-plugin & lt; / artifactid & gt;
& lt; version & gt; 3.1.2 & lt; / version & gt;
& lt; / plugin & gt;
& lt; plugin & gt;
& lt; groupid & gt; org.apache.maven.plugins & lt; / groupid & gt;
& lt; artifactid & gt; Maven-Site-plugin & lt; / artifactid & gt;
& lt; version & gt; 3.3 & lt; / version & gt;
& lt; / plugin & gt;
& lt; / plugins & gt;
& lt; / build & gt;
Answer 1
changed the version of the Maven-Site-Plugin plugin by 3.7.1 (it is possible above), made the Remport of the Maven project and everything worked.
The version of the plugin in Intellij Idea, despite these actions, highlighted as it was not found that it was embarrassed, but after clicking on the update button (Ctrl + Alt + Y) everything became normal.