如何解决在Spring工具套件ubuntu中找不到maven affuse项目的父项

时间:2013-07-02 03:56:47

标签: hibernate maven

当我尝试执行maven命令为我的hibernate模型类生成服务和dao时,我

mvn appfuse:gen -Dentity =“ModelClassName”我正在

[ERROR] BUILD ERROR
[INFO] ------------------------------------------------------------------------
[INFO] Error building POM (may not be this project's POM).


Project ID: commons-logging:commons-logging:jar:1.1.1

Reason: Cannot find parent: org.apache.commons:commons-parent for project: commons-logging:commons-logging:jar:1.1.1 for project commons-logging:commons-logging:jar:1.1.1

我无法解决此问题。哪里出错了

1 个答案:

答案 0 :(得分:0)

将版本从1.1.1更改为1.1.3

    <dependency>
        <groupId>commons-logging</groupId>
        <artifactId>commons-logging</artifactId>
        <version>1.1.3</version>
    </dependency>