-
1. Re: Richfaces Eclipse Help
jhuska Jul 9, 2012 6:37 AM (in response to rui278)Hi Rui,
this is a known bug.
You can workaround this by these steps:
1. download attached project-examples-shared-3.3.Beta1.xml
2. in eclipse go Window ----> Preferences ----> JBoss Tools ----> Project Examples
3. Add to the User sites the customized xml
Or you can start with archetype by this:
File ---> New ---> other ---> type to filter maven ----> maven project ----> next ----> type to the input richfaces-archetype
You should see three archetypes, choose either simpleapp or kitchensink for starting.
Was that helpful ?
-
2. Re: Richfaces Eclipse Help
rui278 Jul 9, 2012 8:07 AM (in response to jhuska)Hi Juraj
Unfortunatly no.
I did the first fix, put the attached project under user sites, but when i tried to start a richfaces project it didnt work again.
The second fix, when i got to the filtering i found out that there where no richfaces-archetype archetypes.
I have the files in my computer, is there any way i can import them to eclipse as archetypes, from my computer? or does anyone have a link to the repository URL so that i can ad it?
But thank you anyway,
-
3. Re: Richfaces Eclipse Help
jhuska Jul 9, 2012 10:21 AM (in response to rui278)You have probably something wrong with your maven installation then.
If you have Maven installed correctly, you should be able to do following:
1. from command line execute:
mvn archetype:generate -DarchetypeGroupId=org.richfaces.archetypes -DarchetypeArtifactId=richfaces-archetype-simpleapp -DarchetypeVersion=4.2.2.Final -DgroupId=org.docs.richfaces -DartifactId=new_project
2. import created project to Eclipse
File ----> Import ----> Existing Maven project ---> directory where new project was created
Are you able to do that ? Did you install maven by yoursefl ? or used the embedded one in eclipse ?
-
4. Re: Richfaces Eclipse Help
rui278 Jul 9, 2012 10:58 AM (in response to jhuska)I was using the one enbeded in eclipse. But now in instaled the 3.0.4 version.
I ran your comand but he gave me this error constantly: "Failed to retrieve plugin desctriptor from org.apache... Or one of its dependencies could not be resolved: Failed to read atifact descriptor form org.apache.... "In the end it gives out a "Buid Failure" and a "No pluggin found for prefiz "archetype"....
-
5. Re: Richfaces Eclipse Help
jhuska Jul 10, 2012 5:22 AM (in response to rui278)1 of 1 people found this helpfulSounds like you have some connectivity issues then (firewall, proxy ?), because you can not retrieve artifacts from Maven Central.
Are you able to build other maven based projects ?
-
6. Re: Richfaces Eclipse Help
snjv180 Jul 10, 2012 5:41 AM (in response to rui278)Why don't you try it without maven ! Maybe that will work. Just create a JSF2 project in eclipse and create a lib folder inside WEB-INF and include the files as in
https://community.jboss.org/wiki/HowToAddRichFaces4xToProjectsNotBasedOnMaven
The blue ones are compulsory.
Then Richfaces is installed if you want I can mail you an example.
-
7. Re: Richfaces Eclipse Help
pabloh Sep 18, 2012 3:25 PM (in response to rui278)Did you fix the issue? I have the same problem.
-
8. Re: Richfaces Eclipse Help
snjv180 Sep 19, 2012 3:44 AM (in response to pabloh)What is the issue that you have please elaborate a bit so that we may help. Is it that you are trying to do in maven and some problem is occuring. If so, do share your problem with us.
-
9. Re: Richfaces Eclipse Help
pabloh Sep 19, 2012 10:45 AM (in response to snjv180)I'm using Eclipse Indigo with JBoss Central. I tried to create a new Richfaces Project (see img1.png) but it always comes up with the following error (see imp2.png)
Could not resolve archetype
org.richfaces.archetypes:richfaces-archetypes-kitchensink:4.2.2Final-2 from any of the configurated repositories.
Root cause : Could not resolve artifact
org.richfaces.archetypes:richfaces-archetype-kitchensink:pom:4.2.2.Final-2
-
10. Re: Richfaces Eclipse Help
snjv180 Sep 19, 2012 11:25 PM (in response to pabloh)I think it is because you are trying to make a kitchensink(sample richfaces project). That is why your project is not running.