Maven:版本插件使用RenderingContext类缺失消息

时间:2014-11-06 11:55:39

标签: maven

我想运行mvn版本:dependency-updates-report来生成新依赖项版本的报告。当我从命令行运行它时,我得到了

  

[错误]无法执行目标   org.codehaus.mojo:版本,Maven的插件:2.1:依赖关系的更新报告   项目PROJECT_NAME上的(default-cli):目标的执行default-cli   org.codehaus.mojo:版本,Maven的插件:2.1:依赖关系的更新报告   失败:执行时缺少必需的类   org.codehaus.mojo:版本,Maven的插件:2.1:依赖关系的更新报告:   组织/阿帕奇/行家/ doxia /模块/ XHTML /装饰/渲染/ RenderingContext

看起来2.1是最新版本。我也用:

  

Apache Maven 3.2.3   Java版本:1.6.0_45,供应商:Sun Microsystems   Inc.操作系统名称:“windows 7”

怎么了?

更新: 与空POM和Maven 2.2.1相同的故事 是否有一个人能够实现这一目标? :)

更新2

我的POM与Maven 2或3一起运行:

<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/xsd/maven-4.0.0.xsd">
    <modelVersion>4.0.0</modelVersion>

    <groupId>com.javagames.app</groupId>
    <artifactId>MavenGames</artifactId>
    <version>1.0-SNAPSHOT</version>

    <reporting>
        <plugins>
            <plugin>
                <groupId>org.codehaus.mojo</groupId>
                <artifactId>versions-maven-plugin</artifactId>
                <version>2.1</version>
                <reportSets>
                    <reportSet>
                        <reports>
                            <report>dependency-updates-report</report>
                            <report>plugin-updates-report</report>
                            <report>property-updates-report</report>
                        </reports>
                    </reportSet>
                </reportSets>
            </plugin>
        </plugins>
    </reporting>
</project>

0 个答案:

没有答案