Hi all, lest anyone wonders, I originally asked a similar question in another forum (http://www.nabble.com/Integrating-MyFaces-in-RichFaces-VE-tt19569077.html#a19626285), but this forum here might indeed be the more appropriate place. So here goes:
I tried to follow Fred's advice to "wtp-enable" an existing Maven2 / MyFaces project. Alas, it didn't work for me (still no Project Facets among the project Properties...). Most probably I missed something, cause it worked for Adil... > Make sure you have a 2.5 web.xml in src\main\webapp\WEB-INF. It's the > most important part, as the web project facet is based on it. Hm, does that mean more than changing the "version" attribute in the web.xml's "web-app" tag from 2.4 to 2.5 (and adjusting the "xsi:schemaLocation" attribute to 2.5, too)? Or are there more changes to apply (compared to the old 2.4 web.xml)? Thanks in advance, Carsten ADIL KELLOUAI wrote: > > Ok, it's working. > BTW, The jsf facet is not automatically loaded but it's possible to add it > without problem in the project facets. > thank you for your help. > Regards, > Adil > > 2008/9/17 Fred Bricon <[EMAIL PROTECTED]> > >> Hi Adil, >> >> This is a WTP limitation. You cannot change the facet version of Web, >> Ear, Ejb (and probably JCA) projects. >> >> An immediate solution would be to delete your project in eclipse (not >> the content), then outside eclipse, remove .classpath, .settings and >> .project >> Make sure you have a 2.5 web.xml in src\main\webapp\WEB-INF. It's the >> most important part, as the web project facet is based on it. >> >> Then you'll need to specifically set the maven-compiler-plugin version >> to 1.5 in your pom.xml. If it is not already done, add the following : >> <build> >> ... >> <plugins> >> ... >> <plugin> >> <groupId>org.apache.maven.plugins</groupId> >> <artifactId>maven-compiler-plugin</artifactId> >> <configuration> >> <source>1.5</source> >> <target>1.5</target> >> </configuration> >> </plugin> >> ... >> </plugins> >> </build> >> >> then import your project back in WTP. >> >> Alternatively you can set the maven-compiler-plugin after your project >> is imported, but then you'd have to >> left-click on the project, choose Maven > Update Configuration >> >> Hope that helps. >> >> >> regards, >> >> Fred Bricon >> >> >> On Wed, Sep 17, 2008 at 11:34 AM, ADIL KELLOUAI <[EMAIL PROTECTED]> >> wrote: >> > Hello, >> > It's my first use of m2eclipse plugin. I want to create a wtp project >> for >> > jsf using the myfaces artifact. The project is well created but the >> dynamic >> > web module version is 2.4. I need the 2.5 version. How can I switch to >> it. I >> > try to do it by changing the project facte but this operation is not >> > possible. >> > Any help is appreciated. Thank you. >> > >> > Adil >> > >> >> >> >> -- >> GMail rox! >> >> --------------------------------------------------------------------- >> To unsubscribe from this list, please visit: >> >> http://xircles.codehaus.org/manage_email >> >> >> > > -- View this message in context: http://www.nabble.com/Management-of-version-2.5-of-Dynamic-web-module-tp19529627p19627731.html Sent from the Maven Eclipse - User mailing list archive at Nabble.com. --------------------------------------------------------------------- To unsubscribe from this list, please visit: http://xircles.codehaus.org/manage_email
