Getting started with Richfaces 4 and Maven

I tried to create a basic Richfaces project using the document : http://docs.jboss.org/richfaces/latest_4_X/Developer_Guide/en-US/pdf/Developer_Guide.pdf but ran into trouble with the following line:

mvn archetype:generate -DarchetypeGroupId=org.richfaces.archetypes -DarchetypeArtifactId=richfaces-archetype-simpleapp -DarchetypeVersion=4.0.0-SNAPSHOT -DgroupId=org.docs.richfaces -DartifactId=new_project.


As of Dec 2011, the issue is that my installation of Maven (ver. 3.0.3) would fail since it can’t find the required archetype.  The latest archetype version being 4.1.0.Final, this  works only when the ‘archetypeVersion’ in the above command line is changed to ‘4.1.0.Final’.

Hope this helps someone who’s just getting started with Richfaces and Maven.

Advertisements

2 thoughts on “Getting started with Richfaces 4 and Maven

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s