The Liferay Faces Generator is a code generator designed to generate
Java Server™ Faces (JSF) custom components and taglib.xml
files. The
aim of the generator is to reduce the errors and duplicated work associated
with writing JSF custom components. The generator takes as input a single
taglib.xml
-like
file and outputs custom components and a taglib.xml
file.
GNU Lesser General Public License (LGPL), Version 2.1
Using Maven 3.x:
mvn clean install
The generator can be used from the command-line like so:
liferay-faces-generator.jar new-tags.xml
The generator can also be used with maven
via the exec-maven-plugin
:
<plugin>
<groupId>org.codehaus.mojo</groupId>
<artifactId>exec-maven-plugin</artifactId>
<version>1.2.1</version>
<executions>
<execution>
<goals>
<goal>java</goal>
</goals>
<phase>generate-sources</phase>
<configuration>
<includeProjectDependencies>false</includeProjectDependencies>
<includePluginDependencies>true</includePluginDependencies>
<mainClass>com.liferay.faces.generator.Generator</mainClass>
<arguments>
<argument>new-tags.xml</argument>
</arguments>
<executableDependency>
<groupId>com.liferay.faces.generator</groupId>
<artifactId>liferay-faces-generator</artifactId>
</executableDependency>
</configuration>
</execution>
</executions>
<dependencies>
<dependency>
<groupId>com.liferay.faces.generator</groupId>
<artifactId>liferay-faces-generator</artifactId>
<version>1.1.1</version>
</dependency>
</dependencies>
</plugin>
For detailed usage instructions, see the docs/
folder.
Please post questions in the Liferay Faces Forum. Defects and feature requests can be posted in the Liferay Faces Issue Tracker.