Add new page -- example for maven-faces-plugin
converted to 1.6 markup
|Deletions are marked like this.||Additions are marked like this.|
|Line 41:||Line 41:|
|1. ["Facelets and JSF 1.1 maven-faces-plugin Getting started"]||1. [[Facelets_and_JSF_1.1_maven-faces-plugin_Getting_started]]|
This page describe the various Maven plugins provided with Trinidad. Some are to be used mostly by Trinidad project itself, but some other can be very useful for any other project.
That plug-in is a nice extension to the already existing Eclipse and Netbeans plug-ins provided with Maven by default. As it name implies, this plug-in will generate a JDeveloper project from a Maven project structure. However, to use this plug-in successfully, some work has to be done to your project's POM file first.
- Requirement: The project must be placed on the same drive than your repository. The plug-in will run even without that requirement, but JDeveloper won't be able to locate the libraries when you open the project.
- Generate your project's POM using Trinidad Archetype for example.
- Edit the project's POM file and add the following:
<build> <plugins> <plugin> <groupId>org.apache.myfaces.trinidadbuild</groupId> <artifactId>maven-jdev-plugin</artifactId> </plugin> </plugins> </build>
Run mvn jdev:jdev from your project's directory
- Open JDeveloper and open the .jpr file that was generated.
The Faces plugin takes as input a directory of JSF 1.2-syntax faces-config.xml files and generates numerous artifacts:
- A merged faces-config.xml file (either 1.1 or 1.2)
- UIComponent, Converter, and Validator .java code
- JSP tag .java code
- JSP .tld file
- Facelets taglib.xml file
In addition, a separate tagdoc plugin takes these same files and generates tag documentation.
This tag urgently needs full documentation! Please insert any items in here.