创建webstart项目时Maven中的项目构建错误

时间:2013-03-18 22:28:35

标签: java eclipse maven

我在eclipse中使用maven创建java webstart项目时遇到以下错误

Project build error: Non-resolvable parent POM:Failure to find 
org.jbundle.util.webapp:jbundle-util-webapp-parent:pom:0.7.2 in
http://repo.maven.apache.org/maven2 was cached in local respository,
resolution will not be reattempted until the update interval of central
had elapsed or updates are forced and 'parent.relativePath' points at wrong
local POM.

请帮助我,我无法理解该怎么做

1 个答案:

答案 0 :(得分:1)

The parent pom is not found
1.you can try to remove the parent pom (if you don't have any dependency ) 
2.add the parent pom 

<parent>
<groupId>com.test</groupId>
<artifactId>TestProject</artifactId>
<version>1.5.3-RELEASE</version>
</parent>

root
|-- parent-pom
|   |-- branches
|   |-- tags
|   `-- trunk
|       `-- pom.xml
`-- projectA
    |-- branches
    |-- tags
    `-- trunk
        |-- module1
        |   `-- pom.xml
        |-- moduleN
        |   `-- pom.xml
        `-- pom.xml