2014-10-09 29 views
1

在我的Maven的项目有对应RichFaces 3依赖性:如何更新富人脸库版本?

<dependency> 
    <groupId>org.richfaces.framework</groupId> 
    <artifactId>richfaces-api</artifactId> 
</dependency> 
<dependency> 
    <groupId>org.richfaces.framework</groupId> 
    <artifactId>richfaces-impl</artifactId> 
</dependency> 
<dependency> 
    <groupId>org.richfaces.ui</groupId> 
    <artifactId>richfaces-ui</artifactId> 
</dependency> 

在我的Eclipse项目MavenDependencies分支的根含有richfaces-api/ui/core -3.3.3。我怎样才能更改POM上传最新版本?问题是pom中没有定义任何版本。

回答

1

必须有一个版本定义,否则它将无法正常工作。 Eclipse会告诉你你使用的是什么版本,如果你将鼠标悬停在依赖关系上,那么在哪里可以找到定义。

1

我想在你的POM如本

   <dependency> 
       <groupId>org.richfaces</groupId> 
       <artifactId>richfaces-bom</artifactId> 
       <version>BOM-VERSION</version> 
       <scope>import</scope> 
       <type>pom</type> 
      </dependency> 

更新有一个BOM依赖somehwere的BOM-版本的一部分,新的东西,如“4.3.7.Final”。