Warning: file_get_contents(/data/phpspider/zhask/data//catemap/4/maven/5.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
JSF2.0和Richfaces配置_Jsf_Maven_Richfaces - Fatal编程技术网

JSF2.0和Richfaces配置

JSF2.0和Richfaces配置,jsf,maven,richfaces,Jsf,Maven,Richfaces,我是Richfaces框架的新手。在这段时间里,我试图将其添加到我的工程项目中。不幸的是,让这个框架运行在JSF2.0上有很多问题。我试着下载了很多maven原型,但大多数都不起作用。你能告诉我在哪里可以找到像JSF2.0+RichFaces4这样的空白和配置项目吗?它也可以是maven。我今天花了一整天的时间让它运行起来,但这段时间对我来说事情太复杂了。你不需要太多。您可能需要依赖项的reposity、构建war文件的插件、JSF版本(我假设您的容器提供了JSFAPI+实现,因此提供了)和Ri

我是Richfaces框架的新手。在这段时间里,我试图将其添加到我的工程项目中。不幸的是,让这个框架运行在JSF2.0上有很多问题。我试着下载了很多maven原型,但大多数都不起作用。你能告诉我在哪里可以找到像JSF2.0+RichFaces4这样的空白和配置项目吗?它也可以是maven。我今天花了一整天的时间让它运行起来,但这段时间对我来说事情太复杂了。

你不需要太多。您可能需要依赖项的reposity、构建war文件的插件、JSF版本(我假设您的容器提供了JSFAPI+实现,因此提供了
)和RichFacesAPI+实现

<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
    xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
    <modelVersion>4.0.0</modelVersion>
    <groupId>com.your.package</groupId>
    <artifactId>your.project</artifactId>
    <version>0.0.1-SNAPSHOT</version>
    <packaging>war</packaging>

    <properties>
        <project.build.version>0.0.1-SNAPSHOT</project.build.version>
        <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
    </properties>

    <repositories>

        <repository>
            <snapshots>
                <enabled>false</enabled>
            </snapshots>
            <id>jboss</id>
            <name>JBoss repository</name>
            <!-- <url>https://repository.jboss.org/nexus/content/groups/public-jboss/</url> -->
            <url>http://repo1.maven.org/maven2/</url>
        </repository>
    </repositories>

    <dependency>
        <groupId>com.sun.faces</groupId>
        <artifactId>jsf-api</artifactId>
        <version>2.1.22</version>
        <scope>provided</scope>
    </dependency>

    <dependency>
        <groupId>com.sun.faces</groupId>
        <artifactId>jsf-impl</artifactId>
        <version>2.1.22</version>
        <scope>provided</scope>
    </dependency>

    <dependency>
        <groupId>org.richfaces.core</groupId>
        <artifactId>richfaces-core-api</artifactId>
        <version>4.3.3.Final</version>
    </dependency>

    <dependency>
        <groupId>org.richfaces.core</groupId>
        <artifactId>richfaces-core-impl</artifactId>
        <version>4.3.3.Final</version>
    </dependency>

    <build>
        <plugins>
            <plugin>
                <groupId>org.apache.maven.plugins</groupId>
                <artifactId>maven-war-plugin</artifactId>
                <version>2.4</version>
                <configuration>
                    <webXml>src\main\webapp\WEB-INF\web.xml</webXml>
                </configuration>
            </plugin>
        </plugins>
    </build>
</project>

4.0.0
com.your.package
你的项目
0.0.1-快照
战争
0.0.1-快照
UTF-8
假的
jboss
JBoss存储库
http://repo1.maven.org/maven2/
com.sun.faces
JSFAPI
2.1.22
假如
com.sun.faces
jsf impl
2.1.22
假如
org.richfaces.core
richfaces核心api
4.3.3.最终版本
org.richfaces.core
richfaces core impl
4.3.3.最终版本
org.apache.maven.plugins
maven战争插件
2.4
src\main\webapp\WEB-INF\WEB.xml