[
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