基于Maven的richfaces 4.x项目构建

在pom中添加一下code:

    <properties>
        <org.richfaces.bom.version>4.1.0.Final</org.richfaces.bom.version>
        ...
    </properties>

    <dependencyManagement>
        <dependencies>
            <dependency>
                <groupId>org.richfaces</groupId>
                <artifactId>richfaces-bom</artifactId>
                <version>${org.richfaces.bom.version}</version>
                <scope>import</scope>
                <type>pom</type>
            </dependency>
            ...
        </dependencies>
    </dependencyManagement>

    <dependency>
        <groupId>org.richfaces.ui</groupId>
        <artifactId>richfaces-components-ui</artifactId>
    </dependency>
    <dependency>
        <groupId>org.richfaces.core</groupId>
        <artifactId>richfaces-core-impl</artifactId>
    </dependency>

在dependencyManagement中添加richfaces-component-bom,后面的dependency就不需要version了。

你可能感兴趣的:(maven,Richfaces,构建)