我升级到使用嵌入式maven 3的netbeans 7.我有一个包含很多模块和包含其他模块的模块的项目。我不依赖于内部项目的其他子模块可以在相同的配置下正常工作。在这种情况下,spring-hibernate依赖于作为子模块之一的域并失败。maven 3无法读取工件描述符
我的主要项目有这样的事情
<modelVersion>4.0.0</modelVersion>
<artifactId>spring</artifactId>
<packaging>pom</packaging>
<groupId>${masterproject.groupId}</groupId>
<version>${masterproject.version}</version>
我的子模块具有我使用下面的$ {} masterproject.groupId $ {} masterproject.version由于以下DEF
<modelVersion>4.0.0</modelVersion>
<parent>
<artifactId>spring</artifactId>
<groupId>${masterproject.groupId}</groupId>
<version>${masterproject.version}</version>
</parent>
<artifactId>spring-hibernate</artifactId>
<packaging>pom</packaging>
<dependency>
<groupId>${masterproject.groupId}</groupId>
<artifactId>domain</artifactId>
</dependency>
我不想将静态值放在所有子模块中,因为每个子模块都包含一个父模块。不确定这是否是问题的原因。
所有这一切工作正常使用Maven 2.但与Maven 3我收到以下错误味精
Failed to read artifact descriptor for com.merc:domain:jar:1.0-SNAPSHOT: Failure to find ${masterproject.groupId}:MavenMasterProject:pom:${masterproject.version} in http://repository.springsource.com/maven/bundles/release was cached in the local repository, resolution will not be reattempted until the update interval of com.springsource.repository.bundles.release has elapsed or updates are forced -> [Help 1]
不,我更新了pom.xml以使用类似snapshot-1.0的静态值。但想使用属性,而不是 – user373201 2011-10-07 18:42:06