Search code examples
mavenrichfacespatch

apply patch to richfaces 3.3.3


I've no experience with maven or applying patches.

I'd like to apply the patch as described on https://issues.jboss.org/browse/RF-12062?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12677932#comment-12677932 to the richfaces library.

I've downloaded the richfaces 3.3.3.Final sources from http://www.jboss.org/richfaces/download/stable

I can however not find the WebXml.java file. Do I have to execute some maven command to add some additional sources?


Solution

  • the file can bi found in richfaces-ui-3.3.3.Final\framework\impl\src\main\java\org\ajax4jsf\webapp\WebXml‌​.java, you can also patch the code manualy and then build it via mvn clean install. I've tried to build it via maven3 but the build has a legacy repo and as far as I qnow maven3 does not allow legacy repos so I got an ERROR

    I've tried then the maven2 build some tests failed but the jar was built, I had to manualy install facelets jar in maven and tune the maven heap memory options like this :

    export MAVEN_OPTS="-XX:MaxPermSize=512m -Xmx2548M -XX:+UseCompressedOops"

    Unfortunalty it doesnt help for my problem I still get the folowing error when using rich:tree

    Caused by: java.util.zip.DataFormatException: invalid literal/length code

    But it looks like that @gadeynebram probelm was solved.