How can I compile a primefaces source?

喜欢而已 提交于 2019-12-24 08:34:43

问题


In the download section of primefaces there are 3 links:

binary
bundle
sources

I use primefaces 3.4.2 and would like to recompile one java class to fulfill my needs. I downloaded the sources. Now I would like to recompile this class, but I don't know how to achieve that. How can I compile a primefaces source?


回答1:


Checkout sources from repo. It is maven project, so build it with maven.




回答2:


From primefaces site:

http://code.google.com/p/primefaces/wiki/BuildingFromSource

PrimeFaces uses maven as the build tool. There's a custom maven plugin to generate jsf artifacts. To begin you might need to check out and build PrimeFaces maven-jsf-plugin in case the version used is not available in Prime Repository.

svn checkout http://primefaces.googlecode.com/svn/maven/trunk/maven-jsf-plugin/ build

cd to the build and do a maven install

cd build
mvn install

Next thing to do is to build PrimeFaces itself, checkout the code with;

svn checkout http://primefaces.googlecode.com/svn/primefaces/trunk

cd to the primefaces folder and run maven build.

cd primefaces
mvn install

Component Development

PrimeFaces JSF plugin generates the necessary artifacts including component sources, faces-config.xml, and facelets taglib. Component developers only need to implement the Renderer classes of the components. Component metadata files are defined under src/main/resources-maven-jsf folder.



来源:https://stackoverflow.com/questions/14942538/how-can-i-compile-a-primefaces-source

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!