Click here to Skip to main content
11,640,910 members (63,242 online)
Click here to Skip to main content

Richfaces Maven Project for Eclipse JavaEE IDE

, 28 Sep 2010 CPOL 12.8K 1
Rate this:
Please Sign up or sign in to vote.
Develope Richfaces web project in Eclipse JavaEE IDE with maven support using archetype
Developing a Java Web Project with maven support for Eclipse JavaEE IDE is a tedious task. After searching through internet I found out that its difficult as well as error prone. Finally I decided to develop my own maven archetype which after running a simple command creates a sample project in few seconds.

The project additionally supports very popular JSF library Richfaces which has excellent support for AJAX and has a very rich set of controls.

The features supported by this maven archetype project is:-
1) Java EE based Web project
2) Eclipse IDE for JavaEE (3.4 or higher)
3) Maven 2
4) Richfaces
5) JBoss and Maven2 repository for dependencies.

To develope a sample project follow these steps
1) Install Maven2 or higher
2) Modify your MAVEN_HOME\conf\settings.xml, and Add this Profile to
"profiles" section:-

<profile>
    <id>richfaces-maven-archetype</id>
        <activation>
            <activeByDefault>true</activeByDefault>
        </activation>
        <repositories>
            <repository>
                <id>jboss</id>
                <name>Repository for Archetype</name>
                <url>http://richfaces-maven-plugin.googlecode.com/svn/maven2</url>
                <releases>
                        <enabled>true</enabled>
                        <updatePolicy>always</updatePolicy>
                </releases>
            </repository>
        </repositories>
</profile>


3) Run this command from command line:-
mvn archetype:create \
             -DarchetypeGroupId=org.jboss.richfaces \
             -DarchetypeArtifactId=maven-archetype-richfaces \
             -DarchetypeVersion=1.0.0 \
             -DgroupId=demo-rich \
             -DartifactId=rich-sample-app 
             
** Here \ means that the command should be on same line as previous one

4) Import this new project in Eclipse JavaEE IDE, build and run

See more details on the plug-in site:-
http://code.google.com/p/richfaces-maven-plugin/[^]

Richfaces Maven Project Plug-in for Eclipse is ready:-
Follow above link to install the plug-in.

Enjoy Smile | :)

License

This article, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

Share

About the Author

anand kr
Software Developer (Senior)
India India
Specialization in Java/J2EE/JSF/Richfaces/Spring/Spring Integration
Area of interest: Refactoring with design patterns.
Currently working on Spring Integration and ActiveMQ.

You may also be interested in...

Comments and Discussions

 
GeneralMore info at http://www.w3avatar.com Pin
anand kr4-Feb-11 23:10
memberanand kr4-Feb-11 23:10 
GeneralReason for my vote of 4 Nice tip Pin
Nagy Vilmos2-Nov-10 2:46
memberNagy Vilmos2-Nov-10 2:46 
GeneralAlso follow up the discussions at JBoss forum:- http://commu... Pin
anand kr27-Sep-10 10:39
memberanand kr27-Sep-10 10:39 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.

| Advertise | Privacy | Terms of Use | Mobile
Web01 | 2.8.150731.1 | Last Updated 28 Sep 2010
Article Copyright 2010 by anand kr
Everything else Copyright © CodeProject, 1999-2015
Layout: fixed | fluid