I wonder if we could activate jsf facet (and maybe some others) based
on the presence of some dependencies. Would be great if someone would
submit a jira issue and provided a test project for that.
Thanks
Eugene
Fred Bricon wrote:
Indeed, JSF Facet is not supported by m2eclipse.
As of 0.9.6, only Dynamic Web, Utility Project and Java Facet are
supported, AFAICT. 0.9.7 will add EJB and EAR Facet, eventually.
Other facets can be manually set.
regards,
Fred Bricon
On Wed, Sep 17, 2008 at 2:43 PM, ADIL KELLOUAI <[EMAIL PROTECTED]> 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
---------------------------------------------------------------------
To unsubscribe from this list, please visit:
http://xircles.codehaus.org/manage_email