You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@myfaces.apache.org by "Leonardo Uribe (Created) (JIRA)" <de...@myfaces.apache.org> on 2012/03/09 22:32:58 UTC
[jira] [Created] (MYFACES-3496) Unify myfaces archetypes and update
to use jetty 8
Unify myfaces archetypes and update to use jetty 8
--------------------------------------------------
Key: MYFACES-3496
URL: https://issues.apache.org/jira/browse/MYFACES-3496
Project: MyFaces Core
Issue Type: Improvement
Components: Archetype
Reporter: Leonardo Uribe
Assignee: Leonardo Uribe
Jetty 8 maven plugin is out and since people is using JSF2 / EL 2.2 / Servlet 3.0 , it could be good to use that plugin for all our JSF 2 archetypes.
Also, I would like to contribute with a maven archetype I use frequently to debug myfaces stuff. It has some profile configurations that makes easier test myfaces in some situations, and also use some utilities used to create junit tests inside myfaces core. For example, it has a test case that checks if a xhtml can be recognized by facelets compiler.
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira
[jira] [Commented] (MYFACES-3496) Unify myfaces archetypes and
update to use jetty 8
Posted by "Michael Kurz (JIRA)" <de...@myfaces.apache.org>.
[ https://issues.apache.org/jira/browse/MYFACES-3496?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13428173#comment-13428173 ]
Michael Kurz commented on MYFACES-3496:
---------------------------------------
Hi Leo,
I just saw that you updated Jetty Maven Plugin 8 and ran into the tld scanning problem. I have the same problem for my tutorial examples that have profiles for MyFaces and Mojarra. I first also tried to load MyFaces/Mojarra as dependency in the plugin but it did not work out for me. MyFaces/Mojarra started fine but then I had problems with other jars (Bean Validation). So I guess this list of dependencies in the plugin might become longer and longer.
However, I found a very simple solution. With the Jetty Maven Plugin you can specify an override web.xml enhancing the web apps web.xml like this:
<configuration>
<webAppConfig>
<overrideDescriptor>src/main/jetty/override-myfaces-web.xml</overrideDescriptor>
</webAppConfig>
</configuration>
</plugin>
override-myfaces-web.xml looks like this:
<web-app ...>
<listener>
<listener-class>org.apache.myfaces.webapp.StartupServletContextListener</listener-class>
</listener>
</web-app>
I simply have two of those override files for MyFaces and Mojarra that are defined as a property in the profile. Then the plugin can be defined in one place.
> Unify myfaces archetypes and update to use jetty 8
> --------------------------------------------------
>
> Key: MYFACES-3496
> URL: https://issues.apache.org/jira/browse/MYFACES-3496
> Project: MyFaces Core
> Issue Type: Improvement
> Components: Archetype
> Reporter: Leonardo Uribe
> Assignee: Leonardo Uribe
>
> Jetty 8 maven plugin is out and since people is using JSF2 / EL 2.2 / Servlet 3.0 , it could be good to use that plugin for all our JSF 2 archetypes.
> Also, I would like to contribute with a maven archetype I use frequently to debug myfaces stuff. It has some profile configurations that makes easier test myfaces in some situations, and also use some utilities used to create junit tests inside myfaces core. For example, it has a test case that checks if a xhtml can be recognized by facelets compiler.
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira
[jira] [Commented] (MYFACES-3496) Unify myfaces archetypes and
update to use jetty 8
Posted by "Leonardo Uribe (Commented) (JIRA)" <de...@myfaces.apache.org>.
[ https://issues.apache.org/jira/browse/MYFACES-3496?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13226500#comment-13226500 ]
Leonardo Uribe commented on MYFACES-3496:
-----------------------------------------
Changes committed on:
myfaces-archetype-codi-jsf20
myfaces-archetype-helloworld20
myfaces-archetype-helloworld20-debug
myfaces-archetype-helloworld20-owb
myfaces-archetype-jsfcomponents20
myfaces-archetype-trinidad20 (update to 2.0.1)
Suggestions are welcome.
> Unify myfaces archetypes and update to use jetty 8
> --------------------------------------------------
>
> Key: MYFACES-3496
> URL: https://issues.apache.org/jira/browse/MYFACES-3496
> Project: MyFaces Core
> Issue Type: Improvement
> Components: Archetype
> Reporter: Leonardo Uribe
> Assignee: Leonardo Uribe
>
> Jetty 8 maven plugin is out and since people is using JSF2 / EL 2.2 / Servlet 3.0 , it could be good to use that plugin for all our JSF 2 archetypes.
> Also, I would like to contribute with a maven archetype I use frequently to debug myfaces stuff. It has some profile configurations that makes easier test myfaces in some situations, and also use some utilities used to create junit tests inside myfaces core. For example, it has a test case that checks if a xhtml can be recognized by facelets compiler.
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira