Think Beyond

Life's more than just software

Getting started with Richfaces 4 and Maven — December 17, 2011

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