当我尝试运行“ MVN网站”生命周期时,出现以下错误

WARNING] The POM for org.apache.maven.plugins:maven-site-plugin:jar:2.0.1 is invalid, transitive dependencies (if any) will not be available, enable debug logging for more details
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 1.084s
[INFO] Finished at: Thu Jun 23 18:36:17 IST 2011
[INFO] Final Memory: 3M/81M
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal org.apache.maven.plugins:maven-site-plugin:2.0.1:site (default-site) on project store-service-impl: Execution default-site of goal org.apache.maven.plugins:maven-site-plugin:2.0.1:site failed: Unable to load the mojo 'site' in the plugin 'org.apache.maven.plugins:maven-site-plugin:2.0.1'. A required class is missing: org/apache/maven/doxia/module/xhtml/decoration/render/RenderingContext
[ERROR] -----------------------------------------------------
[ERROR] realm =    plugin>org.apache.maven.plugins:maven-site-plugin:2.0.1
[ERROR] strategy = org.codehaus.plexus.classworlds.strategy.SelfFirstStrategy
[ERROR] urls[0] = file:/Users/don/workspace/WTP_REPOSITORYQA_DM/WTP/Repository/org/apache/maven/plugins/maven-site-plugin/2.0.1/maven-site-plugin-2.0.1.jar
[ERROR] urls[1] = file:/Users/don/workspace/WTP_REPOSITORYQA_DM/WTP/Repository/org/codehaus/plexus/plexus-utils/1.1/plexus-utils-1.1.jar
[ERROR] Number of foreign imports: 4
[ERROR] import: Entry[import org.codehaus.plexus.util.xml.pull.XmlSerializer from realm ClassRealm[plexus.core, parent: null]]
[ERROR] import: Entry[import org.codehaus.plexus.util.xml.pull.XmlPullParserException from realm ClassRealm[plexus.core, parent: null]]
[ERROR] import: Entry[import org.codehaus.plexus.util.xml.pull.XmlPullParser from realm ClassRealm[plexus.core, parent: null]]
[ERROR] import: Entry[import org.codehaus.plexus.util.xml.Xpp3Dom from realm ClassRealm[plexus.core, parent: null]]


我尝试使用站点插件的3.0-beta-3版本,但得到类似的结果。我不知道从哪里开始,所以我们将不胜感激

最佳答案

看来您在doxia 1.0中遇到了一个错误,您使用的是旧版本的maven网站插件,该插件依赖于有缺陷的doxia版本。

尝试将Maven-site-plugin的版本指定为2.3。

10-05 21:13